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

FritzPlatform - Version 6 Beta #191

Closed seydx closed 3 years ago

seydx commented 3 years ago

This update is by far the biggest update for homebridge-fritz-platform. To make adding new devices also easier for developers, the complete plugin has been rewritten and made modular. This should give all developers the possibility to read the code more easily and add new devices via PR themselves.

Installation

sudo npm i -g homebridge-fritz-platform@beta

Updated: 2021-06-20 (Beta 39)

Example config.json

example-config.txt (updated: 2020-06-20)

Breaking Changes

Notable Changes

Other Changes

ulrgaer commented 3 years ago

using Beta 28, using Wifi Guest switch I get the following error. what is going wrong ?

[17.6.2021, 22:19:11] [FritzPlatform] FritzBox Wifi guest (wifi_guest): An error occured during getting state! [17.6.2021, 22:19:11] [FritzPlatform] Error: service with id urn:WLANConfiguration-com:serviceId:WLANConfigurationNaN not known at Fritzbox.exec (/usr/lib/node_modules/homebridge-fritz-platform/node_modules/@seydx/fritzbox/lib/fritzbox.js:130:13) at Handler.get (/usr/lib/node_modules/homebridge-fritz-platform/src/accessories/router/router.handler.js:243:28) at Handler.poll (/usr/lib/node_modules/homebridge-fritz-platform/src/accessories/extras/extras.handler.js:686:13)

seydx commented 3 years ago

using Beta 28, using Wifi Guest switch I get the following error. what is going wrong ?

[17.6.2021, 22:19:11] [FritzPlatform] FritzBox Wifi guest (wifi_guest): An error occured during getting state! [17.6.2021, 22:19:11] [FritzPlatform] Error: service with id urn:WLANConfiguration-com:serviceId:WLANConfigurationNaN not known at Fritzbox.exec (/usr/lib/node_modules/homebridge-fritz-platform/node_modules/@seydx/fritzbox/lib/fritzbox.js:130:13) at Handler.get (/usr/lib/node_modules/homebridge-fritz-platform/src/accessories/router/router.handler.js:243:28) at Handler.poll (/usr/lib/node_modules/homebridge-fritz-platform/src/accessories/extras/extras.handler.js:686:13)

Oh, its a bug related to wifiunits. Thx i will fix it

ulrgaer commented 3 years ago

This defect is as well with other wifi switches.

seydx commented 3 years ago

This defect is as well with other wifi switches.

can u post your config pls? and which beta version

ulrgaer commented 3 years ago

it's beta 28

{ "name": "FritzPlatform", "debug": false, "devices": [ { "active": true, "name": "FritzBox", "host": "192.168.0.1", "username": "test", "password": "xyz", "ssl": true, "tr064": true, "igd": false, "wifiUnits": 2, "master": true, "readOnly": true, "hide": true, "connection": "cable", "options": { "wifi_guest": "switch", "led": "switch" } } ], "presence": [ { "ping": false } ], "smarthome": [ { "active": true, "name": "Rollo Fenster Aquarium ", "ain": "14276 0503505", "accType": "blind" } ], "callmonitor": { "active": false, "port": 1012 }, "extras": { "alarm": { "active": false }, "wakeup": { "active": false }, "ringlock": { "active": false }, "phoneBook": { "active": false }, "dnsServer": { "active": false } }, "options": { "polling": { "timer": 10 } }, "telegram": { "active": false }, "platform": "FritzPlatform" }

seydx commented 3 years ago

it's beta 28

{ "name": "FritzPlatform", "debug": false, "devices": [ { "active": true, "name": "FritzBox", "host": "192.168.0.1", "username": "test", "password": "xyz", "ssl": true, "tr064": true, "igd": false, "wifiUnits": 2, "master": true, "readOnly": true, "hide": true, "connection": "cable", "options": { "wifi_guest": "switch", "led": "switch" } } ], "presence": [ { "ping": false } ], "smarthome": [ { "active": true, "name": "Rollo Fenster Aquarium ", "ain": "14276 0503505", "accType": "blind" } ], "callmonitor": { "active": false, "port": 1012 }, "extras": { "alarm": { "active": false }, "wakeup": { "active": false }, "ringlock": { "active": false }, "phoneBook": { "active": false }, "dnsServer": { "active": false } }, "options": { "polling": { "timer": 10 } }, "telegram": { "active": false }, "platform": "FritzPlatform" }

Beta 30 is online, can u try it pls

ulrgaer commented 3 years ago

looks good. Tkx. Great job.

ulrgaer commented 3 years ago

Hi, this morning I saw the following issue. LED at FRITZ!Box off. While switching LED on via HomeKit, switch is changing to on. After a while it’s falling back to off. On FRITZ!Box no change at all.

seydx commented 3 years ago

Hi, this morning I saw the following issue. LED at FRITZ!Box off. While switching LED on via HomeKit, switch is changing to on. After a while it’s falling back to off. On FRITZ!Box no change at all.

Yeah could reproduce it. Fixed in v6.0.0-beta.31 - Thanks! :)

ulrgaer commented 3 years ago

Testet v6.0.0-beta 34, led behavior unchanged.

seydx commented 3 years ago

Testet v6.0.0-beta 34, led behavior unchanged.

Hm, are u sure u restarted homebridge after update? It fixed on my test environment, beta 36 is online btw

ulrgaer commented 3 years ago

Testet v6.0.0-beta 34, led behavior unchanged.

Hm, are u sure u restarted homebridge after update? It fixed on my test environment, beta 36 is online btw

yes, I'm sure, but I will restart the pi

seydx commented 3 years ago

Hmm tried again with 7590 (v7.27), 7430 (v7.21) and Fritz Repeater (v7.13) and it worked as expected without any issues

seydx commented 3 years ago

Maybe install the latest update again, restart homebridge and try again

ulrgaer commented 3 years ago

I did it, everything is fine. May I did restart after installation. Sorry for any confusion.

seydx commented 3 years ago

Version 6 is online! Thanks all!