Platform information:
- OpenHab 2.5.10-1 installed on pi 4
- OS: Raspbian 10
- Java Runtime Environment: OpenJDK Runtime Environment (build 11.0.9+11-post-Raspbian-
1deb10u1)
Issue of the topic:
My initial target is to add some time of day functionality (day - night) in my presence rules.
To this end I have created a proxy item called NightState with following configuration
Switch NightState "Night State"
and written following 2 rules to change its state according to astro channel
rule "Night State ON at sunset"
when
Channel 'astro:sun:home:set#event' triggered START
then
NightState.sendCommand(ON)
end
rule "Night State OFF at sunrise"
when
Channel 'astro:sun:home:rise#event' triggered START
then
NightState.sendCommand(OFF)
end
Now the issue is that this rule seems not to fire as expected when sunset & sunrise events trigger.
I have checked both log files ( openhab.log - event.log ) but nothing logs as error, plus the astro channels for sunrise and sunset seem to fire properly when checking the event.log.
2020-12-09 07:30:00.029 [vent.ChannelTriggeredEvent] - astro:sun:local:rise#event triggered START
I use the VS-Code extension and the syntax checking of the rule seems also to be right.
What other options do I have to perform debugging, any ideas on why the rule does not fire and change the state of the associated item?