Recommended: venv.
# Optional
$ python3 -m venv venv
$ source venv/bin/activate
$ pip3 install -r requirements.txt
$ cp -i secrets.yaml{.sample,}
$ cp -i templates/secrets.yaml{.sample,}
# Edit both secrets.yaml files.
# Optional
$ source venv/bin/activate
$ ./reflash.sh compile ''
# 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.
Schematics:
- A0 -> 10K Ohm -> GND
- A0 -> Photoresistor -> 3V3
Assembly:
- Put isolation band on the legs
- Solder legs to dupont wire (the other end has to be male)
- Bath it in the insulation varnish
- 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.