Hello, I using this for a years but now AppDaemon throwing this error:
2025-11-05 17:17:02.090077 ERROR HASS: [400] HTTP POST: Bad Request {'attributes': {'friendly_name': 'X1V Bt Alarm', 'unit_of_measurement': '%', 'id': '3C:38:F4:5B:73:2F', 'name': 'X1V_Bt', 'manufacturer': 'Sony Corporation', 'type': 'KNOWN_MAC', 'retained': 'false', 'timestamp': 'St lis 05 2025 17:06:51 GMT+0100 (CET)', 'version': '0.2.200', 'location': 'alarm', 'rssi': '-99', 'last_changed': '2025-11-05T16:06:51.673322+00:00', 'last_reported': '2025-11-05T16:06:51.673322+00:00', 'last_updated': '2025-11-05T16:06:51.673322+00:00', 'context': {'id': '01K9ACAQ0SQDCQ1NWKJHWMS93K', 'user_id': 'ea30c540c25b4ca28e4df4ed7799e625'}}}
2025-11-05 17:17:02.090626 ERROR home_presence_app: ===== HomePresenceApp.presence_message for home_presence_app ============
2025-11-05 17:17:02.090824 ERROR home_presence_app: EventCallbackFail: Scheduled callback failed for app 'home_presence_app'
2025-11-05 17:17:02.090940 ERROR home_presence_app: args: ('MQTT_MESSAGE', {'topic': 'monitor/alarm/x1v_bt', 'wildcard': 'monitor/#', 'payload': '{"id":"3C:38:F4:5B:73:2F","confidence":"0","name":"X1V_BT","manufacturer":"Sony Corporation","type":"KNOWN_MAC","retained":"false","timestamp":"St lis 05 2025 17:17:01 GMT+0100 (CET)","version":"0.2.200"}'}, {'wildcard': 'monitor/#', '__thread_id': 'thread-0'})
2025-11-05 17:17:02.091035 ERROR home_presence_app: argument of type 'ClientResponseError' is not iterable
2025-11-05 17:17:02.091127 ERROR home_presence_app: State callbacks should have the following signature:
2025-11-05 17:17:02.091220 ERROR home_presence_app: my_callback(self, event_name, data, **kwargs):
2025-11-05 17:17:02.091320 ERROR home_presence_app: See https://appdaemon.readthedocs.io/en/latest/APPGUIDE.html#event-callbacks for more information
2025-11-05 17:17:02.092516 ERROR home_presence_app: TypeError: argument of type 'ClientResponseError' is not iterable
2025-11-05 17:17:02.095429 ERROR home_presence_app: File "/usr/lib/python3.12/site-packages/appdaemon/threads.py", line 1092, in safe_callback
2025-11-05 17:17:02.095592 ERROR home_presence_app: funcref()
2025-11-05 17:17:02.095891 ERROR home_presence_app: File "/config/apps/Monitor-App/home_presence_app.py", line 451, in presence_message
2025-11-05 17:17:02.095997 ERROR home_presence_app: self.update_hass_sensor(device_conf_sensor, confidence, new_attr=payload_json)
2025-11-05 17:17:02.096093 ERROR home_presence_app: File "/config/apps/Monitor-App/home_presence_app.py", line 869, in update_hass_sensor
2025-11-05 17:17:02.096183 ERROR home_presence_app: self.hass.set_state(sensor, state=new_state, attributes={})
2025-11-05 17:17:02.096269 ERROR home_presence_app: File "/usr/lib/python3.12/site-packages/appdaemon/utils.py", line 289, in wrapper
2025-11-05 17:17:02.096354 ERROR home_presence_app: return run_coroutine_threadsafe(self, coro, timeout=timeout)
2025-11-05 17:17:02.096437 ERROR home_presence_app: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-11-05 17:17:02.096538 ERROR home_presence_app: File "/usr/lib/python3.12/site-packages/appdaemon/utils.py", line 615, in run_coroutine_threadsafe
2025-11-05 17:17:02.096657 ERROR home_presence_app: return future.result(timeout.total_seconds())
2025-11-05 17:17:02.096769 ERROR home_presence_app: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-11-05 17:17:02.097040 ERROR home_presence_app: File "/usr/lib/python3.12/concurrent/futures/_base.py", line 456, in result
2025-11-05 17:17:02.097138 ERROR home_presence_app: return self.__get_result()
2025-11-05 17:17:02.097226 ERROR home_presence_app: ^^^^^^^^^^^^^^^^^^^
2025-11-05 17:17:02.097313 ERROR home_presence_app: File "/usr/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result
2025-11-05 17:17:02.097398 ERROR home_presence_app: raise self._exception
2025-11-05 17:17:02.097486 ERROR home_presence_app: File "/usr/lib/python3.12/site-packages/appdaemon/adapi.py", line 1789, in set_state
2025-11-05 17:17:02.097589 ERROR home_presence_app: return await self.AD.state.set_state(
2025-11-05 17:17:02.097674 ERROR home_presence_app: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-11-05 17:17:02.097760 ERROR home_presence_app: File "/usr/lib/python3.12/site-packages/appdaemon/state.py", line 793, in set_state
2025-11-05 17:17:02.097863 ERROR home_presence_app: if "entity_id" in result:
2025-11-05 17:17:02.097943 ERROR home_presence_app: ^^^^^^^^^^^^^^^^^^^^^
2025-11-05 17:17:02.098026 ERROR home_presence_app: ===========================================================================
Hello, I using this for a years but now AppDaemon throwing this error:
2025-11-05 17:17:02.090077 ERROR HASS: [400] HTTP POST: Bad Request {'attributes': {'friendly_name': 'X1V Bt Alarm', 'unit_of_measurement': '%', 'id': '3C:38:F4:5B:73:2F', 'name': 'X1V_Bt', 'manufacturer': 'Sony Corporation', 'type': 'KNOWN_MAC', 'retained': 'false', 'timestamp': 'St lis 05 2025 17:06:51 GMT+0100 (CET)', 'version': '0.2.200', 'location': 'alarm', 'rssi': '-99', 'last_changed': '2025-11-05T16:06:51.673322+00:00', 'last_reported': '2025-11-05T16:06:51.673322+00:00', 'last_updated': '2025-11-05T16:06:51.673322+00:00', 'context': {'id': '01K9ACAQ0SQDCQ1NWKJHWMS93K', 'user_id': 'ea30c540c25b4ca28e4df4ed7799e625'}}}
2025-11-05 17:17:02.090626 ERROR home_presence_app: ===== HomePresenceApp.presence_message for home_presence_app ============
2025-11-05 17:17:02.090824 ERROR home_presence_app: EventCallbackFail: Scheduled callback failed for app 'home_presence_app'
2025-11-05 17:17:02.090940 ERROR home_presence_app: args: ('MQTT_MESSAGE', {'topic': 'monitor/alarm/x1v_bt', 'wildcard': 'monitor/#', 'payload': '{"id":"3C:38:F4:5B:73:2F","confidence":"0","name":"X1V_BT","manufacturer":"Sony Corporation","type":"KNOWN_MAC","retained":"false","timestamp":"St lis 05 2025 17:17:01 GMT+0100 (CET)","version":"0.2.200"}'}, {'wildcard': 'monitor/#', '__thread_id': 'thread-0'})
2025-11-05 17:17:02.091035 ERROR home_presence_app: argument of type 'ClientResponseError' is not iterable
2025-11-05 17:17:02.091127 ERROR home_presence_app: State callbacks should have the following signature:
2025-11-05 17:17:02.091220 ERROR home_presence_app: my_callback(self, event_name, data, **kwargs):
2025-11-05 17:17:02.091320 ERROR home_presence_app: See https://appdaemon.readthedocs.io/en/latest/APPGUIDE.html#event-callbacks for more information
2025-11-05 17:17:02.092516 ERROR home_presence_app: TypeError: argument of type 'ClientResponseError' is not iterable
2025-11-05 17:17:02.095429 ERROR home_presence_app: File "/usr/lib/python3.12/site-packages/appdaemon/threads.py", line 1092, in safe_callback
2025-11-05 17:17:02.095592 ERROR home_presence_app: funcref()
2025-11-05 17:17:02.095891 ERROR home_presence_app: File "/config/apps/Monitor-App/home_presence_app.py", line 451, in presence_message
2025-11-05 17:17:02.095997 ERROR home_presence_app: self.update_hass_sensor(device_conf_sensor, confidence, new_attr=payload_json)
2025-11-05 17:17:02.096093 ERROR home_presence_app: File "/config/apps/Monitor-App/home_presence_app.py", line 869, in update_hass_sensor
2025-11-05 17:17:02.096183 ERROR home_presence_app: self.hass.set_state(sensor, state=new_state, attributes={})
2025-11-05 17:17:02.096269 ERROR home_presence_app: File "/usr/lib/python3.12/site-packages/appdaemon/utils.py", line 289, in wrapper
2025-11-05 17:17:02.096354 ERROR home_presence_app: return run_coroutine_threadsafe(self, coro, timeout=timeout)
2025-11-05 17:17:02.096437 ERROR home_presence_app: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-11-05 17:17:02.096538 ERROR home_presence_app: File "/usr/lib/python3.12/site-packages/appdaemon/utils.py", line 615, in run_coroutine_threadsafe
2025-11-05 17:17:02.096657 ERROR home_presence_app: return future.result(timeout.total_seconds())
2025-11-05 17:17:02.096769 ERROR home_presence_app: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-11-05 17:17:02.097040 ERROR home_presence_app: File "/usr/lib/python3.12/concurrent/futures/_base.py", line 456, in result
2025-11-05 17:17:02.097138 ERROR home_presence_app: return self.__get_result()
2025-11-05 17:17:02.097226 ERROR home_presence_app: ^^^^^^^^^^^^^^^^^^^
2025-11-05 17:17:02.097313 ERROR home_presence_app: File "/usr/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result
2025-11-05 17:17:02.097398 ERROR home_presence_app: raise self._exception
2025-11-05 17:17:02.097486 ERROR home_presence_app: File "/usr/lib/python3.12/site-packages/appdaemon/adapi.py", line 1789, in set_state
2025-11-05 17:17:02.097589 ERROR home_presence_app: return await self.AD.state.set_state(
2025-11-05 17:17:02.097674 ERROR home_presence_app: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-11-05 17:17:02.097760 ERROR home_presence_app: File "/usr/lib/python3.12/site-packages/appdaemon/state.py", line 793, in set_state
2025-11-05 17:17:02.097863 ERROR home_presence_app: if "entity_id" in result:
2025-11-05 17:17:02.097943 ERROR home_presence_app: ^^^^^^^^^^^^^^^^^^^^^
2025-11-05 17:17:02.098026 ERROR home_presence_app: ===========================================================================