-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Light Component #76
Comments
state and brightness are implement as part of #75 |
The color UI component of Homey use 4 capabilities:
ESPhome device use many different modes, so need to convert ... how fun ... So on Homey side, we have 3 capabilities. The solution I'm thinking about:
Special behaviour already exist for templateCover (ie. one button swithing between open and close). |
Hello, I have a small rgb led. It connected to esp32. Esp32 has esphome firmware My rgb config:
When I trying to add led to homey, I don`t see color setting. Everything I can add is ON/OFF and brightness. So, what should I do to make color ring appear? Can you explain it step by step please? |
Hello Andrew, it's not implmented "yet", and I will never do it because I
moved to Home Assistant.
I had too many problem with Zigbee support in Homey
Le mer. 28 août 2024 à 16:32, Andrew ***@***.***> a écrit :
… Hello,
As I see, you can change led`s color with homey`s color ring. Can you
explain to how you configured it?
I have a small rgb led. It connected to esp32. Esp32 has esphome firmware
My rgb config:
light:
- platform: rgb
name: "RGB LED"
red: output_red
green: output_green
blue: output_blue
output:
- platform: ledc
id: output_red
pin: GPIO22
- platform: ledc
id: output_green
pin: GPIO21
- platform: ledc
id: output_blue
pin: GPIO23
When I trying to add led to homey, I don`t see color setting. Everything I
can add is ON/OFF and brightness.
I saw your message, where you said to change some lines in color_mode.h
(but what should I change?)
So, what should I do to make color ring appear? Can you explain it step by
step please?
—
Reply to this email directly, view it on GitHub
<#76 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANXYPVMGPVPC4JE34LLQIDLZTXNPFAVCNFSM6AAAAABNIN2PFCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJVGUYDIOJYGQ>
.
You are receiving this because you were assigned.Message ID:
***@***.***>
|
Note: it goes much farther than your needs, but I will do it fully if possible.
https://esphome.io/components/light/index.html
transition_length: time! Require to implement a specific input format rule to allow to input seconds, hours, ... whatever
color_mode: dynamic list of values
brightness: percentage => slidder 0.0 to 1.0 (if mode is compatible)
color_brightness: percentage => slidder 0.0 to 1.0 (if mode is compatible)
red: percentage => slidder 0.0 to 1.0 (if mode is compatible)
green: percentage => slidder 0.0 to 1.0 (if mode is compatible)
bleu: percentage => slidder 0.0 to 1.0 (if mode is compatible)
white: percentage => slidder 0.0 to 1.0 (if mode is compatible)
color_temperature: float => slidder based on minMireds and Maxmireds
cold_white: percentage => slidder 0.0 to 1.0 (if mode is compatible)
warm_white: percentage => slidder 0.0 to 1.0 (if mode is compatible)
flash_length: time => refer to transition_length.
effect: dynamic list of values
Reminder: dynamic list of values is not supported by Homey, by default, only the context aware flow cards will be available.
=> Implementation of user specific list of value will be on user request for a beer!
Implementation of supportedColorMode is strange!
For exemple, the value 3 means ON_OFF && BRIGHTNESS.
=> https://www.esphome.io/api/color__mode_8h_source
I feel some mapping will be required ...
flash_length
This attribut require to send a color at the same time,.
A color can actually be any of the attributs red, blue, green, brigthness, ... and it depends of the color mode selected.
From Homey side, it's just impossible to implement such functionnality.
The only way would be to use a kind of script, or a specific format like: 2G1B1bri...
=> I will not be supported
low level api
Low level api use the legacySupported flag to authorize or not the functionnalities ...
legacy means legacy ... I feel it will create some issues!
It should be based on the "selected mode":
Originally posted by @Baldhor in #75 (comment)
The text was updated successfully, but these errors were encountered: