Hallo,
ich versuche mit Hilfe des Phonebooks den Namen zu ermitteln, so wie es das Binding vorsieht. Lt. Log klappt das auch, aber im Item/Variable kommt es leider nicht an. Kann jemand helfen? Danke
Items:
Rule:
Logausgabe:
ich versuche mit Hilfe des Phonebooks den Namen zu ermitteln, so wie es das Binding vorsieht. Lt. Log klappt das auch, aber im Item/Variable kommt es leider nicht an. Kann jemand helfen? Danke
Items:
Code:
Call fboxIncomingCall "Incoming call: [%1$s to %2$s]" {fritzboxtr064="callmonitor_ringing" } Call fboxIncomingCallResolved "Incoming call: [%1$s to %2$s]" {fritzboxtr064="callmonitor_ringing:resolveName" } Switch fboxRinging "Phone ringing [%s]" {fritzboxtr064="callmonitor_ringing" }
Code:
rule "Telefonanruf eingehend" when Item fboxRinging changed to ON then logInfo("rules", "Telefonanruf eingehend") val incCall = fboxIncomingCall.state as StringListType val callerNumber = incCall.getValue(1) val incCallResolved = fboxIncomingCallResolved.state as StringListType val callerName = incCallResolved.getValue(1) logInfo("rules", "Nummer: {}", callerNumber) logInfo("rules", "Name: {}", callerName) logInfo("rules", "Resolved: {}", incCallResolved) end
Code:
2018-08-13 11:55:08.878 [INFO ] [tzboxtr064.internal.PhonebookManager] - Trying to resolve number 0175xxxx170 to name comparing 7 characters 2018-08-13 11:55:08.887 [INFO ] [tzboxtr064.internal.PhonebookManager] - found name match Christian yyyyyyyy in phonebook by comparing 071xxxx 571 94+ with 071xxxx ... 2018-08-13 11:55:08.913 [vent.ItemStateChangedEvent] - fboxIncomingCall changed from to 55xxxx,0175xxxx170 2018-08-13 11:55:08.921 [vent.ItemStateChangedEvent] - fboxIncomingCallResolved changed from to 55xxxx,Name not found for 0175xxxx170 2018-08-13 11:55:08.932 [vent.ItemStateChangedEvent] - fboxRinging changed from OFF to ON 2018-08-13 11:55:09.163 [INFO ] [eclipse.smarthome.model.script.rules] - Telefonanruf eingehend 2018-08-13 11:55:09.173 [INFO ] [eclipse.smarthome.model.script.rules] - Nummer: 0175xxxx170 2018-08-13 11:55:09.176 [INFO ] [eclipse.smarthome.model.script.rules] - Name: Name not found for 0175xxxx170 2018-08-13 11:55:09.180 [INFO ] [eclipse.smarthome.model.script.rules] - Resolved: 55xxxx,Name not found for 0175xxxx170
Kommentar