aeroniemi / circlehome

A HomeAssistant device controller built into a cute 1.28" dial
https://aeroniemi.github.io/circlehome/
MIT License
0 stars 0 forks source link

Replace setup experience with Improv WiFi #40

Closed aeroniemi closed 5 months ago

aeroniemi commented 6 months ago

The setup is kinda cool, but improv would probably be better long term see https://github.com/improv-wifi/sdk-cpp

aeroniemi commented 6 months ago

There are challenges to this:

aeroniemi commented 6 months ago

there is a way to authenticate with home assistant through oauth2 and the websocket api - i guess we could write something to do that, which may then remove the need for the web ui

aeroniemi commented 6 months ago

steps required to make this happen:

  1. remove the web UI/setup experience
  2. setup improv wifi
  3. setup a espwebtool instance
  4. setup mdns (see https://docs.espressif.com/projects/esp-protocols/mdns/docs/latest/en/index.html)
  5. create an oauth thing to auth with HA
  6. setup websockets to get a long lived token
  7. profit
aeroniemi commented 5 months ago

steps 2 and 3 are done, 4 doesn't seem to be needed. 6 is no longer needed, 5 is figured out