(I havn´t added the astro channel as an item, do I need to?)
Then went on to make my first rule, wanting to switch on a light at sunset and off at 22:30
I have no imports or anything to my rule (should I?)
Rule is as below:
in ESD i get errors on the channel line: "no viable alternative at input channel"
and at the send.Command lines: âThe method or field Bedroom_Window_Light us undefinedâ
rule "Bedroom Window Light On"
when
Channel 'astro:sun:local:set#event' triggered START
then
Bedroom_Window_Light.sendCommand(ON)
end
rule "Bedroom Window Light Off"
when
Time cron "0 30 22 1/1 * ? *"
then
Bedroom_Window_Light.sendCommand(OFF)
end
So, it aint working, and i do get error messages in the log telling me i messed up [WARN ] [el.core.internal.ModelRepositoryImpl] - Configuration model 'sovrum.rules' is either empty or cannot be parsed correctly!
Could you edit your post, put a blank line after âAdded first itemâ, select the item text, and click the </> (preformatted text)? This will make it much easier to read. Might as well do this for your rule and the error too . Iâm guessing you have a line feed after the {, which will not work TMK.
An item would not be needed for your current rule.
Imports would not be needed for your current rule.
This will clear up when the item is defined properly.