-
-
Notifications
You must be signed in to change notification settings - Fork 202
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] Wrong topics for autodiscovered devices of Greenwave PowerNode 6-plug #109
Comments
@billiaz I think this has been broken by one of the last changes, could you investigate? |
Or maybe @AlCalzone Did you changed something on your side that could have messed up units? |
Nothing that comes to mind. I'll need to see the usual files to investigate (log and cache) |
I think it is only related with the autodiscovered devices for HASS provide by ZWaveJS2MQTT, not ZWaveJS itself because at Meter CC you can get all the information (timeDelta, Previous values, current values,...). The point is the generated JSON for HASS devices is a little bit messy: object_id names mention"w_meter" or "kwh_meter" and their topics pointed out to deltaTime ones and things like that. Please find attached a couple of JSON for my two GreenWave Powernodes: |
I will take a look. If you are on slack, also ping me to talk/debug this |
@katiuskt I can reproduce this on my Fibaros. Therefore I can debug it there |
I found the issues causing this. When I discover a node this happens in "milliseconds"
second:
and third:
in total 6. The discovery topic does not contain the deltaTime and 65573, where unique id does |
@robertsLando I suspect this change caused it: 311d0b4#diff-f8b02b650fe9a88dd67e7f9f1264bc28fa5868c6e99ac5c47962f04037c4329c Suspect cause the constants.js does not return the full object id. To be presise: I believe this needs to be fixed for object_id to make sense! I will search further where can be caused. Scenes issue from #108 should be due to the same problem |
I believe having the same solution as notifications (for sensors) :https://github.com/zwave-js/zwavejs2mqtt/blob/35e755ef1904daf327ecbd954bbc3a0c9ca6933c/lib/Gateway.js#L1510 |
Let me investigate, I think too |
Tested latest docker dev version, it is working now and all devices are autodiscovered. |
Version
Build/Run method
zwavejs2mqtt version: I'm not sure how to get this. I'm using zwavejs/zwavejs2mqtt:dev pulled on 24th Dec
Describe the bug
Autodiscovered devices for Greeenwave PowerNode 6-plugs are using wrong topics
Manufacturer ID: 153
Product Type: 3
Product ID: 4
I'm pretty confident in earlier versions of ZWaveJS2MQTT the autodiscovered devices were right (kwh sensors pointed out towards the right kwh topics, the same with the "w". In fact, even "previous value" and "delta time" devices were autodiscovered (and they don't now) so I'm not sure if this could be some kind of regression.
I've tried "rediscovering" the node and also "Refreshing Node Info" with no luck. For now, you need to edit the HASS device JSON and set the proper proper topics manually.
The text was updated successfully, but these errors were encountered: