Hi altogether,
I have migrated to OH3 recently. As the FritzBox TR-064 binding has been discontinued in OH3, I had to switch to a combination of FritzBox AVM binding (gets the phone calls) and the new TR-064 binding (should look up the name in the phonebook).
I therefore have to use the action phonebookLookup. And I cannot get it running. This is my (simplified) rule:
rule "Eingehendes Telefongespräch"
when
Item telefonStatus changed to "RINGING" or
Item telefonStatus changed to "DIALING"
then
var tr064Actions = getActions("tr064","tr064:fritzbox:0d0a940e63")
var String anruferNummer = String::format("%1$s",telefonGespraech_eingehend.state)
var String angerufeneNummer = String::format("%1$s",telefonGespraech_ausgehend.state)
var String anrufer = tr064Actions.phonebookLookup(anruferNummer)
var String angerufener = tr064Actions.phonebookLookup(angerufeneNummer)
logInfo("Anruf", "letzter Anrufer: " + anrufer)
logInfo("Anruf", "letzter Angerufene: " + angerufener)
end
The error message in the log is:
[ERROR] [internal.handler.ScriptActionHandler] - Script execution of rule with UID 'praesenz-4' failed: 'phonebookLookup' is not a member of 'org.openhab.core.thing.binding.ThingActions'; line 43, column 23, length 43 in praesenz
Is there anyone who has an idea what is going on?
Thank you so much!