core: fritzbox callmonitor phonebook id error
The problem
after upgrade to 0.118 i see this error:
Logger: homeassistant.components.fritzbox_callmonitor.sensor
Source: components/fritzbox_callmonitor/sensor.py:88
Integration: fritzbox_callmonitor (documentation, issues)
First occurred: 1:45:30 (1 occurrences)
Last logged: 1:45:30
Phonebook with ID 0 not found on Fritz!Box
i tried to use phonebook 0 and 1 ID (i have 2 phonebooks)… if i set 1, it show me the same error with 1 ID. Nothing before upgrade (i using 0 before)
Environment
- Home Assistant Core release with the issue: 0.118
- Last working Home Assistant Core release (if known): 0.117
- Operating environment (OS/Container/Supervised/Core): HassOS
- Integration causing this issue: Fritzbox (call monitor)
- Link to integration documentation on our website: https://www.home-assistant.io/integrations/fritzbox_callmonitor/
Problem-relevant configuration.yaml
sensor:
- platform: fritzbox_callmonitor
name: 'Telefonia'
username: !secret fritzbox_username
password: !secret fritzbox_password
phonebook: 1
prefixes:
- '+39'
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 5
- Comments: 60 (7 by maintainers)
No it doesn’t. HA completely up to date, still
Unfortunately same error on 2021.1.0, released today with the new callmonitor.
after last update i see this:
with the firs new 2021.1 works (no name but works)… now this and the entity is unavailable.
In the upcoming Home Assistant release there will be an option to configure the Fritzbox callmonitor through the UI, maybe that will make a difference. It is in beta since yesterday. I also do not want to drop the custom Fritzbox Tools integration, would be nice if that was not custom anymore though and integrated in one of the existing Fritzbox integrations 😉
It has worked without the names all the time. That is the initial problem in that issue. As the phonebook ID cannot be read, the integration cannot check the name for the number in the phonebook.
I also see that they are in the middle of migrating the yaml configuration to setting up the callmonitor integration with the user interface. So hopefully this will be fixed when that is released.
Also when I setup a user with username “admin” on Fritzbox with similar settings it is not working and results in same error messages.
I can see that there were multiple Fritzbox related changes in 0.118
https://github.com/home-assistant/core/pull/40508 https://github.com/home-assistant/core/pull/42432 https://github.com/home-assistant/core/pull/39995
I am concerned about the last one. Because it was stated as a possible breaking change:
The default value for password was set to “admin” in the fritz and fritzbox_callmonitor integrations. This has been corrected and moved to be the default value for the configuration option of username.Not sure which username it now takes. And my assumption is that the callmonitor integration cannot properly login now to get the phonebook information, because I see this error messages at almost same time on HA and Fritzbox.
Error in HA log during start up:
Error in system event log of Fritzbox around the same time (IP address is of HA device):
Login by an app with unknown login name from IP address <...> failed.I have this issue too. Not sure when it broke. I only noticed it since last week.