Telegram Group of Domestic appliances (measurement of power consumption over AVM Home Automation API)
This repository contains all files you need to create a telegram group with your Domestic appliances. The power consumption is measured via smart sockets from AVM. Possible sockets are AVM Dect200, AVM Dect210 or AVM 546E. The Raspberry PI sends a telegram message as soon as a current consumption threshold is exceeded or fallen below. Communication with the sockets takes place via an AVM Fritz!Box and the AVM Home Automation API. The required material can be found under the following link.
First the sockets must be registered on the Fritz!Box. I refer to the user manual of the sockets. The login process to the Fritz!Box must be changed to Username and Password instead of Password only.
Now you have to create a separate telegram bot for each socket. At last a telegram group is created with all created bots. Here you can find two images of my group and a lot more about the furnishing process.
Here you can find a video of the installation process. First install Raspbian Buster Lite on a SD-Card. After booting the Raspberry Pi, execute the following commands:
sudo apt update
sudo apt -y install git
Clone the github repository and change to the new directory:
cd ~
git clone https://github.com/Blackbox-git/HousekeepingPi
cd HousekeepingPi
For installation enter the following commands and answer the queries:
chmod +x install.sh
./install.sh
cd /opt/haushalt
Use the Recording program aufzeichnung.py to determine the threshold values required for your device. Here you can find expamples. The threshold values must be added to the credentials using the program schwellewerte.py.
Restart the Systemd Service with the following command and perform a test run of your device:
sudo systemctl restart haushalt.service