Pushover stopped working after OH3 -> OH4 upgrade

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

Found the issue

here the code changes: [pushover] Add support for Expiring Messages (#15289) · openhab/openhab-addons@089b415 · GitHub

So I have to add one more null (end) but default was better

Yeah, sorry about that - see also openHAB 4.1 Release discussion - #20 by laursen. Since you are providing a sound, you are stuck with the method having the full signature, which unfortunately was changed in a non-backwards compatible way.

1 Like

Should be fixed by: