hencou / esphome_components

Collection of own ESPhome components
25 stars 15 forks source link

Group 0 does not remember brightness after on/off/on #23

Closed Bl00d-B0b closed 9 months ago

Bl00d-B0b commented 9 months ago

Hello,

when using Group 0 (all zones), when you turn it on, then setup brightness... turn it off and on again, brightness reset back to 0...

with other zones, 1, 2, 3 ,4 it's works as expected...

Ed

hencou commented 9 months ago

Hi Ed,

Group 0 is a special thing. It is only used to send a command, and will have no status. When processing a group 0 command, the status will be written to the underlying 1,2,3,4 zones. The reason there can be no status is because when one of the zones 1,2,3,4 changes, group 0 will not be in sync anymore.

Bl00d-B0b commented 9 months ago

Hello. This one I already understand, how this logic works. but using remote control I can

  1. ON zone 0
  2. OFF zone 3, 4
  3. set Effect 5
  4. OFF zone 0
  5. ON zone 0
  6. OFF zone 1, 2
  7. set effect 6
  8. OFF zone 0
  9. ON zone 0

Then I have synchronized effect 5 on zone 1, 2 and another synchronized effect on zone 3, 4

But if I follow those steps:

  1. ON zone 1
  2. set effect 5
  3. ON zone 2
  4. set effect 5
  5. on zone 3
  6. set effect 6
  7. ON zone 4
  8. set effect 6

then effect 5 and effect 6 are not synchronized between zones

Ed

hencou commented 9 months ago

HI Ed,

Its not clear for me, where do you see that "effect" state? Do you mean the "effect" state in HomeAssistant or somewhere else? Is only that "effect" state the problem or also something with the brightness? On which group did you set the effect, group0 I assume?

Bl00d-B0b commented 9 months ago

image

or "M" - Mode button on remote

hencou commented 9 months ago

Hi Ed,

Unfortunaltely this is a restriction. The ESPHome light library has no option to set the effect when receiving it: image

Bl00d-B0b commented 9 months ago

Hello,

the screenshot I send you in previous mail is from your code. It's supported, and I can chose Effects :) the problem is not with effect, but with logic. when zone 0 is used. in Remote control zone 0 is the same, like zone 1-4.

Ed

hencou commented 9 months ago

HI Ed,

What I tried to mention is that an effect command (sent by a remote and received by an ESPhome module) will never be sent to HomeAssistant as with other values as on/off, brightness etc.

So HomeAssistant will not reflect an effect command from a remote command.