Hello - have a super noobie question - is this allowed in rules? I’m pretty sure it isn’t - which means that I’ll have to check the evening switch in the ‘then’ clause?
when
(Item XBMC_Status changed to Pause or
Item XBMC_Status changed to Stop) and
Item Evening = ON
then
xxxxx
… otherwise It’d have to be
when
Item XBMC_Status changed to Pause or
Item XBMC_Status changed to Stop
then
if (evening.State == ON) {
xxxx
}
Rules are event driven, not state driven. Since two events will esentially never happen at the same time it makes no sense to use AND in a rule trigger. It is therefore not supported.
You can triggere off of one event and. Put an if in your rule to check the state.