appdaemon
appdaemon copied to clipboard
sunrise & sunset not working
See also: https://github.com/joBr99/nspanel-lovelace-ui/issues/212#issuecomment-1136046744
I seem to be unable to get the sunset and sunrise vars to work.
This is running on home assistant under esxi using the official vmware image and is using the latest versions of everything.
Any suggestions on the cause ?
appdaemon.yaml:
appdaemon:
elevation: 41m
latitude: 1.3XXXX
longitude: 103.XXXXX
unit_system: metric
time_zone: Asia/Singapore
apps.yaml:
suntest:
module: suntest
class: SunTest
suntest.py:
import hassapi as hass
class SunTest(hass.Hass):
def initialize(self):
self.log('Test sunset/sunrise:')
self.log(self.parse_time('sunset'))
self.log(self.parse_time('sunrise'))
This results in:
2022-05-25 07:16:59.603231 INFO suntest: Test sunset/sunrise:
2022-05-25 07:17:09.608698 WARNING suntest: Coroutine (<coroutine object ADAPI.parse_time at 0x7ff165252cc0>) took too long (10 seconds), cancelling the task...
2022-05-25 07:17:09.619427 INFO suntest: None
2022-05-25 07:17:19.635244 WARNING suntest: Coroutine (<coroutine object ADAPI.parse_time at 0x7ff165252dc0>) took too long (10 seconds), cancelling the task...
2022-05-25 07:17:19.640658 INFO suntest: None