Control any somfy blinds with a REST API to be used with e.g. Amazon Alexa or Fibaro HC
This project provides a REST interface to control your somfy blinds. You can control any somfy stuff that uses Somfy Smoove Origin RTS Protocol. You need a Raspberry PI and a 433 MHZ transmitter.
This project contains three parts:
See README for installation and information. This is based on Pi-Somfy
Provides the REST API to the python script
You can also integrate the provided REST API with Amazon Alexa. See README. This will provide a speech interface like:
Alexa, turn blinds on. Alexa, turn blonds off.
Format:
http://localhost:8080/somfy/{channel}/{command}
e.g.
- http://localhost:8080/somfy/MAIN/UP
- http://localhost:8080/somfy/MAIN/DOWN
- http://localhost:8080/somfy/MAIN/STOP
mvnw package
java -jar somfy-0.0.1-SNAPSHOT.jar
Copy the pihub.service file to:
/etc/systemd/system/pihub.service
Reload systemd:
sudo systemctl daemon-reload
Enable the service:
sudo systemctl enable pihub.service
Start the service:
sudo systemctl start pihub.service
Check Log:
sudo journalctl --unit=pihub
tail -f /var/log/syslog | grep pihub
The integration in fibaro is quite easy. Just create a virtual device with three buttons and use this configuration: