I am having trouble getting Occusim to work anymore. Here is my appdaemon.yaml file
AppDaemon:
app_dir: home/mgranger/.homeassistant/conf/apps
errorfile: home/mgranger/.homeassistant/conf/log/appdaemon_err.log
logfile: home/mgranger/.homeassistant/conf/log/appdaemon_log.log
threads: '10'
#HADashboard: {}
HASS:
ha_key: redacted
ha_url: redacted
Here is my apps.yaml file
Occupancy Simulator:
module: occusim
class: OccuSim
log: '1'
notify: '1'
enable: input_boolean.home,off
dump_times: '1'
reset_time: 02:00:00
step_morning_name: Morning
step_morning_start: 06:45:00
step_morning_days: mon,tue,wed,thu,fri
step_morning_end: 06:55:00
step_morning_on_1: switch.kitchen_switch
step_morning_start_offset: 00:01:05
step_morning_end_offset: 00:05:00
step_morning_on_2: switch.dining_table_switch
step_morning_off_name: Morning Off
step_morning_off_start: 07:00:00
step_morning_off_days: mon,tue,wed,thu,fri
step_morning_off_end: 07:10:00
step_morning_off_off_1: switch.kitchen_switch
step_morning_off_start_offset: 00:00:01
step_morning_off_end_offset: 00:00:05
step_morning_off_off_2: switch.dining_table_switch
step_dinner_start_name: Dinner Start
step_dinner_start_start: 17:45:00
#step_dinner_start_end: '21:45:00'
#step_evening_off_off_1: switch_living_room_outlet_switch
step_dinner_end_name: Dinner End
step_dinner_end_start: 20:05:00
step_evening_name: Evening
step_evening_start: sunset - 00:10:00
#step_evening_end: sunset - 00:20:00
#step_evening_on_1: switch.living_room_outlet_switch
step_room_off_name: Room Off
step_room_off_start: 22:15:00
#step_room_off_end: '23:15:00'
step_living_room_name: Living Room
step_living_room_start: sunset - 00:10:00
step_living_room_end: sunset + 00:10:00
step_living_room__on_1: switch.living_room_outlet_switch
step_living_room_off_name: Living Room Off
step_living_room_off_start: 22:45:00
step_living_room_off_end: 23:15:00
step_living_room_off_off_1: switch.living_room_outlet_switch
random_dinner_name: Dinner
random_dinner_start: Dinner Start
random_dinner_end: Dinner End
random_dinner_minduration: 00:50:00
random_dinner_maxduration: 01:35:00
random_dinner_number: '1'
random_dinner_on_1: switch.dining_table_switch
random_dinner_on_2: switch.kitchen_switch
random_dinner_off_1: switch.dining_table_switch
random_dinner_off_2: switch.kitchen_switch
random_kitchen_name: Kitchen
random_kitchen_start: Evening
random_front_room_end: Room Off
random_kitchen_minduration: 00:05:00
random_kitchen_maxduration: 00:23:00
random_kitchen_number: '3'
random_kitchen_on_1: switch.kitchen_switch
random_kitchen_off_1: switch.kitchen_switch
random_front_room_name: FrontRoom
random_front_room_start: Evening
random_kitchen_end: Room Off
random_front_room_minduration: 00:10:00
random_front_room_maxduration: 00:33:00
random_front_room_number: '3'
random_front_room_on_1: switch.front_room_switch
random_front_room_off_1: switch.front_room_switch
step_tv_name: TV
step_tv_start: 19:45:00
step_tv_end: 20:30:00
step_tv_on_1: input_boolean.plex_away
step_tv_off_name: TV Off
step_tv_off_start: 22:15:00
step_tv_off_end: 23:45:00
step_tv_off_off_1: input_boolean.plex_away
Switch Reset:
module: switch_reset
class: SwitchReset
file: /home/mgranger/.homeassistant/switches.db
delay: '5'
log: '1'
Here are the errors in the log file:
2018-02-13 13:34:37.830928 WARNING ------------------------------------------------------------
2018-02-13 13:34:37.830997 WARNING Unexpected error during loading of Occupancy Simulator:
2018-02-13 13:34:37.831037 WARNING ------------------------------------------------------------
2018-02-13 13:34:37.832288 WARNING Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/appdaemon/appdaemon.py", line 911, in read_app
init_object(name, class_name, module_name, conf.app_config[name])
File "/usr/local/lib/python3.5/dist-packages/appdaemon/appdaemon.py", line 582, in init_object
conf.objects[name]["object"].initialize()
File "home/mgranger/.homeassistant/conf/apps/occusim.py", line 31, in initialize
self.create_events({})
File "home/mgranger/.homeassistant/conf/apps/occusim.py", line 64, in create_events
start = self.parse_time(start_p)
File "/usr/local/lib/python3.5/dist-packages/appdaemon/appapi.py", line 598, in parse_time
return utils.parse_time(time_str)
File "/usr/local/lib/python3.5/dist-packages/appdaemon/utils.py", line 193, in parse_time
parts = re.search('^(\d+):(\d+):(\d+)', time_str)
File "/usr/lib/python3.5/re.py", line 173, in search
return _compile(pattern, flags).search(string)
TypeError: expected string or bytes-like object
2018-02-13 13:34:37.832486 WARNING ------------------------------------------------------------