Koenkk / zigbee2mqtt

Zigbee 🐝 to MQTT bridge πŸŒ‰, get rid of your proprietary Zigbee bridges πŸ”¨
https://www.zigbee2mqtt.io
GNU General Public License v3.0
12.03k stars 1.67k forks source link

Error for Devices that Publish an "Action": Template variable warning: 'dict object' has no attribute 'action' when rendering '{{ value_json.action }}' in Home Assistant #20949

Closed kylepyke closed 2 months ago

kylepyke commented 9 months ago

What happened?

Home Assistant Logs are being spammed by devices with an "Action" entity with the following error:

Template variable warning: 'dict object' has no attribute 'action' when rendering '{{ value_json.action }}'

My guess, is– Home Asssistant sees the Action topic and creates an entity, but when an action is not published, it throws an error.

What did you expect to happen?

"null" should be published.

How to reproduce it (minimal and precise)

No response

Zigbee2MQTT version

1.35.1

Adapter firmware version

20230507

Adapter

Zigstar UZG-01

Setup

Proxmox LXC Container reporting to Mosquitto in Home Assistant

Debug log

No response

kylepyke commented 9 months ago

Also receiving:

Template variable warning: 'dict object' has no attribute 'installed_version' when rendering '{{ value_json['update']['installed_version'] }}'
Template variable warning: 'dict object' has no attribute 'latest_version' when rendering '{{ value_json['update']['latest_version'] }}'

I believe this may be related to Inovelli switches.

github-actions[bot] commented 3 months ago

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 30 days