I would like to have 2 lamps go on in my “then statement”.
Is there a way for just putting multiple items after eachother and is there a way for using a group here?
Either way i would love to know both answers if possible.
Can not find this back in the documentation.
does it work by changing the Itemname to groupname without anything else?
ItemName.sendCommand(STATE)
i created a group in my items file and added this in to those 2 lamps, called “Timeroutdoor”
rule "Sunset Buitenverlichting aan"
when
Channel 'astro:sun:home:set#event' triggered START
then
Timeroutdoor.sendCommand(ON)
end
or this:
rule "Sunset Buitenverlichting aan"
when
Channel 'astro:sun:home:set#event' triggered START
then
Buitenvoordeur.sendCommand(ON)
Buitenzijgevel.sendCommand(ON)
end
Thank you for your swift reply
maybe i was a bit quick with my question then.
Wasnt sure if anything made sense what i was doing for multiple items and or grouping them in a rule.
I guessed this would not work.
Been testing for 2 days now, this astro makes me able to test twice a day and today was the first time my test lamp turned on.
But the idea was controlling 2 lights with this.
So i thought… les make a post before waiting till tomorrow morning to see if this works.
Great tip for name these group, i’ll change this right away.
Actually, as you mention testing, i suggest to make an item “testswitch”, a basicUI test.sitemap with only that switch, and for testing replace the astro-trigger with (or add using an “or” in the trigger) with the “when testswitch changed to ON” or so. No need waiting for sunset, can test as often as you need.