What I thought would be the simplest of automations so I am hoping for a quick fix.
import appdaemon.plugins.hass.hassapi as hass
import datetime
import time
class GarageUpReminder(hass.Hass):
def initialize(self):
self.sonos = self.get_app("Sonos")
runtime = datetime.time()
self.run_hourly(self.garage_up, runtime)
def garage_up(self, kwargs):
if (self.listen_state(self.args["entity"]) == 'on'):
self.log("GARAGE DOOR IS UP REMINDER")
self.sonos.tts("The garage roller door is not down", 0.5, 10)
Latest appdaemon version on Ubuntu 18/ Virtual Env
Error log showing nothing.
Logfile showing:
2018-10-10 10:35:06.484334 INFO AppDaemon: Currently busy threads: 0
2018-10-10 10:35:06.484589 INFO AppDaemon: Most used threads: 4 at 2018-10-10 09:28:05
2018-10-10 10:35:06.484751 INFO AppDaemon: Last activity: 2018-10-10 10:00:22
2018-10-10 10:35:06.484939 INFO AppDaemon: --------------------------------------------------
2018-10-10 10:35:06.485336 INFO AppDaemon: thread-1 - current callback: idle since 2018-10-10 10:00:22, alive: False
2018-10-10 10:35:06.485573 INFO AppDaemon: thread-2 - current callback: idle since 2018-10-10 10:00:05, alive: False
2018-10-10 10:35:06.485747 INFO AppDaemon: thread-3 - current callback: idle since 2018-10-10 09:59:49, alive: False
2018-10-10 10:35:06.485976 INFO AppDaemon: thread-4 - current callback: idle since 2018-10-10 10:00:05, alive: False
2018-10-10 10:35:06.486184 INFO AppDaemon: thread-5 - current callback: idle since 2018-10-10 10:00:05, alive: False
2018-10-10 10:35:06.486381 INFO AppDaemon: thread-6 - current callback: idle since 2018-10-10 10:00:00, alive: False
2018-10-10 10:35:06.486554 INFO AppDaemon: thread-7 - current callback: idle since 2018-10-10 10:00:22, alive: False
2018-10-10 10:35:06.486729 INFO AppDaemon: thread-8 - current callback: idle since 2018-10-10 09:59:49, alive: False
2018-10-10 10:35:06.486902 INFO AppDaemon: thread-9 - current callback: idle since 2018-10-10 10:00:05, alive: False
2018-10-10 10:35:06.487071 INFO AppDaemon: thread-10 - current callback: idle since 2018-10-10 09:59:53, alive: False
2018-10-10 10:35:06.487217 INFO AppDaemon: --------------------------------------------------
2018-10-10 10:35:46.638781 WARNING AppDaemon: Queue size is 4690, suspect thread starvation
2018-10-10 10:35:46.639091 INFO AppDaemon: --------------------------------------------------
2018-10-10 10:35:46.639250 INFO AppDaemon: Threads
2018-10-10 10:35:46.639436 INFO AppDaemon: --------------------------------------------------
2018-10-10 10:35:46.639643 INFO AppDaemon: Currently busy threads: 0
2018-10-10 10:35:46.639826 INFO AppDaemon: Most used threads: 4 at 2018-10-10 09:28:05
2018-10-10 10:35:46.640085 INFO AppDaemon: Last activity: 2018-10-10 10:00:22
2018-10-10 10:35:46.640386 INFO AppDaemon: --------------------------------------------------
2018-10-10 10:35:46.640835 INFO AppDaemon: thread-1 - current callback: idle since 2018-10-10 10:00:22, alive: False
2018-10-10 10:35:46.641133 INFO AppDaemon: thread-2 - current callback: idle since 2018-10-10 10:00:05, alive: False
2018-10-10 10:35:46.641442 INFO AppDaemon: thread-3 - current callback: idle since 2018-10-10 09:59:49, alive: False
2018-10-10 10:35:46.641696 INFO AppDaemon: thread-4 - current callback: idle since 2018-10-10 10:00:05, alive: False
2018-10-10 10:35:46.641952 INFO AppDaemon: thread-5 - current callback: idle since 2018-10-10 10:00:05, alive: False
2018-10-10 10:35:46.642212 INFO AppDaemon: thread-6 - current callback: idle since 2018-10-10 10:00:00, alive: False
2018-10-10 10:35:46.642476 INFO AppDaemon: thread-7 - current callback: idle since 2018-10-10 10:00:22, alive: False
2018-10-10 10:35:46.642777 INFO AppDaemon: thread-8 - current callback: idle since 2018-10-10 09:59:49, alive: False
2018-10-10 10:35:46.643187 INFO AppDaemon: thread-9 - current callback: idle since 2018-10-10 10:00:05, alive: False
2018-10-10 10:35:46.643560 INFO AppDaemon: thread-10 - current callback: idle since 2018-10-10 09:59:53, alive: False