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

[improvement] sort json payload in logging #4091

Closed
sjorge opened this issue Aug 12, 2020 · 1 comment
Closed

[improvement] sort json payload in logging #4091

sjorge opened this issue Aug 12, 2020 · 1 comment

Comments

@sjorge
Copy link
Sponsor Contributor

sjorge commented Aug 12, 2020

Zigbee2MQTT:info  2020-08-12 21:40:36: MQTT publish: topic 'zigbee2mqtt/office/lights/panel1', payload '{"state":"OFF","linkquality":31,"update_available":false,"brightness":254,"color_temp":370}'
Zigbee2MQTT:info  2020-08-12 21:40:36: MQTT publish: topic 'zigbee2mqtt/office/lights/panel3', payload '{"update_available":false,"state":"OFF","linkquality":34,"brightness":254,"color_temp":370}'
Zigbee2MQTT:info  2020-08-12 21:40:36: MQTT publish: topic 'zigbee2mqtt/office/lights/panel2', payload '{"state":"OFF","brightness":254,"update_available":false,"linkquality":34,"color_temp":370}'
Zigbee2MQTT:info  2020-08-12 21:40:36: MQTT publish: topic 'zigbee2mqtt/office/lights/panel4', payload '{"state":"OFF","brightness":254,"linkquality":31,"update_available":false,"color_temp":370}'```

The order of panel3 is different, not a huge deal but it makes comparing devices a pain. Would be nice if they were sorted so the order is the same.
@Koenkk
Copy link
Owner

Koenkk commented Aug 13, 2020

Implemented!

Changes will be available in the latest dev branch in a few hours (https://www.zigbee2mqtt.io/how_tos/how-to-switch-to-dev-branch.html)

@Koenkk Koenkk closed this as completed Aug 13, 2020
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