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

Detect if (LTE-)Fallback is active #229

Open timwegenerDE opened 3 years ago

timwegenerDE commented 3 years ago

I would like to get a notification or start an automation if my internet connection switches from DSL to the fallback connection (USB-connected 4G-Stick). Maybe a contact sensor that's opening if the dsl-sync is missing and mobile data is used.

For example: When mobile data is used I could shutdown some devices from an automation and reduce the mobile data usage.

https://service.avm.de/help/en/FRITZ-Box-7590/019/hilfe_mobilfunk_usb_modem

seydx commented 3 years ago

Hey @timwegenerDE

Is there an indication on the FritzBox interface if DSL is not active and mobile data is used instead? If so, can u post a screenshot from it

timwegenerDE commented 3 years ago

Hey @SeydX,

thanks for your reply.

Currently I can‘t have a look at it, because there is no carrier I can connect to. By end of the year this will change due to a new 5G / LTE tower next to us.

From the documentation I would guess there is a property called „WANAccessType“: https://avm.de/fileadmin/user_upload/Global/Service/Schnittstellen/wancommonifconfigSCPD.pdf (In blue).

Approach: If this value does not contain „DSL“, „Fiber“, „Cable“ or „Ethernet“ it should be a mobile connection?