Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var Timer Meldung = null
- rule "Meldung Badfenster klein offen"
- when
- Item Badefensterklein_TurFensterstatus changed
- then
- //cancel timer if running
- Meldung?.cancel
- Meldung = null
- if(Badefensterklein_TurFensterstatus.state == OPEN)
- Meldung = createTimer(ZonedDateTime.now.plusMinutes(15), [|
- val telegramAction = getActions("telegram","telegram:telegramBot:8750e150c1")
- if((Localweatherandforecast_Aussentemperatur.state as Number).floatValue <25){
- telegramAction.sendTelegram("Das Badfenster klein steht schon lรคnger offen und es wird kalt!")
- }
- ])
- end
Add Comment
Please, Sign In to add comment