-
-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug] Scene notification not published to MQTT #471
Comments
@billiaz is this the same issue of the other one? Maybe something about stateless values? |
I am interested to also see what driver sends... do we have a mixed log, or driver is not involved in this? |
i attached all logs, open the zip |
I have the same problem using Fibaro Dimmer 2. Scene activation event shows in the Zwave log, no MQTT message published. |
I have not yet been able to reproduce it with fibaro. @mbrrg can you give more details? |
@bdbogjoe i jave a dimmer2, how can i reproduce this? Is it notifying on physocal button press or other to reproduce this |
@bdbogjoe @mbrrg @robertsLando I can confirm bug exists, with my dimmer 2 too. If the logs do not contain "silly" level logs from driver, we need to have at least this to get also the payload output. All in all. I noticed only one notification topic pushed, at end of dimming, without value. |
I have checked the logs of @bdbogjoe I see no issues on 1.0.0 On 1.0.0 I see scene MQTT changes from on 1.0.4 (my device) I see MQTT receive the same message whenever I press and hold the button. It does not retain it, which is the right thing to do. As the scene part is a configuration setting. can be
for point 2, example on my mqtt history: So my previous post is not really valid. |
There is no longer any message posted to |
@mbrrg I will check it soon too! as this is strange |
let me know if you need anything else, i'm available for testing any fix, thanks |
I think I have the same problem. I see in the zwave log "[Node15] TODO ....."
When I press the button that is connected to the second input, but nothing more. |
i just tested with latest (1.2.2), we have still same issue for info using FGS223 (double switch) scene is published, but not with FGD212 (dimmer) |
@AlCalzone any clue what could be wrong here? Seems like the valueId isn't created for that, but it was on old version, maybe a regression? |
I need to see a zwave-js log of a re-interview of the affected devices. |
@bdbogjoe Could you provide it? |
This is a zwave-js log of a re-interview of Node 15 which in my case is a FDG211. Hope I cathed what you wanted. I put it in "silly" mode. Devices 13,14,20,21 and 22 are dead nodes that have to be replaced. |
Scene Activation CC is not listed as supported, so we don't automatically create values for it. |
Is this something I have to do? |
strange why was ok with 1.0.0 ? do you need anything else from my side ? |
Could be due to zwave-js/node-zwave-js#1207 maybe. In most cases this behavior was not correct and displayed unsupported values. |
hum don't know how to do this, how to get the command hex code ? where to put this file ? |
I can do it, which firmware version does your device have? |
as i can see from UI firmware is 3.5 |
I use on/off switches also as dimmers, there is a difference between the physical world and how the inputs are being used. Usecase, a FGS212 (on/off) is used to dim a light attached to a FGD211 ... |
If it is stateless (as I think) set it to undefined is made innternally by z2m to clear the state so you can detect the change |
That's a current limitation => zwave-js/node-zwave-js#528 |
So if I understand correctly, this update will correct problems for FDG212. tia |
If the problem with FGD211 was that it also just controls the CC, the PR should affect that device too. |
I just checked. I can see the same as @bdbogjoe on my FGD212, but nothing on my FGD211; not in UI or in zwave log. Because the majority of my switches is the FGD211 and I am using the scenes a lot its back to OZW for the moment I guess |
Did you reinterview the affected device? |
yes, a couple of times. I will now first start another instance as a test enviroment with said FDG211 and a spare controller. Just not to lose out on WAF ;-) |
And you are sure you're running the master branch of zwave-js? @bdbogjoe also had some problems earlier but got it to work. |
I started a new container with another controller and added the FDG211 with the same result as before. I re-interviewed the node (logging in attachment) |
unfortunately i don't have FDG211 to try myself As it is the latest version of zwavejs2mqtt does not include this fix, we need to do custom build using master branch of node-zwave-js |
I will start a new bug report for my FDG211 |
Try to update to latest 1.3.0 version |
I have updated to the latest docker version (1.3.0 in dashboard, don't know if this is the latest in your view), I see scene information in debug, but no scene information in MQTT. Is there any logging I can provide? |
Please upload log files as described in bug issue template |
@robertsLando, please find logfiles attached.
thanks in advance! |
The values get received and published as events. But I'm not sure if zwavejs2mqtt sees the value ID, because
|
@AlCalzone because version 6.4.0 is not the right version? |
6.4.0 was released before the fix. I'm not sure if the docker image 1.3.0 was built with the master branch after the fix was merged 🤷🏻♂️ |
Ok no big problem, I just have to wait till it pops up then I guess. When I see driver 6.5.0 then its included? |
yep |
@AlCalzone, just respun my docker container. My driver version is now 6.5.0. |
The entire MQTT part is handled by zwavejs2mqtt, so you'll have to talk this through with @robertsLando. Essentially this value is stateless, so it is not meant to be retained. zwavejs2mqtt resets it to undefined after a second. |
I can work with that I think. Thx! |
I think this can be closed so |
Version
Build/Run method
zwavejs2mqtt version: 1.0.0
zwavejs version: 6.1.0
Describe the bug
Using Node 54 (Fibargroup | Dimmer 2 | FGD212) the scene is not published anymore to MQTT, was working fine in 1.0.0, but using current version or even 1.0.1 it does not work anymore
here the logs when working fine :
1.0.0.zip
zwave2mqtt | 2021-02-05 18:43:52.541 DEBUG MQTT: Publishing to zwave/maison/escalier/lumiere-rampe/43/0/sceneId: 14 with options { qos: 1, retain: false }
zwave2mqtt | 2021-02-05 18:43:52.542 INFO ZWAVE: Node 54: value notification: 43-0-sceneId 14
zwave2mqtt | 2021-02-05 18:43:52.545 DEBUG MQTT: Publishing to zwave/maison/escalier/lumiere-rampe/43/0/dimmingDuration: Duration { unit: 'seconds', _value: 0, [value]: [Getter/Setter] } with options { qos: 1, retain: true }
zwave2mqtt | 2021-02-05 18:43:52.547 INFO ZWAVE: Node 54: value updated: 43-0-dimmingDuration undefined => [Duration: 0seconds]
zwave2mqtt | 2021-02-05 18:43:52.554 DEBUG MQTT: Publishing to zwave/maison/escalier/lumiere-rampe/43/0/sceneId: undefined with options { qos: 1, retain: true }
zwave2mqtt | 2021-02-05 18:43:52.555 INFO ZWAVE: Node 54: value updated: 43-0-sceneId undefined => undefined
and the logs when is does not work, i attached the logs for version 1.0.2
1.0.2.zip
2021-02-05 16:44:41.680 INFO ZWAVE: Node 54: value notification: 43-0-sceneId 14
2021-02-05 16:44:41.691 DEBUG MQTT: Publishing to zwave/maison/escalier/lumiere-rampe/43/0/dimmingDuration: Duration { unit: 'seconds', _value: 0, [value]: [Getter/Setter] } with options { qos: 1, retain: true }
2021-02-05 16:44:41.686 INFO ZWAVE: Node 54: value added: 43-0-dimmingDuration => [Duration: 0seconds]
2021-02-05 16:44:41.688 INFO ZWAVE: Node 54: value added 54-43-0-dimmingDuration => [Duration: 0seconds]
The text was updated successfully, but these errors were encountered: