read this article and the comments
Port forwarding and UPnP: Devices in the local network… | Swisscom Community
it is better to use the management of the router
Login to http://internetbox.swisscom.ch − Help | Swisscom
Are you talking about the open source software Home Assistant to support the coordinated networking of IoT devices from different manufacturers within a home network, which you can use, for example. B. can install on a Raspberry Pi?
If so, on which appliance did you install the software?
UPnP is also just a pure convenience function for automated port forwarding from the Internet (i.e. the individual devices can then determine for themselves that they can be reached directly from the Internet), which is better never used at all, as this also poses a large additional risk for represents the general vulnerability of one’s own network directly from the Internet.
If IoT devices actually rely on direct accessibility from the Internet, which in my opinion should never happen with trustworthy IoT devices, it would still be much safer not to use UPnP, but rather the one specifically required for this individual device Consciously set up port forwarding on the router manually.
Hobby-Nerd ohne wirtschaftliche Abhängigkeiten zur Swisscom
- Solutionselected by JanineZ
I think you’re confusing two things:
- UPnP and port forwarding are actually about direct access from the Internet to individual devices in the home network, which is actually not what you need
- The “sensor” you show is about direct access from the Home Assistant software to the internal API (Application Programming Interface) of a Swisscom Internet box in order to be able to read out information about the Internet box’s internal values, which Swisscom uses for security reasons actually doesn’t want to make it available to customers.
And that’s what the GitHub post linked by @kaetho is about, namely how you could outsmart an Internet box by adapting certain procedures and inserting the Internet box’s administrator password in order to read out certain information directly can.
If you don’t want to move towards your own low-level coding, it’s probably best to forget about the idea of integrating the Internet box as a normal “sensor” into the home assistant.
The chances of success would only get worse over time anyway.
Hobby-Nerd ohne wirtschaftliche Abhängigkeiten zur Swisscom
4b 65 69 6e 65 20 4d 61 63 68 74 20 64 65 72 20 6c 65 67 61 63 79 20 49 50 21