OS: Ubuntu 16:04
OH version: 2.3.0
Having read the prior troubles people were having and their fixes, I’m perplexed that I cannot use astro to fire rules successfully.
I am trying to turn lights on at sunset or civilDusk (and off again in the morning).
I set up a geolocation in PaperUI.
The various event times are being calculated;
2018-07-25 00:00:30.013 [INFO ] [thome.binding.astro.internal.job.Job] - Scheduled Astro event-jobs for thing astro:moon:local
2018-07-25 00:00:30.016 [INFO ] [thome.binding.astro.internal.job.Job] - Scheduled Astro event-jobs for thing astro:sun:local
I am receiving properly scheduled events, such as the following;
2018-07-26 20:27:00.000 [vent.ChannelTriggeredEvent] - astro:sun:local:daylight#event triggered END
2018-07-26 20:27:00.001 [vent.ChannelTriggeredEvent] - astro:sun:local:set#event triggered START
2018-07-26 20:27:45.989 [vent.ItemStateChangedEvent] - ntp_ntp_local_dateTime changed from ...
2018-07-26 20:30:00.000 [vent.ChannelTriggeredEvent] - astro:sun:local:civilDusk#event triggered START
2018-07-26 20:30:00.001 [vent.ChannelTriggeredEvent] - astro:sun:local:set#event triggered END
I now have two versions of the rule set up, in case one is incorrect;
rule "Sheep Light on at Sunset"
when
Channel 'astro:sun:home:civilDusk#event' triggered START or
Channel 'astro:sun:home:set#event' triggered START
then
logInfo("openhab", "Civil Dusk or sunset triggers Sheep Light to come on")
BackPorchLight.sendCommand(ON)
end
and
rule "Sheep Outside Light on at Sunset"
when
Channel "astro:sun:home:civilDusk#event" triggered START or
Channel "astro:sun:home:set#event" triggered START
then
BackPorchLight.sendCommand(ON)
logInfo("openhab", "Civil Dusk triggers Sheep Outside Light to come on")
end
However, nothing shows up in the log when the rules are supposed to be firing, nor does the light come on;
2018-07-26 20:26:53.349 [DEBUG] [ssage.ApplicationCommandMessageClass] - NODE 6: Transaction not completed: node address inconsistent. lastSent=6, incoming=255
2018-07-26 20:28:52.239 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 6: Polling...
and
2018-07-26 20:29:33.799 [DEBUG] [ssage.ApplicationCommandMessageClass] - NODE 2: Transaction not completed: node address inconsistent. lastSent=2, incoming=255
2018-07-26 20:31:53.285 [DEBUG] [WaveSerialHandler$ZWaveReceiveThread] - Receive Message = 01 09 00 04 00 04 03 80 03 64 12
I note that there is an odd problem message in the code editor;
“The type SheepOutsideLightOnAtSunsetRules is already defined in SheepOutsideLightOnAtSunset.rules.”