Koenkk / zigbee2mqtt

Zigbee 🐝 to MQTT bridge 🌉, get rid of your proprietary Zigbee bridges 🔨
https://www.zigbee2mqtt.io
GNU General Public License v3.0
11.88k stars 1.66k forks source link

z2m 1.36.0 + Home assistant 2024.03.0 + HassAgent: Entity 'homeassistant/button' is unknown #21847

Open Blacksli opened 6 months ago

Blacksli commented 6 months ago

What happened?

I'm using Home assistant 2024.3.0 in conjunction with the "Hass Agent" program, which works with HA via mqtt and provides some button entities for certain actions Today I updated zigbee2mqtt from version 1.35.1 to version 1.36.0 and errors appeared in the z2m logs:

debug 2024-03-17 18:34:42: Received MQTT message on 'homeassistant/button/ALEKS10/setvolume_0/config' with data '{"availability_topic":"homeassistant/sensor/ALEKS10/availability","command_topic":"homeassistant/button/ALEKS10/setvolume_0/set","action_topic":"homeassistant/button/ALEKS10/setvolume_0/action","unique_id":"6fac7892-a0ae-43b8-b998-9ff6dd167784","object_id":"ALEKS10_setvolume_0","device":{"identifiers":"hass.agent-ALEKS10","manufacturer":"HASS.Agent Team","model":"Microsoft Windows NT 10.0.19045.0","name":"ALEKS10","sw_version":"2.0.1"},"name":"setvolume_0","state_topic":"homeassistant/button/ALEKS10/setvolume_0/state"}' info 2024-03-17 18:34:42: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":{"friendly_name":"homeassistant/button"},"type":"entity_not_found"}' error 2024-03-17 18:34:42: Entity 'homeassistant/button' is unknown debug 2024-03-17 18:34:42: Received MQTT message on 'homeassistant/button/ALEKS10/setvolume_0/state' with data 'OFF' info 2024-03-17 18:34:42: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":{"friendly_name":"homeassistant/button"},"type":"entity_not_found"}' error 2024-03-17 18:34:42: Entity 'homeassistant/button' is unknown debug 2024-03-17 18:34:42: Received MQTT message on 'homeassistant/button/ALEKS10/setvolume_80/config' with data '{"availability_topic":"homeassistant/sensor/ALEKS10/availability","command_topic":"homeassistant/button/ALEKS10/setvolume_80/set","action_topic":"homeassistant/button/ALEKS10/setvolume_80/action","unique_id":"3584b296-deea-4ef1-8653-190df45e70c6","object_id":"ALEKS10_setvolume_80","device":{"identifiers":"hass.agent-ALEKS10","manufacturer":"HASS.Agent Team","model":"Microsoft Windows NT 10.0.19045.0","name":"ALEKS10","sw_version":"2.0.1"},"name":"setvolume_80","state_topic":"homeassistant/button/ALEKS10/setvolume_80/state"}' info 2024-03-17 18:34:42: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":{"friendly_name":"homeassistant/button"},"type":"entity_not_found"}' error 2024-03-17 18:34:42: Entity 'homeassistant/button' is unknown debug 2024-03-17 18:34:42: Received MQTT message on 'homeassistant/button/ALEKS10/setvolume_80/state' with data 'OFF' info 2024-03-17 18:34:42: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":{"friendly_name":"homeassistant/button"},"type":"entity_not_found"}' error 2024-03-17 18:34:42: Entity 'homeassistant/button' is unknown

image

image

and this repeats every 30 seconds (hass agent publishes these topics every 30 seconds)

But these topics have nothing to do with zigbee2mqtt

What exactly does zigbee2mqtt not like and how to fix it?

What did you expect to happen?

No response

How to reproduce it (minimal and precise)

use Home assistant + z2m 1.36.0 + hass agent with command like 'set volume'

Zigbee2MQTT version

1.36.0

Adapter firmware version

20211217

Adapter

Sonoff P

Setup

HA Addon

Debug log

No response

francisp2 commented 6 months ago

The homeassistant key is reserved for discovery messages. It seems your "Hass Agent" configuration uses it for other purposes.

Blacksli commented 6 months ago

The homeassistant key is reserved for discovery messages. It seems your "Hass Agent" configuration uses it for other purposes.

That's right. This is a topic for auto-detecting buttons in Home assistant. But the publication of topics in it cannot affect the work of z2m in any way.

tammeryousef1006 commented 6 months ago

any solution ? im facing the same problem and dont know how to prevent it or minimize it

jensweimann commented 6 months ago

So the issue is that the domain "button" is not supported in z2m yet?

Blacksli commented 6 months ago

The problem is that z2m complains about topics that z2m has nothing to do with. And this error is constant and very intrusive. Why does z2m look at these topics? I noticed a peculiarity that all topics that contain swear words begin with “set”

Blacksli commented 6 months ago

image

Blacksli commented 6 months ago

The problem apparently lies in reading and processing messages from the broker. There is some kind of error in the z2m code due to which it is trying to process a message that begins with the word "set"

tammeryousef1006 commented 6 months ago

i got similiar issue kindly see the photo below zigbee

Blacksli commented 6 months ago

i got similiar issue kindly see the photo below zigbee

Please enable the debug level log, and attach part of the log before the error. Thank you.

github-actions[bot] commented 2 days 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