andrei-tatar / node-red-contrib-nora

Node Red Google Home integration
74 stars 25 forks source link

Brightness lost when turning on and off #8

Closed pakerfeldt closed 5 years ago

pakerfeldt commented 5 years ago

I have a light with brightness and where Send/receive complete state as payload is checked. I turn the light on and set brightness to 50%. Now, if I turn the light off I receive { on: false, brightness: 50 } as expected. However, if I turn it on again I get { on: true, brightness: 1 }. As seen, brightness is reset to 1%. If I continue, by turning it off again I receive { on: false, brightness: 15 } and from here it cycles between On/1% and Off/15%. Why is this?

If I uncheck Send/receive complete state as payload it seems to remember brightness though.

andrei-tatar commented 5 years ago

@pakerfeldt Can you post a flow and the steps that reproduce the issue? I can't seem to be able to reproduce it and it's not clear how you complete the actions (via google home, or changing the input of the node). Can you also log the input in the nora light node? Maybe there are some messages there that change the state.

pakerfeldt commented 5 years ago

Hmm, I'm also unable to re-produce this anymore. Perhaps I was doing something wrong. Closing this issue for now.