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

Error reporting in MQTT message #1123

Closed
pepp86 opened this Issue Feb 19, 2019 · 4 comments

Comments

Projects
None yet
3 participants
@pepp86
Copy link

commented Feb 19, 2019

Hi,

is it possible to report error from devices within the MQTT message? For example if the server responds with "Mac no ack" while trying to switch a device?

If so, my home automation can trigger on that and report the issue to me or try to switch on/off again.

@andreasbrett

This comment has been minimized.

Copy link
Contributor

commented Feb 19, 2019

Great idea! Would be very helpful. Not sure if it's better to have this on a per-device basis or globally. For my use-case it would be better to have an error message in the log subtree rather than having one additional error attribute for each device (as I would have to configure my home automation system to watch for ALL of them).

Koenkk added a commit that referenced this issue Feb 20, 2019

@Koenkk

This comment has been minimized.

Copy link
Owner

commented Feb 20, 2019

Implemented, example of the message published to MQTT: https://hastebin.com/lakubupume.apache

Koenkk added a commit to Koenkk/zigbee2mqtt.io that referenced this issue Feb 20, 2019

@andreasbrett

This comment has been minimized.

Copy link
Contributor

commented Feb 20, 2019

Looks good, will use that in my smart home setup. Thanks for this rapid implementation!

@pepp86

This comment has been minimized.

Copy link
Author

commented Feb 21, 2019

Great! Awesome fast Implementation.

Now I only need to get the dev tree up and running on my environment :-)

@pepp86 pepp86 closed this Feb 21, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.