Notes for how I go about setting up my Pi-Zero-W-based thermostat, since I keep having to reflash the SD card due to a poor power supply (I know, the right one is cheap… yes yes).

  1. Get Pi latest Raspberry Pi OS Lite
  2. Change passwd
  3. Go into sudo raspi-config
    1. change hostname to thermostat
    2. enable wifi
    3. enable SSH
  4. reboot
  5. ssh-keygen
  6. add pub key to github
  7. git clone git@github.com:hoffmanc/heater.git
  8. cd heater
  9. sudo ./install.sh
  10. check GPIO settings
  11. reboot
  12. works?

Now I’m realizing this belongs in the readme for the heater…

MQTT config:

mqtt sonoff