SmartHome-yourself / sonoff-tx-ultimate-for-esphome

ESPHome Custom Component for Sonoff TX Ultimate
https://smarthomeyourself.de/sonoff-tx-ultimate-mit-esphome-custom-component/
MIT License
87 stars 36 forks source link

Light Status - Leds: Top instead of Button #18

Open ostracizado opened 10 months ago

ostracizado commented 10 months ago

What would be the best approach to have the led on the top turn on, when the light is on - instead of the led on the button? It would be more easy to see the state of a light: on/off.

I imagine it has to do with the scripts: led_on_button_left/led_off_button_left, led_on_button_middle/led_off_button_middle and led_on_button_right/led_off_button_right...

edit: Hmmm... initially I thought it would only be needed to change the specific led in partition:

  - platform: partition
    name: "LEDs Button left"
    id: leds_button_left
    internal: true
    segments:
      - id: leds
        from: 11 #to 21
        to: 11 #to 21

But that only make the specific led "21" blink and turn off. Could it be a conflict with the script that turns on the top leds, sequentially, and off, when the button is pressed?

TeDeVPrime commented 10 months ago

i am curious about that one as well. how do we turn the leds at the top on? @danielscheidler

danielscheidler commented 9 months ago

Only making the 11 to 21 is certainly not enough. It must at least be ensured that this is not set in any other way. As long as it is controlled in other segments, it is otherwise overwritten. The individual segments must be coherent against each other.

danielscheidler commented 9 months ago

Only making the 11 to 21 is certainly not enough. It must at least be ensured that this is not set in any other way. As long as it is controlled in other segments, it is otherwise overwritten. The individual segments must be coherent against each other.

TeDeVPrime commented 9 months ago

i am not sure what you mean.

also i found this guide. it has a lot more light effects and the buttons light up from both sides

https://www.youtube.com/watch?v=58v8oqSQgXQ&ab_channel=Unlocoysutecnolog%C3%ADa

maybe you can include them in your library?