it amazes me how you are all getting all these complicated rules to run while im stuck creating the most basic when trigger_alert is on send LSELECT to GAlert
rule "Alert ON"
when
trigger_Alert =ON
then
sendCommand( GAlert, LSELECT)
logInfo("Rule", "ALERT ON ran (Alert.rules)")
end
i have been looking at the documentation but like i have said before its extremely overwhelming too keep reading code you dont understand and a big part is not everybody can learn from reading big blocks of text its great for some im a more visual practical learner
rule "Alert ON"
when
Item trigger_Alert changed from OFF to ON
then
sendCommand( GAlert, LSELECT)
logInfo("Rule", "ALERT ON ran (Alert.rules)")
end
your link did help though thanks for that its been accepted by karaf now but gave error when i tried too run
21:22:30.218 [ERROR] [.script.engine.ScriptExecutionThread] - Rule āAlert ONā: An error occurred during the script execution: The name āLSELECTā cannot be resolved to an item or type.
I might suggest that you are approaching it wrong. When opus and others suggest reading the docs, it isnāt so much that we expect you top set aside a week or two to read through hundreds of pages of docs. But when you run into an error we would like you to look at your Rule and compare it to what the Rules docs says it should be and verify that what you have matches what the docs say it should be.
That is what we mean by reading the docs. They are there to be used as a reference. No one reads them end to end and understands them all. We look up the parts we want to learn about and/or having problems with at any given time.
Now there will be many times when you get all the way to the bottom of the docs and you still havenāt fixed your problem. Then is a good time to look for examples and/or asking a question here.