Features:
- Site configuration is stored in json. Just copy a new file over the serial connection.
- Regularly sends outlet status to influxdb
- Polls a URL and turns on and off a device accordingly.
You're running an ESP32. We use this WROVER one
You have a powerful enough relay to flip on your "outlet". We use these:
- 250V 2A relay. Note: This relay requires 5V, which if your powering via USB can be taken from the VIN pin.
- 380V 25A relay
You have some kind of feedback telling you if the power if on or off:
- 220V AC Detection board. Note we use a 10k pull-up resistor and the output is inverted.
Download micropython (spiram-idf4) here
sudo apt get install esptool
esptool.py --port /dev/ttyUSB0 erase_flash
esptool.py --port /dev/ttyUSB0 --baud 460800 write_flash --flash_size=detect 0x1000 ./micro-python/esp32spiram-idf4-20191220-v1.12.bin
pip3 install adafruit-ampy --upgrade
ampy --port /dev/ttyUSB0 put config.py /config.py
ampy --port /dev/ttyUSB0 put main.py /main.py