Koenkk / zigbee2mqtt

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

Vimar 14592.0 not report status to Home Assistant #19799

Closed ontirius closed 10 months ago

ontirius commented 10 months ago

What happened?

Hi, I have 5 vimar 14592.0 integrated in HA with conbee II and zigbee2mqtt, all working perfectly until I upgraded zigbee2mqtt to the latest release 1.33. 2, now on the interface of zigbee2mqtt, the 5 vimar switches work, I see their status and can change it without any problem, only on HA I don't see their status and I can't even change it (I attach two screenshot, one for zigbee2mqtt interface in which you can see the correct status, and the presence of button switch to change the status, and one for the home assisntance intervace, in which you are able to see that is showed as "disconnect" an no actions available to change the status), they appear as devices, if I change the name on zigbee2mqtt the name also updates on HA, but there is no way to change\see the status. I have already tried removing the MQTT integration on HA and reinstalling it, unfortunately without success. Can you please verify this problem? Thank you very much! Note: all other zigbee devices (occupancy, temp, luminosity sensors) work without problems, I see them correctly on HA luce esterna lato sala zigbee2mqtt luce esterna lato sala ha

What did you expect to happen?

No response

How to reproduce it (minimal and precise)

No response

Zigbee2MQTT version

1.33.2

Adapter firmware version

0x26580700

Adapter

ConBee2/RaspBee2

Debug log

No response

ontirius commented 10 months ago

Hi, any news about that?

ontirius commented 10 months ago

Hi all, are there some news?

Koenkk commented 10 months ago

Could you check if the issue is fixed with the following external converter: https://gist.github.com/Koenkk/49608776b57009e68d2e350b21f40c45

ontirius commented 10 months ago

Hi Koenkk, many thanks for your support. I did it, create a new file ext_converter.js inside folder of zigbee2mqtt, in that folder also exists the configuration.yaml, and I added to configuration.yaml the two rows:

external_converters:

Note: I added this two rows below section experimental: {} and before the section frontend:

I restarted zigbee2mqtt with command "docker-compose restart zigbee2mqtt"

I waited a few minutes... But the situation is still the same. On zigbee2mqtt interface all zigbee devices are see properly, and I can change their status, also vimar devices, but in HA I am able to see only this:

image

Just to translate from Italy: "has become unknown" means "has become unknown", and as you can see no actions are available.

Maybe I wrong to configure the configuration.yaml? I need to put the two rows in a proper position in configuration.yaml?

I noticed only a strange thing, if from zigbee2mqtt interface, I change the state of vimar device, as I wrote before, all work properly, but if I try to change the value of attribute: Power-on behavior I received the following error:

image

Could this be the trouble that causes the problem on HA? Because I also noticed another important thing in HA, I made this test: from zigbee2mqtt interface I turned off and on, a vimar device, after that I opened on HA the MQTT INFO section of vimar device, and it seems that that status is received, below a screenshot of MQTT INFO in HA:

image

Many thanks for your patience! Best regards Giuseppe

Koenkk commented 10 months ago

Could you try to force remove the device from the zigbee2mqt frontend and pair it again?

ontirius commented 10 months ago

Hi Koenkk, sorry for delay, I did it, two times:

but the situation is exacly the same, as my previous update MQTT INFO in HA (here the log: mqtt-59fd543cae6110c9c1f84c7fbd9764ff-LuceEsternaSala-eec96b272a4bbc0c7ae21e4224d09443.json.txt) shot properly the status of vimar device, but no actions and status available on HA ...

Another info, I found in logs that error:

2023-12-07 14:56:10.529 ERROR (MainThread) [homeassistant.util.logging] Exception in async_discover when dispatching 'mqtt_discovery_new_switch_mqtt': ({'availability': [{'topic': 'zigbee2mqtt/bridge/state'}], 'command_topic': 'zigbee2mqtt/LuceEsternaIngresso/set', 'device': {'identifiers': ['zigbee2mqtt_0xf4ce3621de4ea9de'], 'manufacturer': 'Vimar', 'model': '2-way switch IoT connected mechanism (14592.0)', 'name': 'LuceEsternaIngresso', 'sw_version': ''}, 'json_attributes_topic': 'zigbee2mqtt/LuceEsternaIngresso', 'name': None, 'object_id': 'luceesternaingresso', 'origin': {'name': 'Zigbee2MQTT', 'sw': '1.33.2', 'url': 'https://www.zigbee2mqtt.io'}, 'payload_off': 'OFF', 'payload_on': 'ON', 'state_topic': 'zigbee2mqtt/LuceEsternaIngresso', 'unique_id': '0xf4ce3621de4ea9de_switch_zigbee2mqtt', 'value_template': '{{ value_json.state }}', 'platform': 'mqtt'},) Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/mqtt/mixins.py", line 270, in async_discover config: DiscoveryInfoType = discovery_schema(discovery_payload) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/voluptuous/schema_builder.py", line 272, in call return self._compiled([], data) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/voluptuous/schema_builder.py", line 595, in validate_dict return base_validate(path, iteritems(data), out) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/voluptuous/schema_builder.py", line 433, in validate_mapping raise er.MultipleInvalid(errors) voluptuous.error.MultipleInvalid: string value is None for dictionary value @ data['name']

Maybe can be helpfull to understand the cause of that problem, I cross my fingers!!!

Many thanks for your patience! Best regards Giuseppe

Koenkk commented 10 months ago

Can you try with z2m 1.34.0 and the latest HA?

ontirius commented 10 months ago

Hi Koenkk, many thanks for your support! Fixed with upgrade to HA 2023.9.2! Best regards Giuseppe