Hardware:
- Raspberry Pi Zero
- lechacal RPIZ CT3T1 power monitor hat for Raspberry Pi Zero
- Two sct-013-000 clamps to measure the Washer and Dryer power consumption
Software:
- Using Raspberry OS lite
- To update and install dependencies:
sudo apt update
sudo apt upgrade
sudo apt install python3-serial git
git clone https://github.com/SqyD/hapy
- Then make sure the serial port of the GPIO works following these instructions
- Change the url for your Home Assistant instance in the "secrets" variable.
- Go to your user profile page in Home Assistant by clicking on your username in the bottom left panel of the HA page and at the bottom of the page hit the Create Token to generate a long lived token. Add the token to the secrets section of trafasi.py file.
- Create a file trafasi.service in /etc/systemd/system/ using your favorite text editor.
- Ensure the path to the trafasi.py file is correct. (I just run it from my primary users homedir.)
- run
sudo systemctl daemon-reload && sudo systemctl enable trafasi && sudo systemctl start trafasi
You should be able to check Home Assistant for updates on the device entities