seydx / homebridge-fritz-platform

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

Log output: No master device defined #87

Closed idominiki closed 4 years ago

idominiki commented 4 years ago

Describe the bug In the log there is a "FritzPlatform No master device defined!", but in my config I have:

"FRITZ!Box 7590": { "active": true, "host": "XXX.XXX.XXX.XXX", "port": 49000, "username": " ", "password": "mypassword", "type": "", "master": true, "mesh": false, "readOnly": false, "options": false }

Can anyone help?

seydx commented 4 years ago

Can u post the logs and your config.json pls

idominiki commented 4 years ago

Can u post the logs and your config.json pls

[2020-8-11 19:32:42] [HB Supervisor] Started Homebridge v1.1.1 with PID: 40528 [2020-8-11 19:32:43] Loaded config.json with 1 accessories and 6 platforms. [2020-8-11 19:32:43] --- [2020-8-11 19:32:45] Loaded plugin: homebridge-braava@1.1.0 [2020-8-11 19:32:45] Registering accessory 'homebridge-braava.Braava' [2020-8-11 19:32:45] --- [2020-8-11 19:32:45] Loaded plugin: homebridge-bravia@2.3.1 [2020-8-11 19:32:45] Registering platform 'homebridge-bravia.BraviaPlatform' [2020-8-11 19:32:45] --- [2020-8-11 19:32:45] Loaded plugin: homebridge-config-ui-x@4.24.0 [2020-8-11 19:32:45] Registering platform 'homebridge-config-ui-x.config' [2020-8-11 19:32:45] --- [2020-8-11 19:32:45] Loaded plugin: homebridge-fritz@0.9.5 [2020-8-11 19:32:45] Registering platform 'homebridge-fritz.FRITZ!Box' [2020-8-11 19:32:45] --- [2020-8-11 19:32:45] Loaded plugin: homebridge-fritz-platform@4.1.0 [2020-8-11 19:32:46] Registering platform 'homebridge-fritz-platform.FritzPlatform' [2020-8-11 19:32:46] --- [2020-8-11 19:32:46] Loaded plugin: homebridge-people@0.6.2 [2020-8-11 19:32:46] Registering platform 'homebridge-people.People' [2020-8-11 19:32:46] Registering accessory 'homebridge-people.PeopleAccessory' [2020-8-11 19:32:46] Registering accessory 'homebridge-people.PeopleAllAccessory' [2020-8-11 19:32:46] --- [2020-8-11 19:32:47] Loaded plugin: homebridge-philips-hue-sync-box@0.6.1 [2020-8-11 19:32:47] Registering platform 'homebridge-philips-hue-sync-box.PhilipsHueSyncBoxPlatform' [2020-8-11 19:32:47] --- [2020-8-11 19:32:47] Loading 6 platforms... [2020-8-11 19:32:47] [BraviaPlatform] Initializing BraviaPlatform platform... [2020-8-11 19:32:47] [PhilipsHueSyncBoxPlatform] Initializing PhilipsHueSyncBoxPlatform platform... [2020-8-11 19:32:47] [PhilipsHueSyncBoxPlatform] Homebridge API available. [2020-8-11 19:32:47] [People] Initializing People platform... [2020-8-11 19:32:47] Initializing platform accessory 'Sophie'... [2020-8-11 19:32:47] Initializing platform accessory 'Dominik'... [2020-8-11 19:32:47] [People] WebHook: Started server on port '51828'. [2020-8-11 19:32:47] [Fritz!Box] Initializing FRITZ!Box platform... [2020-8-11 19:32:47] [FritzPlatform] Initializing FritzPlatform platform... [2020-8-11 19:32:47] [FritzPlatform] [INFO] ************************************************************** [2020-8-11 19:32:47] [FritzPlatform] [INFO] FritzPlatform v4.1.0 by SeydX [2020-8-11 19:32:47] [FritzPlatform] [INFO] GitHub: https://github.com/SeydX/homebridge-fritz-platform [2020-8-11 19:32:47] [FritzPlatform] [INFO] Email: seyd55@outlook.de [2020-8-11 19:32:47] [FritzPlatform] [INFO] ************************************************************** [2020-8-11 19:32:47] [FritzPlatform] [INFO] start success... [2020-8-11 19:32:47] [Config] Initializing config platform... [2020-8-11 19:32:47] [Config] Running in Service Mode [2020-8-11 19:32:47] Loading 1 accessories... [2020-8-11 19:32:47] [Braava Jet M6] Initializing Braava accessory... [2020-8-11 19:32:47] [Braava Jet M6] Enabling autoRefresh every 1800 seconds [2020-8-11 19:32:47] [BraviaPlatform] Restoring Fernseher from HomeKit [2020-8-11 19:32:47] [PhilipsHueSyncBoxPlatform] Cached accessories loaded. [2020-8-11 19:32:47] [FritzPlatform] [INFO] Auto Device Search is disabled, looking for devices in config.json.. 2020-08-11T19:32:47.637Z FritzPlatform Found following devices: 2020-08-11T19:32:47.642Z FritzPlatform [ { name: 'FRITZ!Box 7590', address: 'myrouterip', port: 49000, location: 'http://myrouterip:49000/tr64desc.xml', serial: 'FB-19XXX781' } ] [2020-8-11 19:32:47] [FritzPlatform] [INFO] Initializing config... 2020-08-11T19:32:47.653Z FritzPlatform Initializing extra accessories... 2020-08-11T19:32:47.653Z FritzPlatform Initializing extras... 2020-08-11T19:32:47.654Z FritzPlatform Initializing telegram... 2020-08-11T19:32:47.654Z FritzPlatform Initializing callmonitor... 2020-08-11T19:32:47.655Z FritzPlatform Generating config... 2020-08-11T19:32:47.723Z FritzPlatform Config.json loaded! 2020-08-11T19:32:47.723Z FritzPlatform Writing new parameter into config.json... 2020-08-11T19:32:47.726Z FritzPlatform Config.json refreshed! 2020-08-11T19:32:47.726Z FritzPlatform { "tvs": [ { "name": "Fernseher", "ip": "192.168.XXX.XX", "soundoutput": "speaker", "sources": [ "extInput:hdmi" ] } ], "platform": "BraviaPlatform" } [2020-8-11 19:32:47] [FritzPlatform] [INFO] Found 1 active devices... [2020-8-11 19:32:47] [FritzPlatform] [ERROR] An error occured while checking config! 2020-08-11T19:32:47.728Z FritzPlatform No master device defined! [2020-8-11 19:32:48] [Fritz!Box] FRITZ!Box platform login successful [2020-8-11 19:32:48] [Fritz!Box] Discovering accessories [2020-8-11 19:32:48] [Fritz!Box] Using tr64 api for guest Wifi [2020-8-11 19:32:50] [PhilipsHueSyncBoxPlatform] Create Sync Box. [2020-8-11 19:32:50] [PhilipsHueSyncBoxPlatform] Initialization completed. [2020-8-11 19:32:51] [Fritz!Box] Alarm sensors found: none [2020-8-11 19:32:51] [Fritz!Box] Buttons found: none [2020-8-11 19:32:51] [Fritz!Box] Outlets found: none [2020-8-11 19:32:51] [Fritz!Box] Thermostats found: none [2020-8-11 19:32:51] [Fritz!Box] Sensors found: none [2020-8-11 19:32:51] Initializing platform accessory 'GastWLAN'... Setup Payload:

Config: { "platform": "FritzPlatform", "devices": { "FRITZ!Box 7590": { "active": true, "host": "myrouterip", "port": 49000, "username": " ", "password": "mysavepw", "type": "", "master": true, "mesh": false, "readOnly": false, "options": false } }, "smarthome": { "Test Contact Sensor": { "active": false, "ain": "01234567890", "devType": "contact" }, "Test Thermostat Device": { "active": false, "ain": "01234567890", "heatValue": 5, "coolValue": 5, "windowSensor": false, "devType": "thermostat" }, "Test Outlet Device": { "active": false, "ain": "01234567890", "tempSensor": false, "devType": "switch" } }, "callmonitor": { "active": false, "ip": "0.0.0.0", "port": 1012, "country": "", "incomingTo": [], "outgoingFrom": [] }, "presence": { "user": [ { "active": true, "name": "Name1", "address": "192.168.XXX.XX" } ], "anyone": false, "offDelay": 90, "onDelay": 15, "ping": false }, "wol": [ { "active": false, "name": "Test Device", "address": "00:00:00:00:00:00" } ], "phoneBook": { "active": false, "blacklists": [] }, "alarm": { "active": false, "telNr": "", "duration": 30 }, "wakeup": { "active": false, "internNr": "", "duration": 30 }, "ringlock": { "active": false, "DECTphones": 1, "start": "11:00", "end": "22:00" }, "broadband": { "active": true, "measureTime": 5 }, "extReboot": { "active": false, "cmdOn": "", "cmdOff": "" }, "telegram": { "active": false, "token": "", "chatID": "", "presence": { "in": "", "out": "", "anyoneIn": "", "anyoneOut": "" }, "callmonitor": { "incoming": "", "disconnected": "" }, "alarm": { "activated": "", "deactivated": "" }, "extReboot": { "start": "", "finish": "" } }, "polling": 10, "timeout": 10, "clearCache": false, "debug": true, "disableAutoSearch": true, "disableAutoConfig": false }

idominiki commented 4 years ago

Any news on this problem?

seydx commented 4 years ago

Sorting out the issues. This issue is fixed in v5 (coming soon)

idominiki commented 3 years ago

Hey @SeydX,

after I upgraded to 5.0.6 through HomebridgeConfigUIX I have the same problem.

Log output with debugging enabled is: [2020-11-11 16:37:17] [FritzPlatform] WARNING: There is no master router defined! [2020-11-11 16:37:17] [FritzPlatform] WARNING: Please define ONE master router to proceed!

My config shows: "name": "FRITZ!Box 7590", "username": "", "password": "XXXXXXXXX", "port": 49000, "manufacturer": "AVM", "model": "FRITZ!Box 7590", "ssl": true, "tr064": true, "igd": true, "master": true, "readOnly": false, "connection": "dsl", "options": { "wifi_guest": "switch", "lock": "switch" }

Any ideas?

seydx commented 3 years ago

@idominiki

U have no host defined for the router

idominiki commented 3 years ago

Sorry for That!