rule "Holiday Mode On"
when
Channel 'astro:sun:home:set#event' triggered START
then
if (VIR_HolidaySwitch.state==ON)
{
HolidayRemote1.sendCommand(ON)
FntPatioPlug.sendCommand(ON)
WalkGatePlug.sendCommand(ON)
GarageHolidaySwitch.sendCommand(ON)
}
end
The rule does not fire…
If I change the WHEN statement from ASTRO to CRON it works as it should.
I do not see any errors in the log files
What is weird to me, is that I have another rule with similar styling that DOES RUN.
rule "turn landscape lighting off"
when
Channel 'astro:sun:home:set#event' triggered START
then
FntLandscapeLights.sendCommand(ON)
BckLandscapeLights.sendCommand(ON)
end
Can you not run two rules that start off the same trigger?
rule "turn landscape lighting off"
when
Channel 'astro:sun:home:rise#event' triggered START
then
FntLandscapeLights.sendCommand(OFF)
BckLandscapeLights.sendCommand(OFF)
end
rule "turn landscape lighting on"
when
Channel 'astro:sun:home:set#event' triggered START
then
FntLandscapeLights.sendCommand(ON)
BckLandscapeLights.sendCommand(ON)
end
In the log I see the following:
2017-11-09 17:28:00.009 [vent.ChannelTriggeredEvent] - astro:sun:home:set#event triggered START
2017-11-09 17:28:00.084 [ome.event.ItemCommandEvent] - Item 'FntLandscapeLights' received command ON
2017-11-09 17:28:00.086 [vent.ItemStateChangedEvent] - FntLandscapeLights changed from OFF to ON
2017-11-09 17:28:00.087 [ome.event.ItemCommandEvent] - Item 'BckLandscapeLights' received command ON
I also have another rule:
sunset_holiday.rules
rule "Holiday Mode On"
when
Channel 'astro:sun:home:set#event' triggered START
then
if (VIR_HolidaySwitch.state==ON)
{
HolidayRemote1.sendCommand(ON)
FntPatioPlug.sendCommand(ON)
WalkGatePlug.sendCommand(ON)
GarageHolidaySwitch.sendCommand(ON)
}
end
rule "Holiday Mode Off"
when
Time cron "0 1 0 1/1 * ? *"
then
if (VIR_HolidaySwitch.state==ON)
{
HolidayRemote1.sendCommand(OFF)
FntPatioPlug.sendCommand(OFF)
WalkGatePlug.sendCommand(OFF)
GarageHolidaySwitch.sendCommand(OFF)
}
end
The virtual holiday switch is on
this rule does not fire and writes nothing to the log files…something is afoul here.