profile
viewpoint

Ask questions[bug] Dimmer won't turn off in Home Assisstant UI

Version

Build/Run method

  • [x] Docker
  • [ ] PKG
  • [ ] Manually built (git clone - npm install - npm run build )

Zwave2Mqtt version: I don't know... latest tag from Docker as of 29 July 2020 at ~10pm PDT. Openzwave Version: 1.6.1210

(I couldn't find a version for Zwave2Mqtt... might be nice to have one in the app somewhere like Openzwave's version is. Well, it is 2am and I've been at Smart Home frustrations for the last 8 hours, so maybe it was in plain sight and I missed it!)

Describe the bug

If the light is on at say 48 brightness, when I turn off the light in Home Assistant, I sometimes get this (which is expected):

(This is from logs dumping my MQTT messages for debugging. zwave is my prefix.)

2020-07-30T08:27:38.593049351Z [Debug] zwave/office_lights/38/1/0/set = 0
2020-07-30T08:27:39.435080555Z [Debug] zwave/office_lights/38/1/0 = {"time":1596097659434,"value":0}

It works fine when this happens.

But more often than not, this is what happens:

2020-07-30T08:27:52.001829759Z [Debug] zwave/office_lights/38/1/0/set = 0
2020-07-30T08:27:52.065765754Z [Debug] zwave/office_lights/38/1/0 = {"time":1596097672064,"value":48}

(Notice the timestamps: it usually updates the state before it's even started to turn off, which becuase the dimmers I have (HomeSeer WD-100+) transition to off.)

That causes Home Assistant to show the light as on, even tho the lights are off, and I have to toggle them off and then back on again to actually turn them on.

This is what it looks like in the UI:

Dimmer Issue

Note that the lights are on in the office at the start of the video, and they are off at the end, even tho the toggle shows they are on. Also note that the toggle stays off for a second or two. I'm pretty sure this is a feature of Home Assistant. That it tries to show that it was turned off, but then waits a second to show that it got the state update that it's actually still on (which that part in this case is incorrect behavior).

(I just realized cuz the gif loops, it can be hard to know when it starts... it starts when the mouse comes up from beneath the frame and ends when the mouse goes off the right side.)

To Reproduce Steps to reproduce the behavior:

  1. Add a dimmer that transitions to target brightness (e.g. HomeSeer WD-100+).
  2. Add it to Home Assistant via MQTT discovery.
  3. Turn the light on in Home Assistant. Turn it off, then on. Next time you turn it off, you should trigger this issue.

Expected behavior Home Assistant should show that the light is off.

Actual behavior Home Assistant shows that the light is on, even tho the light is actually off.

OpenZWave/Zwave2Mqtt

Answer questions CWSpear

When I manually press up or down on the paddle, I get a bunch of updates and everything works fine.

If the light is on full brightness and I turn it off via the paddle, this is my logs (all of this is just from one press of the down part of the paddle):

[Debug] zwave/office_lights/91/1/2 = {"time":1596135708400,"value":1}
[Debug] zwave/office_lights/91/1/2 = {"time":1596135709400,"value":0}
[Debug] zwave/office_lights/38/1/0 = {"time":1596135711371,"value":0}
[Debug] zwave/office_lights/38/1/0 = {"time":1596135711408,"value":0}
[Debug] zwave/office_lights/38/1/0 = {"time":1596135711412,"value":0}
[Debug] zwave/office_lights/38/1/1 = {"time":1596135711412}
[Debug] zwave/office_lights/38/1/2 = {"time":1596135711412}
[Debug] zwave/office_lights/38/1/3 = {"time":1596135711412,"value":true}
[Debug] zwave/office_lights/38/1/4 = {"time":1596135711413,"value":0}
[Debug] zwave/office_lights/39/1/0 = {"time":1596135711413,"value":3}
[Debug] zwave/office_lights/43/1/0 = {"time":1596135711413,"value":0}
[Debug] zwave/office_lights/43/1/1 = {"time":1596135711413,"value":0}
[Debug] zwave/office_lights/91/1/1 = {"time":1596135711413,"value":0}
[Debug] zwave/office_lights/91/1/2 = {"time":1596135711413,"value":0}
[Debug] zwave/office_lights/91/1/256 = {"time":1596135711413,"value":2}
[Debug] zwave/office_lights/91/1/257 = {"time":1596135711413,"value":1000}
[Debug] zwave/office_lights/94/1/0 = {"time":1596135711413,"value":1}
[Debug] zwave/office_lights/94/1/1 = {"time":1596135711413,"value":1536}
[Debug] zwave/office_lights/94/1/2 = {"time":1596135711413,"value":1536}
[Debug] zwave/office_lights/112/1/4 = {"time":1596135711413,"value":0}
[Debug] zwave/office_lights/112/1/7 = {"time":1596135711413,"value":99}
[Debug] zwave/office_lights/112/1/8 = {"time":1596135711413,"value":22}
[Debug] zwave/office_lights/112/1/9 = {"time":1596135711413,"value":99}
[Debug] zwave/office_lights/112/1/10 = {"time":1596135711413,"value":22}
[Debug] zwave/office_lights/114/1/0 = {"time":1596135711413,"value":8}
[Debug] zwave/office_lights/114/1/1 = {"time":1596135711413,"value":8}
[Debug] zwave/office_lights/114/1/2 = {"time":1596135711413,"value":8}
[Debug] zwave/office_lights/115/1/0 = {"time":1596135711413,"value":0}
[Debug] zwave/office_lights/115/1/1 = {"time":1596135711413,"value":0}
[Debug] zwave/office_lights/115/1/2 = {"time":1596135711413}
[Debug] zwave/office_lights/115/1/3 = {"time":1596135711413,"value":0}
[Debug] zwave/office_lights/115/1/4 = {"time":1596135711414,"value":0}
[Debug] zwave/office_lights/115/1/5 = {"time":1596135711414,"value":0}
[Debug] zwave/office_lights/115/1/6 = {"time":1596135711414}
[Debug] zwave/office_lights/115/1/7 = {"time":1596135711414}
[Debug] zwave/office_lights/115/1/8 = {"time":1596135711414,"value":0}
[Debug] zwave/office_lights/115/1/9 = {"time":1596135711414,"value":0}
[Debug] zwave/office_lights/134/1/0 = {"time":1596135711414,"value":"3"}
[Debug] zwave/office_lights/134/1/1 = {"time":1596135711414,"value":"4.34"}
[Debug] zwave/office_lights/134/1/2 = {"time":1596135711414,"value":"5.17"}

So yeah. Everything works fine if I update via the actual physical paddle. As I move stuff around it shows the correct values in Home Assistant. It's just updating via Home Assistant that I get this.

I noticed that it also doesn't do a /set call if I press the paddle. Just that I hit "up" basically.

useful!
source:https://uonfu.com/
Github User Rank List