Comments (16)
You have to register your new virtual remote, yes.
Long-press the prog button of the blind's remote to make your blind enter programming mode. Then send command 0x8 with a python scrypt to register the new remote.
from pi-somfy.
Could please give a code example to do that?
Thanks you so much
from pi-somfy.
I haven't done it in years :D
Last line:
envoi_commande("your_remote_name", 0x8)
from pi-somfy.
- Long-press the prog button of the blind's remote to make your blind enter programming mode.
- Blinders go down a bit and then up a bit
- I send the reg
sudo ./reg.py
0x267043
134
Remote : 0x267043
Button : 0x08
Rolling code : 134
Frame : 0xA7 0x80 0x00 0x86 0x26 0x70 0x43
With cks : 0xA7 0x8F 0x00 0x86 0x26 0x70 0x43
Obfuscated : 0xA7 0x28 0x28 0xAE 0x88 0xF8 0xBB
- I send the closing instructions
sudo ./som.py
0x267043
135
Remote : 0x267043
Button : 0x04
Rolling code : 135
Frame : 0xA7 0x40 0x00 0x87 0x26 0x70 0x43
With cks : 0xA7 0x42 0x00 0x87 0x26 0x70 0x43
Obfuscated : 0xA7 0xE5 0xE5 0x62 0x44 0x34 0x77
- Nothing happens. Few seconds later, I got a small move probably, Prog mode turning off.
How can I be sure the query is well sent?
from pi-somfy.
Looks ok at first glance.
Did you triple check your wiring?
Sure the emitter is broadcasting on the right frequency?
from pi-somfy.
I changed the crystal today with the one mentionned in the past.
Is there a way to be sure that the transmitter is well detected? plugged?
from pi-somfy.
Python is pretty new to me.
Are you more comfortable with C (Arduino)?
from pi-somfy.
I only have a RaspberryPi and python is closer from what I know :)
So
- I have triple check plug
- Connect the ATAD pin with GPIO 4
- VCC with 5V
- GND with any GND pin on the Raspberry Pi
based on https://www.raspberrypi.org/documentation/usage/gpio/
-
I have check wires, working
-
I have check power with a small plugin in parallel on the emitter
Is there a way to be sure that the transmitter is well detected? plugged?
Thanks!
from pi-somfy.
99% sure it's the wiring.
Pigpiod uses the Broadcom (BCM) numbering. The link you posted shows the board numbering.
If you're new to the Pi, it's confusing.
I'll let you check your BCM GPIO (they've changed with the Pi's revisions) and I'm confident it will work once connected to the right pin.
Alternatively, you could use an oscilloscope to see on which pin data is transmitted but that's quite overkill :-D
Maybe a decent multimeter would work as well.
from pi-somfy.
It seems not as I'm plugged on the number 4 on my link... which is BCM pin 4 based on that link https://pinout.xyz/pinout/pin7_gpio4#
What do you think?
from pi-somfy.
I think you should write a program lightening up GPIO4 (or any, really) to make sure you identified the right pin.
Or maybe, just put an LED on GPIO4 with my Python script, you might see it flicker (not sure it will light up long enough, though).
If it's the right pin, try powering your emitter with 3.3V instead of 5V?
Check your soldering.
Try another emitter? Another crystal?
from pi-somfy.
Update, I have made the same setup but with a LED and this code:
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
GPIO.setup(4,GPIO.OUT)
print "LED on"
GPIO.output(4,GPIO.HIGH)
time.sleep(2)
print "LED off"
GPIO.output(4,GPIO.LOW)
And it's working fine.
I will have to look the emitter closer or the crystal...
from pi-somfy.
That's probably the problem.
Did you try powering it with 3.3V instead of 5V?
from pi-somfy.
Yes I tried both.
I plugged my leds in parallel, they are blinking 3 times when I execute the script but nothing happens
from pi-somfy.
I have made another emmiter which seems to work.
Always order chinese products by 5, not 1.
from pi-somfy.
Excellent! I'm happy for you.
from pi-somfy.
Related Issues (20)
- One Specific Shade Not Working HOT 5
- Somfy Smoove io HOT 1
- Program remote for Somfy Meteolis 6 (RTS) HOT 16
- Flawed crystal or poor soldering or should this have worked? HOT 19
- How to emulate the Setup procedure HOT 6
- Newer `requirements.txt` versions incompatible with pi-zero HOT 6
- FS1000A transmitter versions HOT 1
- PIGPIO timing off by a factor of 2 HOT 4
- Multiple channels activated on press HOT 10
- Can this be used concurrently with a normal somfy rts remote? HOT 2
- Moved to different Pi breaks? HOT 1
- Somfy Pi HOT 8
- ShutterName HOT 1
- Infinite loading time HOT 2
- Feedback
- DIfference between old and new blinds HOT 1
- Pi-Somfy with Apache2 WSGI integration
- Will this work with Banana pi or Orange pi?
- Can´t pair my Shutters HOT 10
- 32 to 64 bit issue HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pi-somfy.