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

Discovery fix on restart HASS + adding the timestamp of last received zigbee message visible in HASS #734

Closed
wants to merge 8 commits into from

Conversation

ugrug
Copy link
Contributor

@ugrug ugrug commented Dec 20, 2018

  • On restarting Home Assistant, resending device discovery information
  • Add timestamp on receiving message from Zigbee
  • Add last_message into MQTT info for devices

@Koenkk
Copy link
Owner

Koenkk commented Dec 20, 2018

why do you rediscover on hass startup? these messages are retained by the mqtt broker.

@ugrug
Copy link
Contributor Author

ugrug commented Dec 20, 2018

On restarting hass without restarting zigbee2mqtt causes my zigbee devices disappear. If this only issue on my configuration, possible caused by using rabbitmq.

@Koenkk
Copy link
Owner

Koenkk commented Dec 20, 2018

Can you view the retained MQTT messages?

@ugrug
Copy link
Contributor Author

ugrug commented Dec 20, 2018

I think this issue only on using another broker instead of hass internal mqtt broker.

@Koenkk
Copy link
Owner

Koenkk commented Dec 20, 2018

I use an external mosquitto which works without problems.

@ugrug
Copy link
Contributor Author

ugrug commented Dec 20, 2018

I'll check retained working on rabbitmq.

@ugrug
Copy link
Contributor Author

ugrug commented Dec 20, 2018

MQTT discovery rely on persistence not enabled in my configuration. I'll move adding timestamp to separate request.

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

Successfully merging this pull request may close these issues.

2 participants