Skip to content

Instantly share code, notes, and snippets.

View KoljaWindeler's full-sized avatar

Kolja Windeler KoljaWindeler

  • Sennheiser electronic GmbH & Co. KG
  • Hannover, Germany
View GitHub Profile
import datetime, time
def wait_available(self, entity, is_domain):
count = 0
dev = []
if(isinstance(entity, str)):
dev.append(entity)
else:
dev = entity
16.06.2020 04:39:04 WARNING xiaomi_vac: Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/appdaemon/threading.py", line 777, in worker
funcref(entity, attr, old_state, new_state,
File "/conf/apps/xiaomi_vac.py", line 40, in cleaning
self.log("new vacuum ("+str(entity)+") status: "+new+". old was "+old+". tct: "+str(self.g_tct(self.vacs.index(entity))))
TypeError: can only concatenate str (not "NoneType") to str
16.06.2020 04:37:15 WARNING HASS: Disconnected from Home Assistant, retrying in 5 seconds
16.06.2020 04:37:20 WARNING HASS: Disconnected from Home Assistant, retrying in 5 seconds
16.06.2020 04:37:25 WARNING HASS: Disconnected from Home Assistant, retrying in 5 seconds
16.06.2020 04:37:30 WARNING HASS: Disconnected from Home Assistant, retrying in 5 seconds
16.06.2020 04:37:35 WARNING HASS: Disconnected from Home Assistant, retrying in 5 seconds
16.06.2020 04:37:40 INFO HASS: Connected to Home Assistant 0.111.3
16.06.2020 04:37:40 INFO HASS: Evaluating startup conditions
16.06.2020 04:37:40 INFO AppDaemon: Processing restart for HASS
16.06.2020 04:37:40 INFO AppDaemon: Terminating owntracks
16.06.2020 04:37:40 INFO AppDaemon: Terminating cube