Hello @aimc
I have just been updating various HA bits after ignoring things for a while. In my AD error log I am now getting
2018-06-06 07:23:41.979177 WARNING AppDaemon: ------------------------------------------------------------
2018-06-06 07:23:41.979750 WARNING AppDaemon: Unexpected error running initialize() for Occupancy Simulator
2018-06-06 07:23:41.980130 WARNING AppDaemon: ------------------------------------------------------------
2018-06-06 07:23:41.983865 WARNING AppDaemon: Traceback (most recent call last):
File "/home/pi/.local/lib/python3.5/site-packages/appdaemon/appdaemon.py", line 1513, in init_object
init()
File "/home/pi/appdaemon/apps/03_occusim/occusim.py", line 33, in initialize
self.create_events({})
File "/home/pi/appdaemon/apps/03_occusim/occusim.py", line 66, in create_events
start = self.parse_time(start_p)
File "/home/pi/.local/lib/python3.5/site-packages/appdaemon/appapi.py", line 277, in parse_time
return self.AD.parse_time(time_str, name)
File "/home/pi/.local/lib/python3.5/site-packages/appdaemon/appdaemon.py", line 1052, in parse_time
parsed_time = (self.sunset() - datetime.timedelta(
File "/home/pi/.local/lib/python3.5/site-packages/appdaemon/appdaemon.py", line 1008, in sunset
return datetime.datetime.fromtimestamp(self.calc_sun("next_setting"))
File "/home/pi/.local/lib/python3.5/site-packages/appdaemon/appdaemon.py", line 840, in calc_sun
return self.sun[type_].timestamp()
KeyError: 'next_setting'
Looking at github, it looks like Occusim hasn’t been updated for a few months, so just wanted to check to see if I am missing something obvious?