Create Python venv Follow ESPHome installation guide (Do not run the docker version on windows as it is extreamly slow!)
esphome compile DEVICE.yaml
esphome run DEVICE.yaml --device {COM6, DEVICE.local, IP}
If you have build a device locally on you machine but would like to add it to your running HA instance, follow the steps below. It is not completly intuitiv but it works.
- Navigate to the ESPHome add-on
- Click "NEW DEVICE" in bottom right corner
- Do not choose the "ESPHome Web" use the HA add-on
- For name use the same name as you have in your local .yaml
- Select the same "device type" as your local .yaml
- At the "Configuration crreated!" screen, click "SKIP" The device is now added, it is time to set it up:
- Go to "EDIT" on the device on the dashboard
- Paist the content of your local .yaml into the add-on editor in HA
- Press "SAVE
- Press "INSTALL"
- Choose "WIRELESSLY" and it should automatically compile and run on DEVICE.local
After combilation all should be running. If you changed the "API" key HA will ask you to reconfigure the device:
- Go to "Settings->Devices & services" the device should be present with a red button saying "Reconfigure"
- Push "Reconfigure"
- Add new "API" key The device should now be working