I’m using the rule trick from @Andy1402 how to make the Fritzbox TR064 binding work with caller information. It really works great here as well as in displaying the numbers within my sitemap with the item information lastIncomingcall. I’m reaching out to you as I struggle somehow how to create a rule that would check for a specific incoming number and then triggers an action e.g. a telegram.
I thought once information is stored in an item let’s use the item lastIncomingcall but cleary I seem to miss something here…the rule is just doing nothing…
rule "Check for caller number" when Item fboxRinging changed from OFF to ON then if Item fboxlastIncomingCall received update if (fboxlastIncomingCall.state == 01723456) sendTelegram("group", "Mobile called!") end
The new rule should extend the below working rule here:
Rule: rule "Jemand ruft an" when Item fboxRinging changed from OFF to ON then val incCall = fboxIncomingCallResolved.state as StringListType val callerNumber = incCall.getValue(1) var strTemp = callerNumber.toString as String postUpdate(fboxlastIncomingCall, strTemp) //Samsung-TV Ton aus sendCommand(TV_Mute, ON)
What am I missing to check for a specific phone number?
Would appreciate your thoughts.