Skip to content

Instantly share code, notes, and snippets.

@nugget
Created October 5, 2025 19:06
Show Gist options
  • Save nugget/be7a7451379457bd8486f60779166960 to your computer and use it in GitHub Desktop.
Save nugget/be7a7451379457bd8486f60779166960 to your computer and use it in GitHub Desktop.
AppDaemon 4.5.12 (dev build)
2025-10-05 20:55:22.260739 DEBUG HASS: Sending JSON: {
2025-10-05 20:55:22.260858 DEBUG HASS: "type": "subscribe_events",
2025-10-05 20:55:22.260969 DEBUG HASS: "id": 1
2025-10-05 20:55:22.261078 DEBUG HASS: }
2025-10-05 20:55:22.261484 DEBUG AppDaemon: Event type: __AD_LOG_EVENT:
2025-10-05 20:55:22.261639 DEBUG AppDaemon: process_event_callbacks() admin {'event_type': '__AD_LOG_EVENT', 'data': {'level': 'INFO', 'app_name': 'HASS', 'message': 'Authenticated to Home Assistant 2025.10.1', 'type': 'log', 'log_type': 'main_log', 'asctime': '2025-10-05 20:55:22.260001', 'ts': datetime.datetime(2025, 10, 5, 18, 55, 22, 259750), 'formatted_message': '2025-10-05 20:55:22.260001 INFO HASS: Authenticated to Home Assistant 2025.10.1'}}
2025-10-05 20:55:22.261841 DEBUG AppDaemon: thread_async loop, args={'function': <bound method ADStream.process_event of <appdaemon.stream.adstream.ADStream object at 0xffffb0128830>>, 'args': ({'event_type': '__AD_LOG_EVENT', 'data': {'level': 'INFO', 'app_name': 'HASS', 'message': 'Authenticated to Home Assistant 2025.10.1', 'type': 'log', 'log_type': 'main_log', 'asctime': '2025-10-05 20:55:22.260001', 'formatted_message': '2025-10-05 20:55:22.260001 INFO HASS: Authenticated to Home Assistant 2025.10.1'}, 'namespace': 'admin'},), 'kwargs': {}}
2025-10-05 20:55:22.262047 DEBUG AppDaemon: --> {'data': {'event_type': '__AD_LOG_EVENT', 'data': {'level': 'INFO', 'app_name': 'HASS', 'message': 'Authenticated to Home Assistant 2025.10.1', 'type': 'log', 'log_type': 'main_log', 'asctime': '2025-10-05 20:55:22.260001', 'formatted_message': '2025-10-05 20:55:22.260001 INFO HASS: Authenticated to Home Assistant 2025.10.1'}, 'namespace': 'admin'}, 'response_id': '2412bbb2-7d6c-42df-bedf-1c4f621c4072', 'response_type': 'event'}
2025-10-05 20:55:22.262587 DEBUG HASS: Received successful result from ID 1
2025-10-05 20:55:22.262774 DEBUG HASS: Subscribed to Home Assistant events from the websocket in 1.525ms
2025-10-05 20:55:22.262955 INFO HASS: Waiting for Home Assistant to start
2025-10-05 20:55:22.263431 DEBUG HASS: Sending JSON: {
2025-10-05 20:55:22.263682 DEBUG HASS: "type": "get_config",
2025-10-05 20:55:22.263897 DEBUG HASS: "id": 2
2025-10-05 20:55:22.264005 DEBUG HASS: }
2025-10-05 20:55:22.264483 DEBUG HASS: Sending JSON: {
2025-10-05 20:55:22.264597 DEBUG HASS: "type": "get_services",
2025-10-05 20:55:22.264697 DEBUG HASS: "id": 3
2025-10-05 20:55:22.264800 DEBUG HASS: }
2025-10-05 20:55:22.265487 DEBUG AppDaemon: thread_async loop, args={'function': <bound method Events.process_event of <appdaemon.events.Events object at 0xffffafcd86b0>>, 'args': ('admin', {'event_type': '__AD_LOG_EVENT', 'data': {'level': 'INFO', 'app_name': 'HASS', 'message': 'Waiting for Home Assistant to start', 'type': 'log', 'log_type': 'main_log', 'asctime': '2025-10-05 20:55:22.263010', 'ts': datetime.datetime(2025, 10, 5, 18, 55, 22, 262898), 'formatted_message': '2025-10-05 20:55:22.263010 INFO HASS: Waiting for Home Assistant to start'}}), 'kwargs': {}}
2025-10-05 20:55:22.265796 DEBUG AppDaemon: Event type: __AD_LOG_EVENT:
2025-10-05 20:55:22.265965 DEBUG AppDaemon: process_event_callbacks() admin {'event_type': '__AD_LOG_EVENT', 'data': {'level': 'INFO', 'app_name': 'HASS', 'message': 'Waiting for Home Assistant to start', 'type': 'log', 'log_type': 'main_log', 'asctime': '2025-10-05 20:55:22.263010', 'ts': datetime.datetime(2025, 10, 5, 18, 55, 22, 262898), 'formatted_message': '2025-10-05 20:55:22.263010 INFO HASS: Waiting for Home Assistant to start'}}
2025-10-05 20:55:22.267144 DEBUG AppDaemon: thread_async loop, args={'function': <bound method ADStream.process_event of <appdaemon.stream.adstream.ADStream object at 0xffffb0128830>>, 'args': ({'event_type': '__AD_LOG_EVENT', 'data': {'level': 'INFO', 'app_name': 'HASS', 'message': 'Waiting for Home Assistant to start', 'type': 'log', 'log_type': 'main_log', 'asctime': '2025-10-05 20:55:22.263010', 'formatted_message': '2025-10-05 20:55:22.263010 INFO HASS: Waiting for Home Assistant to start'}, 'namespace': 'admin'},), 'kwargs': {}}
2025-10-05 20:55:22.268575 DEBUG HASS: Received successful result from ID 2
2025-10-05 20:55:22.270751 DEBUG AppDaemon: --> {'data': {'event_type': '__AD_LOG_EVENT', 'data': {'level': 'INFO', 'app_name': 'HASS', 'message': 'Waiting for Home Assistant to start', 'type': 'log', 'log_type': 'main_log', 'asctime': '2025-10-05 20:55:22.263010', 'formatted_message': '2025-10-05 20:55:22.263010 INFO HASS: Waiting for Home Assistant to start'}, 'namespace': 'admin'}, 'response_id': '2412bbb2-7d6c-42df-bedf-1c4f621c4072', 'response_type': 'event'}
2025-10-05 20:55:22.273181 DEBUG HASS: Sending JSON: {
2025-10-05 20:55:22.273383 DEBUG HASS: "type": "get_config",
2025-10-05 20:55:22.273523 DEBUG HASS: "id": 4
2025-10-05 20:55:22.273620 DEBUG HASS: }
2025-10-05 20:55:22.278641 DEBUG HASS: Received successful result from ID 3
2025-10-05 20:55:22.286333 DEBUG HASS: Registering 0 new services
2025-10-05 20:55:22.286409 DEBUG HASS: Updated internal service registry
2025-10-05 20:55:22.286771 DEBUG HASS: Received successful result from ID 4
2025-10-05 20:55:22.286870 DEBUG HASS: Sending JSON: {
2025-10-05 20:55:22.286913 DEBUG HASS: "type": "get_states",
2025-10-05 20:55:22.286952 DEBUG HASS: "id": 5
2025-10-05 20:55:22.286994 DEBUG HASS: }
2025-10-05 20:55:22.290663 DEBUG HASS: Received event type: state_changed
2025-10-05 20:55:22.290740 DEBUG AppDaemon: Event type: state_changed:
2025-10-05 20:55:22.290811 WARNING AppDaemon: ------------------------------------------------------------
2025-10-05 20:55:22.290881 WARNING AppDaemon: Unexpected error during process_event()
2025-10-05 20:55:22.290934 WARNING AppDaemon: ------------------------------------------------------------
2025-10-05 20:55:22.291350 WARNING AppDaemon: Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/appdaemon/events.py", line 239, in process_event
self.AD.state.set_state_simple(namespace, entity_id, data["data"]["new_state"])
File "/usr/local/lib/python3.12/site-packages/appdaemon/state.py", line 811, in set_state_simple
if self.entity_exists(namespace, entity_id):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/appdaemon/state.py", line 484, in entity_exists
return namespace in self.state and entity in self.state[namespace]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: argument of type 'NoneType' is not iterable
2025-10-05 20:55:22.291456 WARNING AppDaemon: {
"event_type": "state_changed",
"data": {
"entity_id": "sensor.usw_wdw_access_cpu_utilization",
"old_state": {
"entity_id": "sensor.usw_wdw_access_cpu_utilization",
"state": "57.9",
"attributes": {
"state_class": "measurement",
"unit_of_measurement": "%",
"friendly_name": "usw-wdw-access CPU utilization"
},
"last_changed": "2025-10-05T18:52:48.643871+00:00",
"last_reported": "2025-10-05T18:52:48.643871+00:00",
"last_updated": "2025-10-05T18:52:48.643871+00:00",
"context": {
"id": "01K6TVG9M3D1T89RBVRS9BANSR",
"parent_id": null,
"user_id": null
}
},
"new_state": {
"entity_id": "sensor.usw_wdw_access_cpu_utilization",
"state": "58.0",
"attributes": {
"state_class": "measurement",
"unit_of_measurement": "%",
"friendly_name": "usw-wdw-access CPU utilization"
},
"last_changed": "2025-10-05T18:54:59.753762+00:00",
"last_reported": "2025-10-05T18:54:59.753762+00:00",
"last_updated": "2025-10-05T18:54:59.753762+00:00",
"context": {
"id": "01K6TVM9N969PJKDXW9W546XGP",
"parent_id": null,
"user_id": null
}
},
"metadata": {
"time_fired": "2025-10-05T18:54:59.753762+00:00",
"origin": "LOCAL",
"context": {
"id": "01K6TVM9N969PJKDXW9W546XGP",
"parent_id": null,
"user_id": null
}
}
}
}
2025-10-05 20:55:22.291522 WARNING AppDaemon: ------------------------------------------------------------
2025-10-05 20:55:22.291577 DEBUG HASS: sensor.usw_wdw_access_cpu_utilization state changed to 58.0
2025-10-05 20:55:22.291650 DEBUG AppDaemon: thread_async loop, args={'function': <bound method Events.process_event of <appdaemon.events.Events object at 0xffffafcd86b0>>, 'args': ('admin', {'event_type': '__AD_LOG_EVENT', 'data': {'level': 'WARNING', 'app_name': 'AppDaemon', 'message': '------------------------------------------------------------', 'type': 'log', 'log_type': 'main_log', 'asctime': '2025-10-05 20:55:22.290836', 'ts': datetime.datetime(2025, 10, 5, 18, 55, 22, 290789), 'formatted_message': '2025-10-05 20:55:22.290836 WARNING AppDaemon: ------------------------------------------------------------'}}), 'kwargs': {}}
2025-10-05 20:55:22.291710 DEBUG AppDaemon: thread_async loop, args={'function': <bound method Events.process_event of <appdaemon.events.Events object at 0xffffafcd86b0>>, 'args': ('admin', {'event_type': '__AD_LOG_EVENT', 'data': {'level': 'WARNING', 'app_name': 'AppDaemon', 'message': 'Unexpected error during process_event()', 'type': 'log', 'log_type': 'main_log', 'asctime': '2025-10-05 20:55:22.290902', 'ts': datetime.datetime(2025, 10, 5, 18, 55, 22, 290861), 'formatted_message': '2025-10-05 20:55:22.290902 WARNING AppDaemon: Unexpected error during process_event()'}}), 'kwargs': {}}
2025-10-05 20:55:22.291769 DEBUG AppDaemon: thread_async loop, args={'function': <bound method Events.process_event of <appdaemon.events.Events object at 0xffffafcd86b0>>, 'args': ('admin', {'event_type': '__AD_LOG_EVENT', 'data': {'level': 'WARNING', 'app_name': 'AppDaemon', 'message': '------------------------------------------------------------', 'type': 'log', 'log_type': 'main_log', 'asctime': '2025-10-05 20:55:22.290953', 'ts': datetime.datetime(2025, 10, 5, 18, 55, 22, 290918), 'formatted_message': '2025-10-05 20:55:22.290953 WARNING AppDaemon: ------------------------------------------------------------'}}), 'kwargs': {}}
2025-10-05 20:55:22.291832 DEBUG AppDaemon: thread_async loop, args={'function': <bound method Events.process_event of <appdaemon.events.Events object at 0xffffafcd86b0>>, 'args': ('admin', {'event_type': '__AD_LOG_EVENT', 'data': {'level': 'WARNING', 'app_name': 'AppDaemon', 'message': 'Traceback (most recent call last):\n File "/usr/local/lib/python3.12/site-packages/appdaemon/events.py", line 239, in process_event\n self.AD.state.set_state_simple(namespace, entity_id, data["data"]["new_state"])\n File "/usr/local/lib/python3.12/site-packages/appdaemon/state.py", line 811, in set_state_simple\n if self.entity_exists(namespace, entity_id):\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/usr/local/lib/python3.12/site-packages/appdaemon/state.py", line 484, in entity_exists\n return namespace in self.state and entity in self.state[namespace]\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nTypeError: argument of type \'NoneType\' is not iterable\n', 'type': 'log', 'log_type': 'main_log', 'asctime': '2025-10-05 20:55:22.291374', 'ts': datetime.datetime(2025, 10, 5, 18, 55, 22, 291325), 'formatted_message': '2025-10-05 20:55:22.291374 WARNING AppDaemon: Traceback (most recent call last):\n File "/usr/local/lib/python3.12/site-packages/appdaemon/events.py", line 239, in process_event\n self.AD.state.set_state_simple(namespace, entity_id, data["data"]["new_state"])\n File "/usr/local/lib/python3.12/site-packages/appdaemon/state.py", line 811, in set_state_simple\n if self.entity_exists(namespace, entity_id):\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/usr/local/lib/python3.12/site-packages/appdaemon/state.py", line 484, in entity_exists\n return namespace in self.state and entity in self.state[namespace]\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nTypeError: argument of type \'NoneType\' is not iterable\n'}}), 'kwargs': {}}
2025-10-05 20:55:22.291930 DEBUG AppDaemon: thread_async loop, args={'function': <bound method Events.process_event of <appdaemon.events.Events object at 0xffffafcd86b0>>, 'args': ('admin', {'event_type': '__AD_LOG_EVENT', 'data': {'level': 'WARNING', 'app_name': 'AppDaemon', 'message': '{\n "event_type": "state_changed",\n "data": {\n "entity_id": "sensor.usw_wdw_access_cpu_utilization",\n "old_state": {\n "entity_id": "sensor.usw_wdw_access_cpu_utilization",\n "state": "57.9",\n "attributes": {\n "state_class": "measurement",\n "unit_of_measurement": "%",\n "friendly_name": "usw-wdw-access CPU utilization"\n },\n "last_changed": "2025-10-05T18:52:48.643871+00:00",\n "last_reported": "2025-10-05T18:52:48.643871+00:00",\n "last_updated": "2025-10-05T18:52:48.643871+00:00",\n "context": {\n "id": "01K6TVG9M3D1T89RBVRS9BANSR",\n "parent_id": null,\n "user_id": null\n }\n },\n "new_state": {\n "entity_id": "sensor.usw_wdw_access_cpu_utilization",\n "state": "58.0",\n "attributes": {\n "state_class": "measurement",\n "unit_of_measurement": "%",\n "friendly_name": "usw-wdw-access CPU utilization"\n },\n "last_changed": "2025-10-05T18:54:59.753762+00:00",\n "last_reported": "2025-10-05T18:54:59.753762+00:00",\n "last_updated": "2025-10-05T18:54:59.753762+00:00",\n "context": {\n "id": "01K6TVM9N969PJKDXW9W546XGP",\n "parent_id": null,\n "user_id": null\n }\n },\n "metadata": {\n "time_fired": "2025-10-05T18:54:59.753762+00:00",\n "origin": "LOCAL",\n "context": {\n "id": "01K6TVM9N969PJKDXW9W546XGP",\n "parent_id": null,\n "user_id": null\n }\n }\n }\n}', 'type': 'log', 'log_type': 'main_log', 'asctime': '2025-10-05 20:55:22.291490', 'ts': datetime.datetime(2025, 10, 5, 18, 55, 22, 291437), 'formatted_message': '2025-10-05 20:55:22.291490 WARNING AppDaemon: {\n "event_type": "state_changed",\n "data": {\n "entity_id": "sensor.usw_wdw_access_cpu_utilization",\n "old_state": {\n "entity_id": "sensor.usw_wdw_access_cpu_utilization",\n "state": "57.9",\n "attributes": {\n "state_class": "measurement",\n "unit_of_measurement": "%",\n "friendly_name": "usw-wdw-access CPU utilization"\n },\n "last_changed": "2025-10-05T18:52:48.643871+00:00",\n "last_reported": "2025-10-05T18:52:48.643871+00:00",\n "last_updated": "2025-10-05T18:52:48.643871+00:00",\n "context": {\n "id": "01K6TVG9M3D1T89RBVRS9BANSR",\n "parent_id": null,\n "user_id": null\n }\n },\n "new_state": {\n "entity_id": "sensor.usw_wdw_access_cpu_utilization",\n "state": "58.0",\n "attributes": {\n "state_class": "measurement",\n "unit_of_measurement": "%",\n "friendly_name": "usw-wdw-access CPU utilization"\n },\n "last_changed": "2025-10-05T18:54:59.753762+00:00",\n "last_reported": "2025-10-05T18:54:59.753762+00:00",\n "last_updated": "2025-10-05T18:54:59.753762+00:00",\n "context": {\n "id": "01K6TVM9N969PJKDXW9W546XGP",\n "parent_id": null,\n "user_id": null\n }\n },\n "metadata": {\n "time_fired": "2025-10-05T18:54:59.753762+00:00",\n "origin": "LOCAL",\n "context": {\n "id": "01K6TVM9N969PJKDXW9W546XGP",\n "parent_id": null,\n "user_id": null\n }\n }\n }\n}'}}), 'kwargs': {}}
2025-10-05 20:55:22.291989 DEBUG AppDaemon: thread_async loop, args={'function': <bound method Events.process_event of <appdaemon.events.Events object at 0xffffafcd86b0>>, 'args': ('admin', {'event_type': '__AD_LOG_EVENT', 'data': {'level': 'WARNING', 'app_name': 'AppDaemon', 'message': '------------------------------------------------------------', 'type': 'log', 'log_type': 'main_log', 'asctime': '2025-10-05 20:55:22.291540', 'ts': datetime.datetime(2025, 10, 5, 18, 55, 22, 291507), 'formatted_message': '2025-10-05 20:55:22.291540 WARNING AppDaemon: ------------------------------------------------------------'}}), 'kwargs': {}}
2025-10-05 20:55:22.292038 DEBUG AppDaemon: Event type: __AD_LOG_EVENT:
2025-10-05 20:55:22.292097 DEBUG AppDaemon: process_event_callbacks() admin {'event_type': '__AD_LOG_EVENT', 'data': {'level': 'WARNING', 'app_name': 'AppDaemon', 'message': '------------------------------------------------------------', 'type': 'log', 'log_type': 'main_log', 'asctime': '2025-10-05 20:55:22.290836', 'ts': datetime.datetime(2025, 10, 5, 18, 55, 22, 290789), 'formatted_message': '2025-10-05 20:55:22.290836 WARNING AppDaemon: ------------------------------------------------------------'}}
2025-10-05 20:55:22.292150 DEBUG AppDaemon: Event type: __AD_LOG_EVENT:
2025-10-05 20:55:22.292194 DEBUG AppDaemon: process_event_callbacks() admin {'event_type': '__AD_LOG_EVENT', 'data': {'level': 'WARNING', 'app_name': 'AppDaemon', 'message': 'Unexpected error during process_event()', 'type': 'log', 'log_type': 'main_log', 'asctime': '2025-10-05 20:55:22.290902', 'ts': datetime.datetime(2025, 10, 5, 18, 55, 22, 290861), 'formatted_message': '2025-10-05 20:55:22.290902 WARNING AppDaemon: Unexpected error during process_event()'}}
2025-10-05 20:55:22.292242 DEBUG AppDaemon: Event type: __AD_LOG_EVENT:
2025-10-05 20:55:22.292285 DEBUG AppDaemon: process_event_callbacks() admin {'event_type': '__AD_LOG_EVENT', 'data': {'level': 'WARNING', 'app_name': 'AppDaemon', 'message': '------------------------------------------------------------', 'type': 'log', 'log_type': 'main_log', 'asctime': '2025-10-05 20:55:22.290953', 'ts': datetime.datetime(2025, 10, 5, 18, 55, 22, 290918), 'formatted_message': '2025-10-05 20:55:22.290953 WARNING AppDaemon: ------------------------------------------------------------'}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment