uhppoted / uhppoted-app-home-assistant

UHPPOTE controller integration with Home Assistant
MIT License
8 stars 1 forks source link

Adding controller not discoverable due to firewall settings? #3

Closed YBonline closed 6 months ago

YBonline commented 7 months ago

Glad to see Home Assistant integration arriving! This looks absolutely amazing!

I was trying to get this going, but due to my network configuration (for security reasons), discovery of the controllers is not discoverable over the network, but they are accessible directly by the IP address. Is there any way to manually add a controller by specifying an IP address?

uhppoted commented 7 months ago

I was just writing up the release notes which include "... only supports controllers on the local LAN" :-).

Unfortunately, at the moment it's not possible to use controllers that aren't discoverable because the underlying Python library currently only supports UDP broadcast. It's probably the very first thing I'm going to fix once this release is out, but it is still going to take a little while because it's a fair amount of work.

For the interim, it should be possible to work around the limitation using uhppoted-tunnel to forward the UDP packets but that may be messier and/or more complex than you would like (and also I haven't tried it) so it might be better just to wait a bit.

uhppoted commented 7 months ago
uhppoted commented 6 months ago

Hi,

Just a quick update - v0.8.8.1 with support for off LAN controllers has been released.

The instructions for configuring off LAN controllers are here, but basically - add them to the configuration.yaml file and they will be included in the discovered controllers list when you create a new uhppoted entry or run Configure on an existing entry:

...
uhppoted:
    ...
    controllers:
        - 
            controller: 504030201
            address: 192.168.1.100
        - 
            controller: 605040302
            address: 192.168.1.100
            port: 60000
        - 
            controller: 706050403
            address: 192.168.1.100
            port: 54321
            timeout: 0.56
...

I'll leave this issue open for a couple of days in case you pick up any major problems.

uhppoted commented 6 months ago

Hi YB, think this is basically done so going to close this and move on to the next thing - feel free to reopen it if you need to.

YBonline commented 6 months ago

Hey, didn't get a chance to try this until now but just figured I'd update that it worked great, no issues at all! Thank you again!

uhppoted commented 6 months ago

Oh great! Thanks for the update :-)

The next set of changes are going to be mostly internal restructuring and cleaning up to make it more manageable, etc so you won't be seeing much visible improvement but stuff is nonetheless happening.