ich hoffe, hier kann mir jemand weiterhelfen.
Ich würde gerne eine zentrale Pushover-Rule habe, die aus anderen Rules mittels
Code: Alles auswählen
PushoverMessage.postUpdate([Value])
Code: Alles auswählen
rule "Pushover Master"
when
Item PushoverMessage received update
then
logInfo("PUSHOVERMASTER","Rule getriggert")
if (PushoverMessage.state == 1) {
logInfo("PUSHOVERMASTER","Washer is FINISHED as it was ACTIVE before - POMASTER")
val actions = getActions("pushover", "pushover:pushover-account:soundBike")
actions.sendHtmlMessage("Washer is FINISHED as it was ACTIVE before - POMASTER", "openHAB3")
}
if (PushoverMessage.state == 2) {
logInfo("PUSHOVERMASTER","Dishwasher is FINISHED as it was ACTIVE before - POMASTER")
val actions = getActions("pushover", "pushover:pushover-account:soundBike")
actions.sendHtmlMessage("Dishwasher is FINISHED as it was ACTIVE before - POMASTER", "openHAB3")
}
else {
return
}
end
Code: Alles auswählen
[INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'PushoverMessage' changed from 2 to 1
[INFO ] [hab.core.model.script.PUSHOVERMASTER] - Rule getriggert
[INFO ] [hab.core.model.script.PUSHOVERMASTER] - Washer is FINISHED as it was ACTIVE before - POMASTER
[ERROR] [internal.handler.ScriptActionHandler] - Script execution of rule with UID 'pushovermaster-1' failed: null in pushovermaster