Skip to content
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

status_led sharing with output #117

Open
dattas opened this issue Mar 19, 2019 · 0 comments
Open

status_led sharing with output #117

dattas opened this issue Mar 19, 2019 · 0 comments

Comments

@dattas
Copy link

dattas commented Mar 19, 2019

Describe the problem you have/What new integration you would like

With sonoffs where it only has a single LED it would be nice to be able to use status_led and also use the single LED as a monochromatic light for current status of the relay.

Please describe your use case for this integration and alternatives you've tried:

Knowing the status of the relay is nice for user feedback at a glance, however when setting up both a light and a status_led, the status_led component overwrites the status every loop. Behavior in https://github.com/esphome/esphome-core/blob/dev/src/esphome/status_led.cpp#L30 . An I had to implement the idea would be to have the monochromatic light platform be able to output the desired values to the status_led component and instead of writing false if the status is good, write whatever the desired value is.

Additional context
Here is an example for a sonoff that I'm currently using: https://gist.github.com/dattas/1549af84e273cdf673d750fb46607694

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants