HarvsG / ha-glinet4-integration

Home Assistant custom component for GL.iNet routers running 4.X firmware.
21 stars 1 forks source link
glinet homeassistant homeassistant-custom-component openwrt

ha-glinet4-integration

A HomeAssistant custom component for GL-inet routers that uses their API version 4.

Working - in alpha, breaking changes very likely.

Contributions are welcome, for ideas see the TODO list below or the various #TODOs in the code.

Features

Installation

  1. Create a new folder in config/custom_components called glinet
  2. Copy manually, or clone the files in this repo into that folder git clone https://github.com/HarvsG/ha-glinet4-integration.git . (The . at the end is important)
  3. Reboot homeassistant
  4. Add the new Glinet integration under Devices and services
  5. Edit the host path with you router IP - ensure you keep the http://
  6. Add your router admin page login password (not your WIFI password). Placeholder is GL-inet's default goodlife, but this should be changed.

Dev set up

  1. Set up the vscode homeassistant core dev setup
    • Or you could just use a running install of homeassistant (restarts are required for a lot of changes)
  2. Run once to generate directories
  3. create a config/custom_components/glinet directory
  4. git clone https://github.com/HarvsG/ha-glinet4-integration.git .
  5. Note, the vscode git tracker will track the parent repo (ha core), but command line git will still work within the glinet dir
  6. You may need to config a new ssh key inside the container. Use this - this will be overwitten if you rebuild the container

TODO

Tested on

Depends on

https://github.com/HarvsG/gli4py