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

Device update status is not displayed in Home Assistant #19161

Closed
Laxilef opened this issue Oct 3, 2023 · 3 comments
Closed

Device update status is not displayed in Home Assistant #19161

Laxilef opened this issue Oct 3, 2023 · 3 comments
Labels
problem Something isn't working

Comments

@Laxilef
Copy link
Contributor

Laxilef commented Oct 3, 2023

What happened?

After starting the OTA update, this is not displayed in Home Assistant.

Fix. Add after

latest_version_template: `{{ value_json['update']['latest_version'] }}`,

json_attributes_topic: `${settings.get().mqtt.base_topic}/${entity.name}`, // state topic
json_attributes_template: `{"in_progress": "{{ value_json['update']['state'] == 'updating' }}"}`,

What did you expect to happen?

No response

How to reproduce it (minimal and precise)

No response

Zigbee2MQTT version

1.33.1

Adapter firmware version

20230507

Adapter

CC2652

Debug log

No response

@Laxilef Laxilef added the problem Something isn't working label Oct 3, 2023
@Koenkk
Copy link
Owner

Koenkk commented Oct 4, 2023

Could you make a PR for this?

@Laxilef
Copy link
Contributor Author

Laxilef commented Oct 5, 2023

Could you make a PR for this?

I'm not sure I'll do everything right. It will be better if this is done by someone who is familiar with the z2m codebase. Thx.

@Koenkk
Copy link
Owner

Koenkk commented Oct 6, 2023

It's not complicated, you can press the Edit icon here: https://github.com/Koenkk/zigbee2mqtt/blob/master/lib/extension/homeassistant.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
problem Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants