This looks like exactly what I want, but I’m having some issues getting it to work.
No new commits in about 3 years - is anyone still actively using this?
Should I look elsewhere, or should I try to debug?
2022-12-11 16:42:58.932966 WARNING Occupancy Simulator: Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/appdaemon/app_management.py", line 165, in initialize_app
await utils.run_in_executor(self, init)
File "/usr/lib/python3.10/site-packages/appdaemon/utils.py", line 337, in run_in_executor
response = future.result()
File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/appdaemon/apps/occusim.py", line 32, in initialize
self.create_events({})
File "/config/appdaemon/apps/occusim.py", line 68, in create_events
end = self.parse_time(end_p)
File "/usr/lib/python3.10/site-packages/appdaemon/utils.py", line 226, in inner_sync_wrapper
f = run_coroutine_threadsafe(self, coro(self, *args, **kwargs))
File "/usr/lib/python3.10/site-packages/appdaemon/utils.py", line 346, in run_coroutine_threadsafe
result = future.result(self.AD.internal_function_timeout)
File "/usr/lib/python3.10/concurrent/futures/_base.py", line 458, in result
return self.__get_result()
File "/usr/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result
raise self._exception
File "/usr/lib/python3.10/site-packages/appdaemon/adapi.py", line 2068, in parse_time
return await self.AD.sched.parse_time(time_str, name, aware)
File "/usr/lib/python3.10/site-packages/appdaemon/scheduler.py", line 727, in parse_time
return self.make_naive((await self._parse_time(time_str, name))["datetime"]).time()
File "/usr/lib/python3.10/site-packages/appdaemon/scheduler.py", line 739, in _parse_time
parts = re.search(r"^(\d+)-(\d+)-(\d+)\s+(\d+):(\d+):(\d+)$", time_str)
File "/usr/lib/python3.10/re.py", line 200, in search
return _compile(pattern, flags).search(string)
TypeError: expected string or bytes-like object
2022-12-11 16:42:58.935036 WARNING Occupancy Simulator: ------------------------------------------------------------
It happens when I try to add a line with just an absolute time in it:
step_night_end: 23:59:59