arthurdent75 / SimpleScheduler

An Home Assistant AddOn to schedule entities on/off on weekly base
183 stars 36 forks source link

HA Runs Like a Dog #131

Closed chilled35 closed 1 year ago

chilled35 commented 1 year ago

Not entirely sure this is related to SimpleScheduler but... I was looking for an easier way of managing my slowly-becoming-out-of-control automations list, with something a bit more graphical....enter Simple Scheduler!

I 'ported' over half a dozen of my most used automations to SS and all appeared fine, apart from the general responsiveness of HA either via the browser or mobile app. Everything I tried to load was taking upwards of 30 seconds to action (moving around overview to history to settings etc) to the point it was unbearable. Rebooting my RaspPi4 (on SSD) made zero difference. Checking 'supervisor' reported practically non-existent load on CPU/memory (<5%). Stopping SS, everything sprang back into life with the usual snappy responsiveness.

Anyone else have this 'issue' on a RaspPi4?

arthurdent75 commented 1 year ago

If you uninstall Simplescheduler does HA return "normal"? (Don't worry, if you uninstall Simplescheduler you will not lose the schedulers you have created)

chilled35 commented 1 year ago

Yup, that's pretty much where I'm at, at the moment. I've had to remove SS purely for performance reasons. If the Pi was showing excessive CPU/Mem usage, then I'd put it down to that...but it doesn't appear to be the case. I'll have another play this evening, see what happens...

arthurdent75 commented 1 year ago

Have you other addons installed and running? Is HA updated? Have you try to reboot the whole HA?

I run SimpleScheduler on a RaspPi3 with no issues. That's really odd. Have you considered that maybe the SD Card is faulty?

chilled35 commented 1 year ago

Only a handful of HACS (Mushroom cards, Octopus Energy, LocalTuya), ESPHome, Z2M...

HA I held off updating until about 2:30 AM today, now on the latest cut with no difference. Restarted HA, rebooted Rasp, no avail. Running the Rasp off an SSD as I was planning on using InFlux/Grafana for some funky graphing at some point.

arthurdent75 commented 1 year ago

Could you enable the debug mode in the addon and keep it on for 10 minutes? And then post the log here. Thanks.

chilled35 commented 1 year ago

Yup...I've just reinstalled V2.11 and debug is on....I'll post back in a bit with my findings.

chilled35 commented 1 year ago

[2023-05-16 13:50:00] DEBUG: Parsing [Hot Water Weekend (Morning)] [2023-05-16 13:50:00] DEBUG: Parsing [Hot Water Week (Evening)] [2023-05-16 13:50:00] DEBUG: Parsing [Hot Water Weekend (Evening)] [2023-05-16 13:50:00] DEBUG: Parsing [Midnight OFF] [2023-05-16 13:50:00] DEBUG: Parsing [Sunrise Actions] [2023-05-16 13:50:00] DEBUG: Parsing [Hot Water Week (Morning)] [2023-05-16 13:50:00] DEBUG: Parsing [Garage Lights OFF] [2023-05-16 13:50:00] DEBUG: Parsing [Bask Lamp] [2023-05-16 13:50:00] DEBUG: Parsing [Sunset Actions] [2023-05-16 13:50:05] DEBUG: Max Retry: 3 [2023-05-16 13:50:05] DEBUG: Starting Queue management - Queue length: 0 [2023-05-16 13:50:05] DEBUG: Finished Queue management - Queue length: 0 [2023-05-16 13:51:00] DEBUG: Parsing [Hot Water Weekend (Morning)] [2023-05-16 13:51:00] DEBUG: Parsing [Hot Water Week (Evening)] [2023-05-16 13:51:00] DEBUG: Parsing [Hot Water Weekend (Evening)] [2023-05-16 13:51:00] DEBUG: Parsing [Midnight OFF] [2023-05-16 13:51:00] DEBUG: Parsing [Sunrise Actions] [2023-05-16 13:51:00] DEBUG: Parsing [Hot Water Week (Morning)] [2023-05-16 13:51:00] DEBUG: Parsing [Garage Lights OFF] [2023-05-16 13:51:00] DEBUG: Parsing [Bask Lamp] [2023-05-16 13:51:00] DEBUG: Parsing [Sunset Actions] [2023-05-16 13:51:05] DEBUG: Max Retry: 3 [2023-05-16 13:51:05] DEBUG: Starting Queue management - Queue length: 0 [2023-05-16 13:51:05] DEBUG: Finished Queue management - Queue length: 0 [2023-05-16 13:52:00] DEBUG: Parsing [Hot Water Weekend (Morning)] [2023-05-16 13:52:00] DEBUG: Parsing [Hot Water Week (Evening)] [2023-05-16 13:52:00] DEBUG: Parsing [Hot Water Weekend (Evening)] [2023-05-16 13:52:00] DEBUG: Parsing [Midnight OFF] [2023-05-16 13:52:00] DEBUG: Parsing [Sunrise Actions] [2023-05-16 13:52:00] DEBUG: Parsing [Hot Water Week (Morning)] [2023-05-16 13:52:00] DEBUG: Parsing [Garage Lights OFF] [2023-05-16 13:52:00] DEBUG: Parsing [Bask Lamp] [2023-05-16 13:52:00] DEBUG: Parsing [Sunset Actions] [2023-05-16 13:52:05] DEBUG: Max Retry: 3 [2023-05-16 13:52:05] DEBUG: Starting Queue management - Queue length: 0 [2023-05-16 13:52:05] DEBUG: Finished Queue management - Queue length: 0 [2023-05-16 13:53:00] DEBUG: Parsing [Hot Water Weekend (Morning)] [2023-05-16 13:53:00] DEBUG: Parsing [Hot Water Week (Evening)] [2023-05-16 13:53:00] DEBUG: Parsing [Hot Water Weekend (Evening)] [2023-05-16 13:53:00] DEBUG: Parsing [Midnight OFF] [2023-05-16 13:53:00] DEBUG: Parsing [Sunrise Actions] [2023-05-16 13:53:00] DEBUG: Parsing [Hot Water Week (Morning)] [2023-05-16 13:53:00] DEBUG: Parsing [Garage Lights OFF] [2023-05-16 13:53:00] DEBUG: Parsing [Bask Lamp] [2023-05-16 13:53:00] DEBUG: Parsing [Sunset Actions] [2023-05-16 13:53:05] DEBUG: Max Retry: 3 [2023-05-16 13:53:05] DEBUG: Starting Queue management - Queue length: 0 [2023-05-16 13:53:05] DEBUG: Finished Queue management - Queue length: 0 [2023-05-16 13:54:00] DEBUG: Parsing [Hot Water Weekend (Morning)] [2023-05-16 13:54:00] DEBUG: Parsing [Hot Water Week (Evening)] [2023-05-16 13:54:00] DEBUG: Parsing [Hot Water Weekend (Evening)] [2023-05-16 13:54:00] DEBUG: Parsing [Midnight OFF] [2023-05-16 13:54:00] DEBUG: Parsing [Sunrise Actions] [2023-05-16 13:54:00] DEBUG: Parsing [Hot Water Week (Morning)] [2023-05-16 13:54:00] DEBUG: Parsing [Garage Lights OFF] [2023-05-16 13:54:00] DEBUG: Parsing [Bask Lamp] [2023-05-16 13:54:00] DEBUG: Parsing [Sunset Actions] [2023-05-16 13:54:05] DEBUG: Max Retry: 3 [2023-05-16 13:54:05] DEBUG: Starting Queue management - Queue length: 0 [2023-05-16 13:54:05] DEBUG: Finished Queue management - Queue length: 0 [2023-05-16 13:55:00] DEBUG: Parsing [Hot Water Weekend (Morning)] [2023-05-16 13:55:00] DEBUG: Parsing [Hot Water Week (Evening)] [2023-05-16 13:55:00] DEBUG: Parsing [Hot Water Weekend (Evening)] [2023-05-16 13:55:00] DEBUG: Parsing [Midnight OFF] [2023-05-16 13:55:00] DEBUG: Parsing [Sunrise Actions] [2023-05-16 13:55:00] DEBUG: Parsing [Hot Water Week (Morning)] [2023-05-16 13:55:00] DEBUG: Parsing [Garage Lights OFF] [2023-05-16 13:55:00] DEBUG: Parsing [Bask Lamp] [2023-05-16 13:55:00] DEBUG: Parsing [Sunset Actions] [2023-05-16 13:55:05] DEBUG: Max Retry: 3 [2023-05-16 13:55:05] DEBUG: Starting Queue management - Queue length: 0 [2023-05-16 13:55:05] DEBUG: Finished Queue management - Queue length: 0 [2023-05-16 13:56:00] DEBUG: Parsing [Hot Water Weekend (Morning)] [2023-05-16 13:56:00] DEBUG: Parsing [Hot Water Week (Evening)] [2023-05-16 13:56:00] DEBUG: Parsing [Hot Water Weekend (Evening)] [2023-05-16 13:56:00] DEBUG: Parsing [Midnight OFF] [2023-05-16 13:56:00] DEBUG: Parsing [Sunrise Actions] [2023-05-16 13:56:00] DEBUG: Parsing [Hot Water Week (Morning)] [2023-05-16 13:56:00] DEBUG: Parsing [Garage Lights OFF] [2023-05-16 13:56:00] DEBUG: Parsing [Bask Lamp] [2023-05-16 13:56:00] DEBUG: Parsing [Sunset Actions] [2023-05-16 13:56:05] DEBUG: Max Retry: 3 [2023-05-16 13:56:05] DEBUG: Starting Queue management - Queue length: 0 [2023-05-16 13:56:05] DEBUG: Finished Queue management - Queue length: 0 [2023-05-16 13:57:00] DEBUG: Parsing [Hot Water Weekend (Morning)] [2023-05-16 13:57:00] DEBUG: Parsing [Hot Water Week (Evening)] [2023-05-16 13:57:00] DEBUG: Parsing [Hot Water Weekend (Evening)] [2023-05-16 13:57:00] DEBUG: Parsing [Midnight OFF] [2023-05-16 13:57:00] DEBUG: Parsing [Sunrise Actions] [2023-05-16 13:57:00] DEBUG: Parsing [Hot Water Week (Morning)] [2023-05-16 13:57:00] DEBUG: Parsing [Garage Lights OFF] [2023-05-16 13:57:00] DEBUG: Parsing [Bask Lamp] [2023-05-16 13:57:00] DEBUG: Parsing [Sunset Actions] [2023-05-16 13:57:05] DEBUG: Max Retry: 3 [2023-05-16 13:57:05] DEBUG: Starting Queue management - Queue length: 0 [2023-05-16 13:57:05] DEBUG: Finished Queue management - Queue length: 0 [2023-05-16 13:58:00] DEBUG: Parsing [Hot Water Weekend (Morning)] [2023-05-16 13:58:00] DEBUG: Parsing [Hot Water Week (Evening)] [2023-05-16 13:58:00] DEBUG: Parsing [Hot Water Weekend (Evening)] [2023-05-16 13:58:00] DEBUG: Parsing [Midnight OFF]

arthurdent75 commented 1 year ago

The log is perfect... works like a clock (pun intended). There is no sign of slowing down or data retrieval error. I really have no clue...

An interaction with another addon, maybe? If it doesn't mind you give this a try: could you try to keep SimpleScheduler on and turn off the other addons, one at a time?

Thanks for your efforts.

chilled35 commented 1 year ago

So after reinstalling SS earlier today to grab this debug output, all has been well. Really cannot explain what the slow down was the other night :|

Closing off as obvs a non-issue.