Heaty will die, Schedy be born!

Hi Chris this is the same conclusion I came to last night. Things have changed a lot since I put the heating together using schedy. I think with schedule and calendar helpers I can now create a working solution with overrides and window sensors. Good luck Gareth even stranger if you have a partially working setup.

Indeed. I’ve rolled back to 17.4 so we’ll see what happens tomorrow morning. The non-functioning schedule controls the heated towel rail in the bathroom. The other two control the central heating and the separate heating in my garden office. They both seem to be working; though of course they’re doing nothing at the moment. The log does show them responding to movement sensors though.

How did you roll back? A backup?

Yes. The system does a back up every night and I’ve got it set to do a backup before updating addons.

The hot water schedule acted properly this morning, so I’ll stick with 17.4. This is my only use of Appdaemon, so there’s no real reason to update in the normal course of things.

1 Like

For all running into the timer problem where timers (schedules) won’t trigger at all or with huge deleys:
This is a AppDeamon based problem.
I found a workaround:
Edit file room.py which is in your AppDaemon config folder and change lines 464 and 465 to the following:

for _time in times:
            parsed_time = self.app.parse_time(_time.strftime("%H:%M:%S"), aware=True)
            self.app.run_daily(self._scheduling_timer_cb, parsed_time)

In my case the file is located under: [IP of your home assistant instance]\addon_configs\a0d7b954_appdaemon\apps\hass-apps\hass_apps\schedy

2 Likes

@stelu Thank you for this tip, I indeed have this problem. However in my apps folder is no hass-apps folder and I can also not find it anywhere elsewhere. I do have hass_apps_loader.py but it contains

# This is just a stub which makes the app classes available for AppDaemon.

from hass_apps.loader import *

Any idea where it might be?

Hello @taste
It’s probably because you are using home assistant addon for appdaemon. hass-apps are installed inside the docker container.

The easiest solution I came up with is:
1/ put a copy of the patched room.py in a directory that is mounted in the container. In my case, it’s in the addon_configs/a0d7b954_appdaemon/ which is mounted in /config in the container
2/ launch appdameon with an init command that copies the patched room.py in the right place. In my case: cp /config/room.py
/usr/lib/python3.12/site-packages/hass_apps/schedy/room.py

Screenshot of the configuration page of appdaemon:

1 Like

Thanks for pointing this out! Is it related to this issue? run_daily triggered later and later · Issue #2390 · AppDaemon/appdaemon · GitHub

Thank you very much, this sounds like a straight forward solution which I want to try since the latest AppDeamon update did not fix it. Just one problem, where o find the full room.py file which I need to patch. I was expecting at github but cannot find it.
Just realized I can reverse the command to get the file initially :slight_smile:
Everything is working again, thanks for the support!