-
-
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
Platform mqtt does not generate unique IDs. ID zwavejs2mqtt #819
Comments
But I've got three LC13 for two I can see battery level and for one not? I've attached node with the issue. |
@billiaz ? |
I am going to see that.
you could probably @Wojcioo do cleanup this node from your hass (by removeing the discovery only for this node and then cleanup failed entities) but first need to check the file you posted. Will reply in a few hours |
@Wojcioo checked the file, i find no duplicate on this discovery! I seriously believe it is stuck on hass side can you also aupload another LC-13 node? like the one with 53% battery. |
@billiaz |
@Wojcioo looking this file too, it clearly is a hass mixup with cached discoveries node 2 unique_ids:
node 3 unique_ids:
|
so I've to disable the discovery for this node in Zwavejs2mqtt, then cleanup failed entities in HASS, and restart discovery in Zwavejs2mqtt? |
I do it differently. and send |
sorry for stupid questions - I should remove in Zwavejs2mqtt for this node from json lines with "state_topic" and "discoveryTopic" for both sensors that are not correct discovered in HA. I'm still new in this topics.... |
@Wojcioo No! you need to access HASS configuration - >entities clean mqtt, clean hass, if the nodes are red (on side) then run the topic i told you (this will fake the HASS been restarted) you can ofcourse restart HASS Alternative: Both are Hacky but to the point! |
I have this happen when adding new devices. For settings in zjs2m I'm using MQTT discovery with the retain discovery on, what happens is that the devices get auto discovered right away after adding the node (example "homeassistant/switch/node 22"), then when you rename the node in zjs2m a new discovery topic gets published (example "homeassistant/switch/kitchen light), if you rename it again then another get published, and so on. I usually just clear the old topics with MQTT Explorer and restart HA, but a real solution would be for zjs2m to clear the old topic when sending one if the retain discovery option is on. |
@robertsLando maybe worth adding devices with disabled discovery. or have the option to add them with disabled discovery (when included) and users to enable it afterwards? |
That would definitely be nice... (@billiaz' suggestion, I mean) To avoid trouble, I'm stopping Home Assistant when adding devices and only restarting after renaming them etc. in zwavejs2mqtt (and cleaning up MQTT (that is, before I just went for using the js server-function)). |
We could a dd an option like |
With this setting discovery payload will not be sent on startup but users will be able to send them manually from the UI. Useful when using mqtt discovery paired with zwavejs integration to discovery only some entities. Fixes #819
* feat(hass): added `manual discovery` setting With this setting discovery payload will not be sent on startup but users will be able to send them manually from the UI. Useful when using mqtt discovery paired with zwavejs integration to discovery only some entities. Fixes #819 * docs: manual discovery * fix: undefined error and added tooltips on ui * fix: lint issues
I've uploaded new version, and this node is correct discovered both in zwavejs2mqtt and in Home Assistant, but in HA in logs there is an error
I can't also find battery level in mqtt integration / devices.
I've checked all entities and I can't find more then one NodeID: 2. Where should I look for the error?
Originally posted by @Wojcioo in #607 (comment)
The text was updated successfully, but these errors were encountered: