IATkachenko / HA-SleepAsAndroid

Sleep As Android integration for Home Assistant
Apache License 2.0
165 stars 25 forks source link

Unreliable triggering - Trace message "Stopped because maximum number of parallel runs reached at" #52

Open HoneyBadger100 opened 1 year ago

HoneyBadger100 commented 1 year ago

General information

I have noticed an inconsistent/ unreliable triggering of this automation and upon checking the "Trace Timeline" I was getting the following message: "Stopped because maximum number of parallel runs reached at XXXXXX"

Based on the documentation, the default # of parallel runs is 10 so I have updated the Blueprint to 30 which solved this issue:

  1. Blueprint folder: /config/blueprints/automation/IATkachenko/full.yaml

  2. Code change: max: 30 #line added after "mode: queued" (line 199). The default is 10 as detailed in https://www.home-assistant.io/docs/automation/modes

Maybe others are facing the same issue and this simple change can be updated into the Blueprint. Thanks

Home Assistant

Version: 2023.6.3 Installation method (according to instructions): [X] Operating System [ ] Linux VM [ ] Container [ ] Supervised [ ] Core

Integration

Installation method: [X] HACS [ ] manual from release [ ] manual from git Integration version: Root topic:

Application settings

topic: [X] I can see MQTT messages from application at MQTT-server

How it works now?

## What do you expect?

Steps to reproduce

  1. step-1
  2. step-2
  3. ...

    Debug log

    Put Home Assistant debug log, related to the issue, here

    Additional information

IATkachenko commented 1 year ago

It is very strange error: blueprint does not run steps in parallel. Looks like choose action parsed as parallel action... Thank you for report and workaround., will update blueprint.

HoneyBadger100 commented 1 year ago

Another thing that may be helpful to others: to allow the troubleshooting, I have also increased the number of traces from the standard 5 traces to 60. This covers the 50+ traces I have in one night from "time_to_bed_alarm_alert" until "sleep_tracking_stopped"

Reference documentation: https://www.home-assistant.io/docs/automation/troubleshooting/#traces

Thanks for your great work. This is a great Blueprint! Much appreciated.

IATkachenko commented 1 year ago

Could you check debug log from the integration. While firing new event it writes to debug log: Firing '%s' with payload: '%s', so we may check is the integration spam events or we have some issues while event processing itself.

HoneyBadger100 commented 1 year ago

This is what I get when filtering "Firing" in the logs:

Home Assistant Core

2023-07-01 22:05:00.650 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'time_to_bed_alarm_alert'}'
2023-07-01 23:57:07.872 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'sleep_tracking_paused'}'
2023-07-01 23:59:07.894 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'sleep_tracking_resumed'}'
2023-07-02 00:03:07.964 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'deep_sleep'}'
2023-07-02 00:06:27.978 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'light_sleep'}'
2023-07-02 00:11:38.136 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'awake'}'
2023-07-02 00:14:08.149 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'not_awake'}'
2023-07-02 00:23:58.373 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'deep_sleep'}'
2023-07-02 00:53:08.857 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'light_sleep'}'
2023-07-02 01:03:29.107 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'deep_sleep'}'
2023-07-02 01:18:09.339 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'light_sleep'}'
2023-07-02 01:28:29.569 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'deep_sleep'}'
2023-07-02 01:34:49.646 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'light_sleep'}'
2023-07-02 01:45:09.852 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'deep_sleep'}'
2023-07-02 01:55:40.002 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'light_sleep'}'
2023-07-02 02:08:02.267 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'deep_sleep'}'
2023-07-02 02:22:40.491 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'light_sleep'}'
2023-07-02 02:37:10.742 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'light_sleep'}'
2023-07-02 02:51:50.959 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'deep_sleep'}'
2023-07-02 03:04:11.176 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'light_sleep'}'
2023-07-02 03:16:41.398 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'deep_sleep'}'
2023-07-02 03:52:02.081 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'light_sleep'}'
2023-07-02 04:02:32.253 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'rem'}'
2023-07-02 04:12:52.424 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'rem'}'
2023-07-02 04:40:02.953 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'deep_sleep'}'
2023-07-02 04:44:12.963 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'light_sleep'}'
2023-07-02 04:58:43.318 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'deep_sleep'}'
2023-07-02 05:11:13.566 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'light_sleep'}'
2023-07-02 05:21:33.745 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'rem'}'
2023-07-02 05:32:04.483 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'rem'}'
2023-07-02 05:44:24.192 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'deep_sleep'}'
2023-07-02 05:56:54.421 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'light_sleep'}'
2023-07-02 06:00:00.719 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'before_alarm'}'
2023-07-02 06:07:24.649 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'light_sleep'}'
2023-07-02 06:10:00.701 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'before_smart_period'}'
2023-07-02 06:15:44.873 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'deep_sleep'}'
2023-07-02 06:19:54.812 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'light_sleep'}'
2023-07-02 06:22:14.937 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'awake'}'
2023-07-02 06:28:45.092 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'not_awake'}'
2023-07-02 06:40:35.357 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'deep_sleep'}'
2023-07-02 06:44:45.435 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'light_sleep'}'
2023-07-02 06:55:15.677 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'light_sleep'}'
2023-07-02 06:55:46.214 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'alarm_alert_start'}'
2023-07-02 06:56:11.778 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'alarm_alert_dismiss'}'
2023-07-02 06:56:11.935 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'sleep_tracking_stopped'}'
2023-07-02 11:03:28.326 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'sleep_tracking_paused'}'
2023-07-02 11:05:28.368 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'sleep_tracking_resumed'}'
2023-07-02 11:07:02.534 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'alarm_alert_start'}'
2023-07-02 11:07:02.565 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'smart_period'}'
2023-07-02 11:07:58.660 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'alarm_alert_dismiss'}'
2023-07-02 11:07:58.700 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'sleep_tracking_stopped'}'
2023-07-02 11:14:32.093 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'sleep_tracking_started'}'
2023-07-02 11:14:32.194 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'smart_period'}'
2023-07-02 11:15:16.885 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'sleep_tracking_stopped'}'
2023-07-02 11:15:38.666 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'sleep_tracking_started'}'
2023-07-02 11:17:38.719 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'sleep_tracking_resumed'}'
2023-07-02 11:20:00.962 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'alarm_alert_start'}'
2023-07-02 11:20:29.533 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'alarm_alert_dismiss'}'
2023-07-02 11:20:29.673 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'sleep_tracking_stopped'}'
2023-07-02 22:15:00.174 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'time_to_bed_alarm_alert'}'
2023-07-02 22:18:00.155 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'time_to_bed_alarm_alert'}'
2023-07-02 22:20:00.207 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'time_to_bed_alarm_alert'}'
2023-07-02 22:44:25.957 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'sleep_tracking_started'}'
2023-07-02 22:44:26.185 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'sleep_tracking_paused'}'
2023-07-02 22:46:25.976 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'sleep_tracking_resumed'}'
2023-07-02 22:50:44.664 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'time_to_bed_alarm_alert'}'
2023-07-02 22:54:02.231 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'sound_event_talk'}'
2023-07-02 22:54:06.026 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'deep_sleep'}'
2023-07-02 22:54:32.267 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'sound_event_talk'}'
2023-07-02 22:54:56.134 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'awake'}'
2023-07-02 22:55:02.334 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'sound_event_talk'}'
2023-07-02 22:55:32.393 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'sound_event_talk'}'
2023-07-02 22:56:02.380 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'sound_event_talk'}'
2023-07-02 22:56:32.436 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'sound_event_talk'}'
2023-07-02 22:56:56.219 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'not_awake'}'
2023-07-02 22:59:20.290 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'sound_event_talk'}'
2023-07-02 23:02:56.087 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'sound_event_talk'}'
2023-07-02 23:03:26.100 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'sound_event_talk'}'
2023-07-02 23:03:26.182 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'awake'}'
2023-07-02 23:03:56.122 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'sound_event_talk'}'
2023-07-02 23:04:26.223 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'sound_event_talk'}'
2023-07-02 23:04:56.235 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'sound_event_talk'}'
2023-07-02 23:05:26.233 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'sound_event_talk'}'
2023-07-02 23:06:26.328 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'not_awake'}'
2023-07-02 23:08:56.204 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'light_sleep'}'
2023-07-02 23:13:26.428 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'awake'}'
2023-07-02 23:15:26.401 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'not_awake'}'
2023-07-02 23:25:36.429 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'deep_sleep'}'
2023-07-02 23:56:00.199 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'sleep_tracking_started'}'
2023-07-03 00:02:30.293 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'deep_sleep'}'
2023-07-03 00:27:30.522 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'light_sleep'}'
2023-07-03 00:40:00.610 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'deep_sleep'}'
2023-07-03 00:44:10.634 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'light_sleep'}'
2023-07-03 00:58:40.796 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'deep_sleep'}'
2023-07-03 01:48:41.283 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'light_sleep'}'
2023-07-03 01:59:01.399 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'deep_sleep'}'
2023-07-03 02:11:31.514 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'light_sleep'}'
2023-07-03 02:17:41.598 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'deep_sleep'}'
2023-07-03 02:21:51.578 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'light_sleep'}'
2023-07-03 02:32:21.737 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'deep_sleep'}'
2023-07-03 02:46:51.886 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'light_sleep'}'
2023-07-03 02:57:22.008 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'rem'}'
2023-07-03 03:03:32.033 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'deep_sleep'}'
2023-07-03 03:18:02.173 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'light_sleep'}'
2023-07-03 03:28:32.314 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'rem'}'
2023-07-03 03:41:02.498 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'deep_sleep'}'
2023-07-03 03:43:02.413 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'light_sleep'}'
2023-07-03 03:51:22.506 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'deep_sleep'}'
2023-07-03 03:53:32.567 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'light_sleep'}'
2023-07-03 04:03:52.641 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'deep_sleep'}'
2023-07-03 04:08:02.725 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'light_sleep'}'
2023-07-03 04:22:32.845 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'deep_sleep'}'
2023-07-03 04:43:23.030 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'light_sleep'}'
2023-07-03 04:53:53.139 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'deep_sleep'}'
2023-07-03 04:57:53.112 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'light_sleep'}'
2023-07-03 05:08:23.287 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'rem'}'
2023-07-03 05:10:00.229 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'before_alarm'}'
2023-07-03 05:10:00.266 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'before_smart_period'}'
2023-07-03 05:18:43.337 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'rem'}'
2023-07-03 05:25:03.389 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'deep_sleep'}'
2023-07-03 05:37:33.554 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'light_sleep'}'
2023-07-03 05:50:03.642 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'deep_sleep'}'
2023-07-03 05:55:07.111 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'smart_period'}'
2023-07-03 06:10:01.074 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'alarm_alert_start'}'
2023-07-03 06:10:17.868 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'alarm_alert_dismiss'}'
2023-07-03 06:10:18.088 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'sleep_tracking_stopped'}'
2023-07-03 06:45:01.617 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'smart_period'}'
2023-07-03 07:33:05.938 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'Unknown'}'
2023-07-03 07:35:42.098 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'sleep_tracking_started'}'
2023-07-03 07:35:42.139 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'time_to_bed_alarm_alert'}'
2023-07-03 07:35:42.484 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'sleep_tracking_paused'}'
2023-07-03 07:36:26.680 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'sleep_tracking_stopped'}'
2023-07-03 22:10:00.507 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'time_to_bed_alarm_alert'}'
2023-07-03 22:20:58.852 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'sleep_tracking_started'}'
2023-07-03 22:20:59.240 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'sleep_tracking_paused'}'
2023-07-03 22:21:02.598 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'time_to_bed_alarm_alert'}'
2023-07-03 22:22:58.878 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'sleep_tracking_resumed'}'
2023-07-03 22:32:28.909 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'deep_sleep'}'
2023-07-03 22:34:29.173 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'light_sleep'}'
2023-07-03 22:38:59.086 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'awake'}'
2023-07-03 22:40:59.075 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'not_awake'}'
2023-07-03 22:51:09.155 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'deep_sleep'}'
2023-07-03 23:14:09.384 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'light_sleep'}'
2023-07-03 23:24:29.464 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'deep_sleep'}'
2023-07-03 23:45:19.627 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'light_sleep'}'
2023-07-03 23:59:49.860 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'deep_sleep'}'
2023-07-04 00:14:29.947 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'light_sleep'}'
2023-07-04 00:20:39.979 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'deep_sleep'}'
2023-07-04 00:29:00.120 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'light_sleep'}'
2023-07-04 00:39:20.100 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'deep_sleep'}'
2023-07-04 00:49:50.248 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'light_sleep'}'
2023-07-04 01:00:10.321 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'rem'}'
2023-07-04 01:06:30.367 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'deep_sleep'}'
2023-07-04 01:40:01.785 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'awake'}'
2023-07-04 01:44:01.811 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'not_awake'}'
2023-07-04 02:00:40.897 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'deep_sleep'}'
2023-07-04 02:33:51.166 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'light_sleep'}'
2023-07-04 02:44:21.256 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'deep_sleep'}'
2023-07-04 02:46:21.274 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'light_sleep'}'
2023-07-04 02:56:51.415 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'deep_sleep'}'
2023-07-04 04:07:32.086 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'light_sleep'}'
2023-07-04 04:17:52.152 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'deep_sleep'}'
2023-07-04 04:26:12.322 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'light_sleep'}'
2023-07-04 04:40:52.360 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'deep_sleep'}'
2023-07-04 04:51:12.466 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'light_sleep'}'
2023-07-04 05:01:32.522 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'rem'}'
2023-07-04 05:08:01.134 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'deep_sleep'}'
2023-07-04 05:10:00.435 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'before_alarm'}'
2023-07-04 05:12:02.599 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'light_sleep'}'
2023-07-04 05:24:32.813 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'deep_sleep'}'
2023-07-04 05:47:22.982 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'light_sleep'}'
2023-07-04 05:55:06.440 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'smart_period'}'
2023-07-04 05:57:53.089 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'rem'}'
2023-07-04 05:58:07.213 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'alarm_alert_start'}'
2023-07-04 05:58:19.732 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'alarm_alert_dismiss'}'
2023-07-04 05:58:19.950 DEBUG (MainThread) [custom_components.sleep_as_android.sensor] Firing 'SleepAsAndroid_Client1' with payload: '{'event': 'sleep_tracking_stopped'}'
IATkachenko commented 1 year ago

Looks fine, there is not a lot of parallel (even for one minute) events... Have no idea why HA complains on maximum number of parallel runs... ps. hint: you may turn off unnecessary events in the Sleep As Android application settings.

HoneyBadger100 commented 1 year ago

Looks fine, there is not a lot of parallel (even for one minute) events... Have no idea why HA complains on maximum number of parallel runs... ps. hint: you may turn off unnecessary events in the Sleep As Android application settings.

Thanks for the hint. In SaA's Settings => Services => Automation => Events => I have unselected the events that I dont have any automation e.g. REM, Anti Snoring, Light Sleep, etc

I dont get more "Firing" entries in HA's log now:

Home Assistant Core No issues found for search term 'Firing'