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

Add device and groups descriptions #11493

Merged
merged 3 commits into from
Feb 20, 2022
Merged

Conversation

tripplet
Copy link
Sponsor Contributor

@tripplet tripplet commented Feb 19, 2022

Implements descriptions for devices and groups as options
Fixes #7161

Koenkk added a commit to Koenkk/zigbee2mqtt.io that referenced this pull request Feb 20, 2022
@Koenkk
Copy link
Owner

Koenkk commented Feb 20, 2022

@nurikk could you add this to the frontend?

@Koenkk Koenkk merged commit 9cfc382 into Koenkk:dev Feb 20, 2022
@nurikk
Copy link
Collaborator

nurikk commented Feb 21, 2022

devices - done

@pepp86
Copy link

pepp86 commented Mar 21, 2022

Like so much, that this feature is there now. But how to update description through MQTT? Did not find any hint.

@tripplet tripplet deleted the user-descriptions branch March 24, 2022 12:31
@tripplet
Copy link
Sponsor Contributor Author

@pepp86 You can change a description using the zigbee2mqtt/bridge/request/device/options topic, see documentation

Example:

mosquitto_pub -h "localhost" -u user -P "password" \
    -t "zigbee2mqtt/bridge/request/device/options" \
    -m '{"id": "ieee_addr or friendlyname", "options": {"description": "the new description"}}'

If you want the request the current description you can trigger a new publish of the device info using:

mosquitto_pub -h "localhost" -u user -P "password" \
    -t "zigbee2mqtt/bridge/request/device/options" \
    -m '{"id": "ieee_addr or friendlyname", "options": {}}'

The options of all devices will then be published to zigbee2mqtt/bridge/devices see documentation

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.

4 participants