hassio-addons / addon-appdaemon

AppDaemon4 - Home Assistant Community Add-ons
https://addons.community
MIT License
151 stars 47 forks source link

tcp or udp ports listening inside AppDaemon #228

Closed miljbee closed 1 year ago

miljbee commented 1 year ago

Problem/Motivation

I need to code an udp listener in appdaemon. I run Homeassistant inside a VM with Homeassistant OS. I can't find a way to update the docker config to route the port I need to the appdaemon container.

Expected behavior

I would like to be able to indicate in the Homeassistant or appdaemon config the port I need to expose.

Actual behavior

There doesn't seem to be any way to set up a port mapping

Steps to reproduce

(How can someone else make/see it happen)

Proposed changes

In the appdaemon plugin configuration screen, there is a box where you indicate the tcp port to expose for appdaemon webui (5050/tcp). Is it possible to update this config screen to add more ports ? Alternatively, is there some "magic" init commands to achieve this goal ? image

Thanks for your attention

frenck commented 1 year ago

I can't find a way to update the docker config to route the port I need to the appdaemon container.

It can't.

The add-on is not designed to provide such functionality.

../Frenck