artem 6ddc71f04a Add spare-power-meter esphome config
Avoid forgetting to reflash it with latest config.
2025-06-06 13:33:59 +02:00
2025-05-18 13:01:10 +02:00
2024-06-21 21:13:00 +02:00
2025-05-18 13:01:10 +02:00
2025-03-22 18:09:32 +00:00
2024-01-25 19:36:32 +01:00
2025-01-25 13:59:51 +01:00
2025-05-07 17:30:27 +02:00
2024-12-10 22:26:17 +01:00
2024-12-20 17:32:45 +01:00
2025-03-24 13:10:10 +01:00
2025-02-27 22:26:40 +00:00

esphome

Installation

Recommended: venv.

# Optional
$ python3 -m venv .venv
$ source .venv/bin/activate

$ pip3 install -r requirements.txt

Your PC timezone is important for esphome schedules, as they will use compiler's timezone when syncing the clock (NTP). Consider changing it to your home TZ:

# dpkg-reconfigure tzdata

Compiling

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

# Edit both secrets.yaml files.

# Optional
$ source .venv/bin/activate

$ ./reflash.sh compile ''

Running

# Optional
$ source .venv/bin/activate

$ ./reflash.sh

or

# Optional
$ source .venv/bin/activate

$ esphome run file.yaml

Look up list of runnable files inside reflash.sh script.

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%