diff --git a/homeway/config.yaml b/homeway/config.yaml index daeddb1..c9b8153 100644 --- a/homeway/config.yaml +++ b/homeway/config.yaml @@ -27,6 +27,9 @@ arch: map: - homeassistant_config:rw +# We don't use the default port because it conflicts with software like giv_tcp. So we use our own random port. +ingress_port: 45120 + # Add some config options for user to control the addon. options: debug_level: "info" diff --git a/homeway/homeway_linuxhost/webserver.py b/homeway/homeway_linuxhost/webserver.py index 0e72297..b032c88 100644 --- a/homeway/homeway_linuxhost/webserver.py +++ b/homeway/homeway_linuxhost/webserver.py @@ -24,9 +24,10 @@ def __init__(self, logger:logging.Logger, pluginId, devConfig_CanBeNone) -> None # Requests must come from 172.30.32.2 IP, they are authenticated by Home Assistant atomically, cool! self.AllowAllIps = self.GetDevConfigStr(devConfig_CanBeNone, "WebServerAllowAllIps") is not None - # We bind to the default docker ips and use port 8099, the port HA pre-defines for ingress. + # We bind to the default docker ips and use port 45120. + # The default port for Home Assistant is 8099, but that's used already by some more major software. self.HostName = "0.0.0.0" - self.Port = 8099 + self.Port = 45120 def Start(self):