LukasGrebe / ha-addons

Addons for Home Assistant
GNU General Public License v3.0
37 stars 42 forks source link

How can I start a telnet session? #50

Closed gvisol closed 1 year ago

gvisol commented 1 year ago

Hi all,

I just wonder how can I start a telnet session to ebusd container. I have configured port 8888 on ebusd network configuration menu page.

Thank you in advance.

LukasGrebe commented 1 year ago

I'm actually not sure. I think there's a possibility to open the port in your HA install and point it to the docker (supervisor) container running ebusd. - See ports at https://developers.home-assistant.io/docs/add-ons/configuration

When I need to interact with ebus beyond mqtt, I use ebusctl running within the homeassistant installation. To access it I do the following:

  1. ssh into homeassistant
  2. run docker exec -itdocker ps | grep ebusd | awk '{print $1}'/bin/bash to get a bash shell within the ebusd container running through supervisor (docker on the Homassistant OS host system)
  3. run ebusctl as described in the ebusd docs.

I wouldn't mind an easier access :D

LukasGrebe commented 1 year ago

Closing, stale

gvisol commented 6 months ago

Hi Lukas, thank you for your answer.

Unfortunately, I cannot run "docker exec -it docker ps | grep ebusd | awk '{print $1}' /bin/bash" on ssh into homeassistant. OS do not recognize 'docker' command.

Any idea?

My sytem configuration:

Versión core-2023.12.1
Tipo de instalación Home Assistant OS
Desarrollo  false
Supervisor  true
Docker  true
Usuario root
Entorno virtual false
Versión de Python   3.11.6
Familia de Sistema Operativo    Linux
Versión del Sistema Operativo   6.1.58-haos-raspi
Arquitectura de CPU aarch64
Zona horaria    Europe/Madrid
Directorio de configuración /config

Thank you in advance