Hi,
Same issue here. Call Monitor activated on FB, ID in configuration.yaml matches ID of phone Book in FB. (tested with export of phone book)
Anyone knows how to fix this?
I’ve solved this issue a by adding username and password of a fritz’s user in the sensor configuration, note that the user needs to have the “voice message, fax message, Fritz!App Fon and call list” permission.
I was able to get it working in my setup now. I had disabled a setting in the Fritz!Box which must be enabled for the phonebook lookup feature to work.
The setting is found in “Home Network” -> “Network Settings” and it’s called “Allow access for applications”
I have the same issue. Gering the phone nr correctly to ha with the call monitor but not a name from the phone book. I assuming that this is what the phone book option need to do; adding a name instead of a phone nr. I already downloaded the xml file and have seen that the phone book is nr 0. How can I fix this?
In case any of you are still having issues with this, and the ID is not 0 or 1 the solution is pretty simple if you’re running Linux or MacOS, because they tend to come with python (and pip) preinstalled.
If you’re running Windows, you basically just need to install python and pip. Good luck. If that does not work, just get a real OS and be 100% more productive.
I for example have wanted to use a synchronized Google phonebook, that I’ve already set-up on the Fritz!Box.
The backup gave me this:
voipcfg {
onlinetel {
pbid = 240;
}
}
The webUI source code on the “Change Phonebook” site gave me the same ID in the radio selector, but I somehow was not able to use this ID in HA/fritzbox_callmonitor/fritzconnection. It only led to: 2018-12-06 13:37:00 WARNING (SyncWorker_0) [homeassistant.components.sensor.fritzbox_callmonitor] Phonebook with ID 240 not found on Fritz!Box
So first of all you need to enable TR-064, as suggested by @hiscorebob. This will require a reboot of your Fritz!Box.
Then I’d suggest creating a new user account just for HA. I called it hass.
I then downloaded the fritzconnection python module to my local machine to find out what the ID is (pip install fritzconnection), because HA runs on another machine. You might as well run the next command in the docker/virtualenv/HA-environment directly.
Run the command fritzphonebook -i 10.22.0.2 -u hass -p mysecurepassword replacing the parameters with your appropriate values.
This is what I got:
17:48:45,2 marc@MAKpc: ~ $> pip install fritzconnection
Collecting fritzconnection
Downloading https://files.pythonhosted.org/packages/aa/b9/94bf1387093dd7c90d7a51cb131340249ecd93b3b68d0c75eaaec6628b80/fritzconnection-0.6.5.tar.gz
Building wheels for collected packages: fritzconnection
Running setup.py bdist_wheel for fritzconnection ... done
Stored in directory: /home/marc/.cache/pip/wheels/8b/65/26/51c8b54ff31054607f46982e263e232c5ffd168d03ce8bc34c
Successfully built fritzconnection
Installing collected packages: fritzconnection
Successfully installed fritzconnection-0.6.5
17:48:53,3 marc@MAKpc: ~ $> fritzphonebook -i 10.22.0.2 -u hass -p mysecurepassword
FritzPhonebook:
version: 0.6.1
model: FRITZ!Box Fon WLAN 7390
ip: 10.22.0.2
0
List of phone books:
ID name url
0 Telefonbuch http://10.22.0.2:49000/phonebook.lua?sid=1337733113377331&pbid=0
1 Google http://10.22.0.2:49000/phonebook.lua?sid=1337733113377331&pbid=240
17:49:03,4 marc@MAKpc: ~ $>
The ID I was looking for was 1. Could have tried that before, but I did not know what the right ID was before I did.
Now I know exactly how the Fritz!Box call monitor works in HA, which makes fixing bugs introduced by Fritz!Box updates easier in the future. Who knows, maybe this ID will change to some arbitrary or non-incremental value in the future. At least then I already know exactly how to find out which ID I need to fill in.
Hope this was helpful to those of you, that still have this issue, or others that might encounter it in the future! If you have any more questions, feel free to ask.
Hi Thank you for the updated instructions.
I ran the fritzphonebook utility:
The output is like yours:
FritzPhonebook:
version: 0.6.1
model: FRITZ!Box 7490
ip: 192.168.1.5
0
List of phone books:
ID name url
0 telephone book http://192.168.1.5:49000/phonebook.lua?sid=98954216e65ae1d2&pbid=0
1 Home http://192.168.1.5:49000/phonebook.lua?sid=98954216e65ae1d2&pbid=1
But still I get the error:
2018-12-18 22:42:40 WARNING (Thread-11) [homeassistant.components.sensor.fritzbox_callmonitor] Phonebook with ID 0 not found on Fritz!Box