Tuya Siren TS0216 TYZB01_a5tf0bpl says Warning' object has no attribute serialize After HA update

Hi,

Can someone please help me out, I just updated to HA 2023.7.0, unfortunately my ZigBee Tuya Siren TS0216 TYZB01_a5tf0bpl has stopped working. It will not trigger anymore , it keep saying Warning’ object has no attribute serialize when I tried to trigger it manually.

Any help will be appreciated .

Many thanks

Logger: homeassistant.components.websocket_api.http.connection
Source: components/zha/core/cluster_handlers/security.py:330
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 5 July 2023 at 9:54:52 pm (19 occurrences)
Last logged: 12:44:40 pm

[546818924688] ‘Warning’ object has no attribute ‘serialize’
[546809192144] ‘Warning’ object has no attribute ‘serialize’
[546944207952] ‘Warning’ object has no attribute ‘serialize’
[547010320080] ‘Warning’ object has no attribute ‘serialize’
[546822261136] ‘Warning’ object has no attribute ‘serialize’
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py”, line 205, in handle_call_service
await hass.services.async_call(
File “/usr/src/homeassistant/homeassistant/core.py”, line 1957, in async_call
response_data = await coro
^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/core.py”, line 1997, in _execute_service
return await cast(
^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/helpers/entity_component.py”, line 235, in handle_service
return await service.entity_service_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/helpers/service.py”, line 833, in entity_service_call
response_data = task.result() # pop exception if have
^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 1191, in async_request_call
return await coro
^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/helpers/service.py”, line 877, in _handle_entity_call
result = await task
^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/siren/init.py”, line 117, in async_handle_turn_on_service
await siren.async_turn_on(
File “/usr/src/homeassistant/homeassistant/components/zha/siren.py”, line 145, in async_turn_on
await self._cluster_handler.issue_start_warning(
File “/usr/src/homeassistant/homeassistant/components/zha/core/cluster_handlers/security.py”, line 330, in issue_start_warning
await self.start_warning(
File “/usr/local/lib/python3.11/site-packages/zigpy/util.py”, line 132, in retry
return await func()
^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/zigpy/zcl/init.py”, line 355, in request
hdr, request = self._create_request(
^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/zigpy/zcl/init.py”, line 318, in _create_request
request.serialize() # Throw an error before generating a new TSN
^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/zigpy/types/struct.py”, line 250, in serialize
chunks.append(value.serialize())
^^^^^^^^^^^^^^^
AttributeError: ‘Warning’ object has no attribute ‘serialize’

Just FYI, I am having exactly the same issue with a Heiman HS2WD-E siren as posted here. Actually, I am about to open an issue in GitHub. I will follow your topic as well just in case anyone gives you an advice that can help me as well.

@sesardelaisla, I am now following your thread on github.

1 Like

@sesardelaisla, check your github, fix has been pushed by the team.

1 Like

Hey! Thanks for notifying! I had not noticed until your shout-out. :+1: Trust it is implemented in an update shortly.

Anyway, I decided to move all my security devices to zigbee2mqtt. I have been thinking for some time to test and finally did the step forward. This siren works with z2m, although it was a bit tricky to setup the siren trigger because the device does not expose a siren switch entity there either. For the moment, I will keep both zha and z2m with two different coordinators (Conbee II and Sonoff Plus) to check both options. In the future, I will decide whether I move everything to Sonoff or keep devices split on each other. Nevertheless, it’s good to know I can roll back if necessary.

Worth mention how these HA guys work. They have been very fast on reacting to the issue! :clap::clap::clap: