From 9bdc17057f3a6748524e1ec8ac08dbdb61d53b75 Mon Sep 17 00:00:00 2001 From: Artem Sheremet Date: Mon, 30 Jun 2025 18:23:03 +0200 Subject: [PATCH] Add useful commands to README --- README.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/README.md b/README.md index f5208de..3b3bcf9 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,33 @@ $ esphome run file.yaml Look up list of runnable files inside `reflash.sh` script. +## Running remotely + +If you don't have esphome installed on a computer that you connect ESP chip to, +use https://web.esphome.io/ to upload the compiled binary. + +The binary resides in +`.esphome/build//.pioenvs//firmware.factory.bin`. + +## Cleaning up removed MQTT entities + +This can be done via `clean-mqtt` command line: + +```shell +$ esphome clean-mqtt spare-power-meter.yaml \ + --topic homeassistant/binary_sensor///config +``` + +or + +```shell +$ esphome clean-mqtt spare-power-meter.yaml \ + --topic homeassistant/+//# +``` + +When `--topic` is specified, the YAML file will only be used to extract MQTT +credentials. All other topics will remain untouched. + ## Hardware: heating ### Photoresistor