seydx / homebridge-fritz-platform

AiO Homebridge dynamic platform plugin for AVM hardware like Fritz!Box, Fritz!Repeater etc.
MIT License
223 stars 32 forks source link

An error occurred during polling #187

Closed dirkhusemann closed 3 years ago

dirkhusemann commented 3 years ago

Describe the bug

After installing and configuring homebridge-fritz-platform on a HOOBS device I'm getting a constant stream of "an error occurred during polling" log statements.

To Reproduce Installed fritz platform 5.1.2 on on HOOBS device 3.3.5, configured for local Fritz!Box 7590 (FRITZ!OS: 07.25).

Expected behavior

No polling errors.

Log file

attached. logs.txt

seydx commented 3 years ago

@dirkhusemann

can u enable debug in your config pls and restart homebridge and post the whole log again

masterbug commented 3 years ago

To me it behaves the same. i was using a User/Pwd created extra for homebridge usage but this seams not to work at the moment. When I change back to the default admin user and password it is fine.

seydx commented 3 years ago

@masterbug

so its a credentials issue?

dirkhusemann commented 3 years ago

@SeydX enabled debug in the config. Pretty much the same result. logs-2.txt

I doubt that it's a credentials issue: I did add a separate user --- and successfully tested that with https://github.com/jhubig/FritzBoxShell.

seydx commented 3 years ago

@dirkhusemann

according to the log, you dont have enabled debug in your config for fritzbox

dirkhusemann commented 3 years ago

well:

       {
            "platform": "FritzPlatform",
            "plugin_map": {
                "plugin_name": "homebridge-fritz-platform"
            },
            "name": "FritzPlatform",
            "devices": [
                {
                    "name": "FritzBox 7590",
                    "host": "192.168.1.1",
                    "port": 49000,
                    "username": "XXXX",
                    "password": "XXXXXXXXX",
                    "manufacturer": "Fritz Box",
                    "model": "7590",
                    "serialNumber": "XXXXXXXXXX",
                    "master": true,
                    "ssl": true,
                    "tr064": true,
                    "igd": true,
                    "readOnly": false,
                    "hide": true,
                    "connection": "cable",
                    "options": {
                        "wifi_2ghz": "switch",
                        "wifi_5ghz": "switch",
                        "wifi_guest": "switch",
                        "wps": "characteristic",
                        "aw": "characteristic",
                        "deflection": "switch",
                        "led": "switch",
                        "lock": "switch",
                        "dect": "switch",
                        "broadband": "characteristic"
                    }
                }
            ],
            "callmonitor": {
                "active": false,
                "port": 1012,
                "ip": "192.168.8.1"
            },
            "extras": {
                "alarm": {
                    "active": false
                },
                "wakeup": {
                    "active": false
                },
                "ringlock": {
                    "active": false
                },
                "phoneBook": {
                    "active": false
                }
            },
            "options": {
                "polling": {
                    "timer": 10
                }
            },
            "telegram": {
                "active": false
            },
            "debug": true
        }

which I enabled through the UI on HOOBS:

Screenshot 2021-06-04 at 22 03 28

If there's another way, let me know.

seydx commented 3 years ago

@dirkhusemann

Have you restarted the service to apply the changes?

dirkhusemann commented 3 years ago

Actually, just realised the error: the IP address was wrong! Working now! Apologies!