EDIT: i miss double quotes, now it works
Hi!
I am struggling with the config for occusim.
Following the instruction on https://github.com/acockburn/occusim
My config:
Occupancy Simulator:
module: occusim
class: OccuSim
log: 1
notify: 1
enable: input_boolean.licht_keiner_da,off
test: 1
dump_times: 1
#reset_time: 02:00:00
step_evening_name: Evening
step_evening_start: 09:00:00
step_night_name: Night
step_night_start: 11:00:00
random_office_name: Evening Office
random_office_start: Evening
random_office_end: Night
random_office_minduration: 00:03:00
random_office_maxduration: 00:30:00
random_office_number: '3'
random_office_on_1: scene.office_on
random_office_off_1: scene.office_off
Startup failure:
2019-08-28 10:18:41.925890 INFO AppDaemon: Initializing app Occupancy Simulator using class OccuSim from module occusim
2019-08-28 10:18:41.933540 WARNING AppDaemon: ------------------------------------------------------------
2019-08-28 10:18:41.934189 WARNING AppDaemon: Unexpected error running initialize() for Occupancy Simulator
2019-08-28 10:18:41.934900 WARNING AppDaemon: ------------------------------------------------------------
2019-08-28 10:18:41.938489 WARNING AppDaemon: Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/appdaemon/appdaemon.py", line 1581, in init_object
init()
File "/config/appdaemon/apps/occusim.py", line 32, in initialize
self.create_events({})
File "/config/appdaemon/apps/occusim.py", line 65, in create_events
start = self.parse_time(start_p)
File "/usr/lib/python3.7/site-packages/appdaemon/appapi.py", line 291, in parse_time
return self.AD.parse_time(time_str, name)
File "/usr/lib/python3.7/site-packages/appdaemon/appdaemon.py", line 1072, in parse_time
parts = re.search('^(\d+):(\d+):(\d+)', time_str)
File "/usr/lib/python3.7/re.py", line 183, in search
return _compile(pattern, flags).search(string)
TypeError: expected string or bytes-like object
2019-08-28 10:18:41.939802 WARNING AppDaemon: ------------------------------------------------------------
Didn’t see where the problem is, my config is the same as the exampl.
Can anyone open my eyes for the mistake?
Regards and Thanks!
Holger