rooi / homebridge-lightwaverf

LightwaveRF plugin for HomeBridge
9 stars 7 forks source link

After Homebridge restart, asking Siri to turn on a dimmer sets it to F0 #43

Open Cardo1 opened 4 years ago

Cardo1 commented 4 years ago

Bit of an odd one I’ve been scratching my head over for a while, but I think I’ve worked out what’s going wrong.

After restarting HB, if I try to turn on any dimmers by asking Siri to turn them “on”, they won’t come on. What I’ve discovered is HB is turning them on but at 0 brightness by sending an F0 command, such as:

Sending message: 001, !R10D1F0 |

Asking Siri to set the light to 100 works fine.

Once the light has been set either by asking for a specific brightness level, or by using an app, which will specify a brightness level, then things carry on working correctly, as asking Siri to turn the light “on” will turn it back on at the previously set brightness.

I don’t know if there’s a way for the plugin to remember the last brightness setting used by each dimmer, so after an HB restart, asking Siri to turn the light “on” will set it to whatever it was last set to, rather than F0, which won’t do anything.

Thanks!

rooi commented 3 years ago

Hi Cardo1

I've seem to have missed you issue. Do you still experience problems?

Thanks

Cardo1 commented 3 years ago

Yes, this issue still manifests. Upon HB restart, asking for dimmers to turn “on” doesn’t work as they are turned on at 0 brightness.

andygroves commented 3 years ago

Hi all if I reply to this do I get seen

Andy Groves

Sent from my iPhone

On 23 Apr 2021, at 20:57, Cardo1 @.***> wrote:



Yes, this issue still manifests. Upon HB restart, asking for dimmers to turn “on” doesn’t work as they are turned on at 0 brightness.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/rooi/homebridge-lightwaverf/issues/43#issuecomment-825886590, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AFHZSS3HQCY5W6VHO7MWTKTTKHGLBANCNFSM4OWRETVQ.

Cardo1 commented 3 years ago

Hi all if I reply to this do I get seen Andy Groves

Yes.

rooi commented 3 years ago

I just pushed a new release. The dim percentage after resorting homebridge should now be 50%. Could you please confirm? I'll try to implement a clearer solution that saves the last dim percentage and uses that after restart.

Cardo1 commented 3 years ago

I just pushed a new release. The dim percentage after resorting homebridge should now be 50%. Could you please confirm? I'll try to implement a clearer solution that saves the last dim percentage and uses that after restart.

The dim percentage does now seem to default to 50% after a restart, thanks. This is an improvement over 0%!

Remembering the last % set would be the tidiest solution, imho.