ESPHome configuration.
- Run ESPHome in Docker container.
- Sync Git repository in ESPHome config folder.
cd /data/appdata/esphome/config
git pull https://github.com/ptr727/ESPHome-Config .
- Deploy
secrets.yaml
. - Use VSCode and open remote SSH folder.
- Generic bootstrap template used when converting Tuya devices to ESPHome using TuyaConvert.
- See blog post for firmware conversion details.
- Template for the Ayococr X5P US 120V AC WiFi wall plug.
- See blog post for firmware conversion details.
- Template for the EFUN SH331W US 120V AC WiFi power monitoring wall plug.
- See blog post for firmware conversion details.
- Template for the Sonoff TH10 and Sonoff TH16 WiFi relay.
- Follow the Tasmota guide for flashing instructions, but use the ESPHome firmware.
- Template for the Sonoff S31 US 120V AC WiFi power monitoring wall plug.
- Follow the Tasmota guide for flashing instructions, but use the ESPHome firmware.
- Rename HA entities:
- Stop HA container using
docker stop home-assistant
. - Reset config permissions:
sudo chown -R nobody:users /data/appdata/home-assistant/config
sudo chmod -R u=rwx,g=rwx+s,o=rx /data/appdata/home-assistant/config
- Edit
core.config_entries
and renametitle
andhost
. - Edit
core.device_registry
and renamename
. - Edit
core.entity_registry
and renameunique_id
andoriginal_name
.
- Stop HA container using
- Set new ESPHome device name:
- Set
use_address
inwifi
config, see notes. - Update firmware.
- Delete or uncomment
use_address
. - Update firmware.
- Set
- Restart HA container using
docker start home-assistant
. - Troubleshooting:
- Look at ESPHome integration entities, fix incorrect entries.
- E.g. search for entities named
foo_2
, deletefoo
, and renamefoo_2
tofoo
. - E.g. replace short entity names with fully qualified names.