Hello, I am monitoring my gas fridge. So I have following telegram rule:
// == Send Fridge Gas alarm =========================
rule "Send telegram Fridge"
when
Item vFridge changed
then
var adc = vFridge.state
if( adc < 350 )
sendTelegram( "bot1", "Fridge OFF" )
end
My 2 questions are:
- Can I trigger like
Item vFridge changed to <350 (less tan 350)
- In my code above, adc can change staying below 350. Then each time it changes to any value below 350 I will get a telegram message?
thanks