Skip to content
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

Missing status when Home Assistant restart then device are unavailable #3952

Closed
Turbox35 opened this issue Oct 15, 2024 · 8 comments
Closed

Comments

@Turbox35
Copy link

Before submitting a bug please read: https://zwave-js.github.io/zwave-js-ui/#/troubleshooting/bug_report

If you are using the Home Assistant Z-Wave JS integration, please add a full dump:

Home Assistant --> settings --> Integrations --> Z-Wave JS --> Configure --> Create dump --> zip the json file and post it here.

Version

Build/Run method:

[X] Docker
[ ] Git Clone + npm install + npm run build + npm start
[ ] Pkg

Z-Wave JS UI version: 9.23.0
Z-Wave JS version: 13.9.0

Describe the bug

My issue discussed here #3642 is still present but I have investigate a little.
The problem: each time Home Assistant restart, some devices comes unavailable until I change something into Zwave JS UI setting.
Indeed if I check or uncheck the "notify new versions" as an exemple, my devices come available.

I have checked and when Home Assistant restart the message offline/online message is well published and the a rediscovery of all my device is well published on MQTT but the status informations of devices is not published.

I understand now why some devices have this issue and others not, it's because the working device don't have the "availability" configuration message into their discovery payload (probably old devices).

"Ignore status update" is well uncheck, so I don't understand why it's not published. Do you have an idea? What's could be wrong in my configuration (docker or Zwave JS UI)?

@robertsLando
Copy link
Member

With "status" updates you refer to MQTT messages published on <node-prefix>/status ?

@Turbox35
Copy link
Author

Hello,

Exactly. Like this :
image

@robertsLando
Copy link
Member

robertsLando commented Oct 16, 2024

The problem: each time Home Assistant restart, some devices comes unavailable until I change something into Zwave JS UI setting.

Yep because when you press save you restart the gateway so everything is published again.

but the status informations of devices is not published.

Do you have retain flag set to true on mqtt settings? Pay attention to don't confuse it with retained discovery, that's another setting that should be kept off.

@Turbox35
Copy link
Author

Oh no it's set to false.
image
I don't really understand, If I set it to True all MQTT message sent by Zwave JS UI will be retained (like temperature, power... value) including availability informations? If yes I understand why retain availability data but not why for the sensor data values.

@robertsLando
Copy link
Member

I don't really understand, If I set it to True all MQTT message sent by Zwave JS UI will be retained (like temperature, power... value) including availability informations? If yes I understand why retain availability data but not why for the sensor data values.

Sensor values may change, the status changes only when node status changes. BTW that should fix your issue

@Turbox35
Copy link
Author

I confirm it works. Thanks a lot for your help.
Regarding devices which don't have the availability option , should I rediscover node or rediscover each line?

image

@robertsLando
Copy link
Member

@Turbox35 Do you have Persistent to true on those devices in table? Anyway try using rediscover node

@Turbox35
Copy link
Author

Turbox35 commented Nov 19, 2024

Hello @robertsLando , sorry I missed your answer. Yes, it's linked to Persistence option which was set, so, all is normal.
Again thanks all works fine now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants