I’m having difficulty understanding the use of the Astro binding with an Insteon items. For example, I’d like to create rules to turn this Insteon item (Insteon address anonymized) on 5 minutes before sunset and 5 minutes after sunrise. How do I do this?
rule "example trigger rule"
when
Channel 'astro:sun:home:rise#event' triggered START
then
...
end
For your item something like this should work:
rule "example trigger rule item frontPorch ON"
when
Channel 'astro:sun:home:rise#event' triggered START
then
frontPorch.sendCommand(ON)
end
rule "example trigger rule item frontPorch OFF"
when
Channel 'astro:sun:home:set#event' triggered START
then
frontPorch.sendCommand(OFF)
end
I added the Astro addon and deselected all the channels I don’t want to see. Where does the code shown above to turn on and off lights with sunrise and sunset, go? I don’t see anywhere that takes that kind of input.
Thanks for the pointer. After I fixed some errors on my part, it worked
. I do have one follow on question though. I found the rule example. However, I could not find the bit where for example, “frontPorch.sendCommand(OFF)” or frontPorch.sendCommand(ON) is documented. Where do I find that?
Perfect thank you. The link you provided along with this link: http://docs.openhab.org/concepts/items.html (which is part of the article you pointed me to), provided exactly what I was looking for.