After the upgrade from last OH3 version to 4.1 Pushover stopperd working
if (Presence_Sim.state != ON) {
val actions = getActions("pushover", "pushover:pushover-account:sim")
actions.sendMessage("OFF!", "Notification", "bugle", null, null, null, null, 1, "DeviceA")
}
Log:
2024-01-04 15:16:29.529 [ERROR] [internal.handler.ScriptActionHandler] - Script execution of rule with UID '1244ebbe89' failed: if ( ___ Presence_Sim.state != ON) {
val actions = getActions("pushover", "pushover:pushover-account:sim")
actions.sendMessage("OFF!", "Notification", "bugle", null, null, null, null, 1, "DeviceA")
}
1. The method or field Presence_Sim is undefined; line 1, column 4, length 12
2. Invalid number of arguments. The method sendMessage(ThingActions, String, String, String, String, String, String, String, Integer, String, Duration) is not applicable for the arguments (ThingActions,String,String,String,null,null,null,null,int,String); line 3, column 117, length 11