The objectif of this project is to control your Somfy shaders from a Raspberry Pi. My current remote is a Smoove Origin RTS Thanks Nickduino for the support.
Let's play with SomPi!
The first step is to buy the needed hardware.
- I took this one: 433MHz RF Transmitter Receiver Kit.
- There is 5 transmitters and receivers in this kit, useful and cheap.
- As Somfy as a particular frequency to avoid noises, I found out that it's needed to change the crystal.
- I took this one: 433.42M 433.42MHz R433 F433 SAW Resonator Crystals TO-39.
- There is 5 crystals also in this kit, useful and cheap too.
- To easy plugs between the Raspberry Pi and the Transmitter. I had in stock some Male to Female Solderless Flexible Breadboard Jumper Cable Wire for Raspberry Pi but they were Male to Female...so I had to customized them.
- Otherwise, you can buy directly Female to Female Solderless Flexible Breadboard Jumper Cable Wire for Raspberry Pi
You can now replace carefully your crystal by doing soldering. Then you have to plug the transmitter to the RaspberryPi
There is three pins on the transmitter:
- ATAD (DATA)
- VCC
- GND (Ground)
You need to connect all of them to the Raspberry Pi GPIO.
- Connect the ATAD pin with GPIO 4 (or adapt for your needs)
- VCC with 5V
- GND with any GND pin on the Raspberry Pi
You can easily install the python controller with the following instructions:
- Install dependencies
sudo apt-get update && sudo apt-get install git python pigpio python-pigpio python3-pigpio
- Verify that everything is well installed
git --version && python --version
- Then clone this repository
sudo git clone https://github.com/alxlaxv/SomPi.git
- Enter in SomPi
cd SomPi
- Make the controller executable
sudo chmod +x controller.py
- Launch pigpio daemon
sudo pigpiod
- Launch pigpio daemon automatically on every boot
sudo systemctl enable pigpiod.service
Now you will need to register your emitter as a remote for your shaders. First you need to do a long press on the Prog button behind your current official Remote. Your shaders will then briefly move, you can now release the Prog button.
Now we need to pair SomPi as a new remote
sudo python controller.py livingRoom register
And then close your shaders to test the pairing
sudo python controller.py livingRoom close
That's it! Well done!
- Open:
sudo python controller.py livingRoom open
- Close:
sudo python controller.py livingRoom close
- Stop:
sudo python controller.py livingRoom stop
- Register:
sudo python controller.py livingRoom register