Currently getting these warnings in the logs:
2018-09-07 11:25:27.809808 WARNING AppDaemon: Queue size is 140, suspect thread starvation
2018-09-07 11:25:27.810155 INFO AppDaemon: --------------------------------------------------
2018-09-07 11:25:27.810332 INFO AppDaemon: Threads
2018-09-07 11:25:27.810529 INFO AppDaemon: --------------------------------------------------
2018-09-07 11:25:27.810739 INFO AppDaemon: Currently busy threads: 0
2018-09-07 11:25:27.810966 INFO AppDaemon: Most used threads: 1 at 2018-09-07 11:23:13
2018-09-07 11:25:27.811157 INFO AppDaemon: Last activity: 2018-09-07 11:23:13
2018-09-07 11:25:27.811343 INFO AppDaemon: --------------------------------------------------
2018-09-07 11:25:27.811822 INFO AppDaemon: thread-1 - current callback: idle since 2018-09-07 11:23:13, alive: False
2018-09-07 11:25:27.812069 INFO AppDaemon: thread-2 - current callback: idle since 1970-01-01 08:00:00, alive: False
2018-09-07 11:25:27.812278 INFO AppDaemon: thread-3 - current callback: idle since 1970-01-01 08:00:00, alive: False
2018-09-07 11:25:27.812488 INFO AppDaemon: thread-4 - current callback: idle since 1970-01-01 08:00:00, alive: False
2018-09-07 11:25:27.812679 INFO AppDaemon: thread-5 - current callback: idle since 1970-01-01 08:00:00, alive: False
2018-09-07 11:25:27.812905 INFO AppDaemon: thread-6 - current callback: idle since 1970-01-01 08:00:00, alive: False
2018-09-07 11:25:27.813108 INFO AppDaemon: thread-7 - current callback: idle since 1970-01-01 08:00:00, alive: False
2018-09-07 11:25:27.813306 INFO AppDaemon: thread-8 - current callback: idle since 1970-01-01 08:00:00, alive: False
2018-09-07 11:25:27.813503 INFO AppDaemon: thread-9 - current callback: idle since 1970-01-01 08:00:00, alive: False
2018-09-07 11:25:27.813725 INFO AppDaemon: thread-10 - current callback: idle since 1970-01-01 08:00:00, alive: False
AND have narrowed it down to this rogue app - any clues?
from base import Base
import datetime
import time
import globals
## Notify of potential intruders
class IntruderAlert(Base):
def initialize(self) -> None:
super().initialize()
if "sensor" in self.args:
for sensor in self.split_device_list(self.args["sensor"]):
self.listen_state(self.intruder, sensor)
self._tts_device = "media_player.living, media_player.bedroom"
def intruder(self, entity, attribute, old, new, kwargs):
if new == "on":
self.call_service("notify/ios_grants_iphone", title = "Intruder Alert", message = "Intruder Alert in the {}".format(self.args["room"]))
self.log("INTRUDER ALERT IN THE {}".format(self.args["room"]))
self.tts_manager.set_volume_level('0.4', media_player=self._tts_device)
self.tts_manager.speak("You are not authorised to be here - police have been notified", media_player = self._tts_device)```