Skip to content

Debugging from hassio

Fredrik Erlandsson edited this page Aug 28, 2024 · 3 revisions

This is a short writeup on how to debug pydaikin from hassio.

  1. Install https://github.com/hassio-addons/addon-ssh

    Open your Home Assistant instance and show the dashboard of an add-on.

  1. Configure the plugin @ https://my.home-assistant.io/redirect/supervisor_addon/?addon=a0d7b954_ssh
  • Ensure that protection mode is disabled: image
  • Go to the Configuration tab and set user and password eg.
    username: home
    password: swaddling-spooky-princess
  • Press save and ensure the plugin is running
  1. Open the plugin (from sidebar or via Ingess)

  2. Here you will be greeted with something like this:


       ▄██▄           _   _                                    
     ▄██████▄        | | | | ___  _ __ ___   ___               
   ▄████▀▀████▄      | |_| |/ _ \| '_ ` _ \ / _ \              
 ▄█████    █████▄    |  _  | (_) | | | | | |  __/              
▄██████▄  ▄██████▄   |_| |_|\___/|_| |_| |_|\___|          _   
████████  ██▀  ▀██      / \   ___ ___(_)___| |_ __ _ _ __ | |_ 
███▀▀███  ██   ▄██     / _ \ / __/ __| / __| __/ _` | '_ \| __|
██    ██  ▀ ▄█████    / ___ \\__ \__ \ \__ \ || (_| | | | | |_ 
███▄▄ ▀█  ▄███████   /_/   \_\___/___/_|___/\__\__,_|_| |_|\__|
▀█████▄   ███████▀

Welcome to the Home Assistant command line.

System information
  IPv4 addresses for enp0s3: 192.168.1.5/24
  IPv6 addresses for enp0s3: fd1b:86ac:99fa:6644:9bd6:2f1b:e8ff:86fb/64, fe80::5998:7388:afcf:b9b5/64

  OS Version:               Home Assistant OS 13.1
  Home Assistant Core:      2024.8.1

  Home Assistant URL:       http://hassio.local:8123
  Observer URL:             http://hassio.local:4357
~ $ 
  1. This is the magics:
  • Type login
  • Enter configured username and password (home / swaddling-spooky-princess)
  • Run pip install like this (change master to the right branch eg. skyfi-pass:
docker exec -it homeassistant pip install --force --no-deps git+https://github.com/fredrike/pydaikin.git@master

The whole process could look something like this:


       ▄██▄           _   _                                    
     ▄██████▄        | | | | ___  _ __ ___   ___               
   ▄████▀▀████▄      | |_| |/ _ \| '_ ` _ \ / _ \              
 ▄█████    █████▄    |  _  | (_) | | | | | |  __/              
▄██████▄  ▄██████▄   |_| |_|\___/|_| |_| |_|\___|          _   
████████  ██▀  ▀██      / \   ___ ___(_)___| |_ __ _ _ __ | |_ 
███▀▀███  ██   ▄██     / _ \ / __/ __| / __| __/ _` | '_ \| __|
██    ██  ▀ ▄█████    / ___ \\__ \__ \ \__ \ || (_| | | | | |_ 
███▄▄ ▀█  ▄███████   /_/   \_\___/___/_|___/\__\__,_|_| |_|\__|
▀█████▄   ███████▀

Welcome to the Home Assistant command line.

System information
  IPv4 addresses for enp0s3: 192.168.1.5/24
  IPv6 addresses for enp0s3: fd1b:86ac:99fa:6644:9bd6:2f1b:e8ff:86fb/64, fe80::5998:7388:afcf:b9b5/64

  OS Version:               Home Assistant OS 13.1
  Home Assistant Core:      2024.8.1

  Home Assistant URL:       http://hassio.local:8123
  Observer URL:             http://hassio.local:4357
~ $ login
a0d7b954-ssh login: home
Password: 
Welcome to Alpine!

The Alpine Wiki contains a large amount of how-to guides and general
information about administrating Alpine systems.
See <https://wiki.alpinelinux.org/>.

You can setup the system with the command: setup-alpine

You may change this message by editing /etc/motd.


       ▄██▄           _   _                                    
     ▄██████▄        | | | | ___  _ __ ___   ___               
   ▄████▀▀████▄      | |_| |/ _ \| '_ ` _ \ / _ \              
 ▄█████    █████▄    |  _  | (_) | | | | | |  __/              
▄██████▄  ▄██████▄   |_| |_|\___/|_| |_| |_|\___|          _   
████████  ██▀  ▀██      / \   ___ ___(_)___| |_ __ _ _ __ | |_ 
███▀▀███  ██   ▄██     / _ \ / __/ __| / __| __/ _` | '_ \| __|
██    ██  ▀ ▄█████    / ___ \\__ \__ \ \__ \ || (_| | | | | |_ 
███▄▄ ▀█  ▄███████   /_/   \_\___/___/_|___/\__\__,_|_| |_|\__|
▀█████▄   ███████▀

Welcome to the Home Assistant command line.

System information
  IPv4 addresses for enp0s3: 192.168.1.5/24
  IPv6 addresses for enp0s3: fd1b:86ac:99fa:6644:9bd6:2f1b:e8ff:86fb/64, fe80::5998:7388:afcf:b9b5/64

  OS Version:               Home Assistant OS 13.1
  Home Assistant Core:      2024.8.1

  Home Assistant URL:       http://hassio.local:8123
  Observer URL:             http://hassio.local:4357
~ # docker exec -it homeassistant pip install --no-deps --force git+https://github.com/fredrike/pydaikin.git@master
Looking in indexes: https://pypi.org/simple, https://wheels.home-assistant.io/musllinux-index/
Collecting git+https://github.com/fredrike/pydaikin.git@master
  Cloning https://github.com/fredrike/pydaikin.git (to revision master) to /tmp/pip-req-build-oa8dlrmr
  Running command git clone --filter=blob:none --quiet https://github.com/fredrike/pydaikin.git /tmp/pip-req-build-oa8dlrmr
  Resolved https://github.com/fredrike/pydaikin.git to commit 2debda532307448fc6b464f297167b8ab918de1b
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: pydaikin
  Building wheel for pydaikin (pyproject.toml) ... done
  Created wheel for pydaikin: filename=pydaikin-2.13.4-py3-none-any.whl size=35083 sha256=4346bc1f89e711fc9352626a31bc5053aecd3770475e9f00ee9243943b2ad1e2
  Stored in directory: /tmp/pip-ephem-wheel-cache-enpurdpz/wheels/e2/c8/48/008b8f63710da689741a1d3dd4199f31c7eedf3163b59cab3f
Successfully built pydaikin
Installing collected packages: pydaikin
  Attempting uninstall: pydaikin
    Found existing installation: pydaikin 2.13.4
    Uninstalling pydaikin-2.13.4:
      Successfully uninstalled pydaikin-2.13.4
Successfully installed pydaikin-2.13.4
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable.It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.
Clone this wiki locally