artem ecd6a42aee Remove unused abstractions
There's only 1 protocol (secplus2) and board (esp32)
2026-05-28 16:06:18 +00:00
2026-05-28 16:06:18 +00:00
2026-02-01 21:23:07 +00:00
2025-12-13 13:20:43 +00:00
2025-12-13 13:20:43 +00:00
2026-05-05 19:28:23 +00:00
2026-05-10 16:09:14 +00:00
2026-04-12 09:55:07 +00:00
2024-01-25 19:36:32 +01:00
2025-01-25 13:59:51 +01:00
2026-04-12 09:55:08 +00:00
2024-12-20 17:32:45 +01:00
2025-07-22 20:39:41 +02:00
2025-07-28 20:18:18 +02:00
2026-04-12 09:55:05 +00:00
2026-05-23 13:10:34 +00:00
2026-05-03 10:24:46 +00:00

esphome

Installation

  1. https://nixos.org/download/
  2. direnv

Your PC timezone is important for esphome schedules, as they will use compiler's timezone when syncing the clock (NTP).

Compiling

$ cp -i secrets.yaml{.sample,}
$ cp -i templates/secrets.yaml{.sample,}

# Edit both secrets.yaml files.

$ ./reflash.sh compile ''

Running

$ ./reflash.sh

or

$ esphome run file.yaml

Look up list of runnable configurations 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/<component>/.pioenvs/<component>/firmware.factory.bin.

Serial console

Use screen /dev/tty.usbserial-0001 115200 (or /dev/ttyUSB*) to read the console.

Cleaning up removed MQTT entities

This can be done via clean-mqtt command line:

$ esphome clean-mqtt spare-power-meter.yaml \
    --topic homeassistant/binary_sensor/<component>/<entity>/config

or

$ esphome clean-mqtt spare-power-meter.yaml \
    --topic homeassistant/+/<component>/#

When --topic is specified, the YAML file will only be used to extract MQTT credentials. All other topics will remain untouched.

Hardware: heating

Photoresistor

Schematics:

  1. A0 -> 10K Ohm -> GND
  2. A0 -> Photoresistor -> 3V3

Assembly:

  1. Put isolation band on the legs
  2. Solder legs to dupont wire (the other end has to be male)
  3. Bath it in the insulation varnish
  4. Think the isolation band with a fan

Color coding for RJ45 cable:

  • orange: furnace
  • blue: floor

5528 photoresistor: 8-20K resistance by brightness, up to 1 MOhm. Brightness range is 1.47 - 2.2V. Darkness is 3.267V.

S
Description
No description provided
Readme
2.3 MiB
Languages
C++ 81.6%
Python 14.8%
Makefile 1.8%
Nix 1.7%