rule "PushOverDrB"
when
Item DrBpersist changed from 1 to 0
then
if ((MrsU.state as DecimalType).intValue() == 0) {
if (GaesteWCFenstersensor.state == OPEN) {
pushover("Das Gäste-WC Fenster ist offen!")
}
}
else if ((MrsU.state as DecimalType).intValue() == 2) {
if (GaesteWCFenstersensor.state == OPEN) {
pushover("Das Gäste-WC Fenster ist offen!")
}
}
end
As I wrote … the command pushover, which you are using in your rule, is not resolved in the designer.
So it seems it’s not installed correctly!?
I already have a pushover account.
Assuming you are using OH2 given the topic tag…
you should have a conf/service/pushover.cfg file. This is where you add your token and user key info. Then in your rules you can call pushover just as in the above example. For good measure restart OH2, although it shouldn’t matter.
I wouldn’t worry about the designer not recognizing it. I don’t think it’s really being put through the paces for OH2. Just try it. I’ve had no issues myself.
I’ve now created some variables which I’m using for pushover but now I have another Problem.
My command Looks like this:
pushover(VAR_TOKEN, VAR_USER, “message text”, VAR_DEVICE, VAR_TITLE)
Designer means: The method pushover(String, String, String, String, String) is undefined.
openhab.log says: Error during the execution of rule ‘myrule on’: Could not invoke method: org.openhab.action.pushover.internal.Pushover.pushover(java.lang.String,java.lang.String,java.lang.String,java.lang.String,int) on instance: null