Comments (17)
actually, here's my hack... it's a bit worse than I first thought lol....
< if shutterId == "0x888888": #battery operated motor seems to be a bit deaf!
< self.sendCommand(shutterId, self.buttonDown, 5)
< time.sleep(1)
< self.sendCommand(shutterId, self.buttonDown, 5)
< else:
< self.sendCommand(shutterId, self.buttonDown, 2)
from pi-somfy.
You're right, sendCommand is called with two repetitions
self.sendCommand(shutterId, self.buttonStop, 2)
from pi-somfy.
Would it be possible to parameterise this resend value per blind rather than have it hard coded?
from pi-somfy.
Finally got to do this and checked in a fix. See SendRepeat in the configfile. You can define it there.
from pi-somfy.
Thanks for the change. I need to set this individually, "per blind" though because the battery powered Somfy blinds need several more repeats to wake them up whereas the regular mains powered blinds do not. Is that possible for a future change?
from pi-somfy.
Actually I just tried this and even with 5 repeats the battery shutters still don't work. It seems they need the little 'sleep' in my hack comment above which is a bit crude. Any suggestions on how to implement this more efficiently? Perhaps a new flag in operateShutters.conf [Shutters] section to indicate which shutters need awakening?
from pi-somfy.
you can try to add a delay of 1 second between retries and let me know if it works. Just open operateShutters.py and add the following at line 292:
time.sleep(1)
If it works, I can add it to the main branch.
from pi-somfy.
Thanks Michael, That seems to work. I'm not sure how long it takes the battery blind to go into sleep mode so will test again later but it's looking good so far
from pi-somfy.
test it a few days and if it works we can add it to the project. Let me know. BTW would 1/2 second work too?
from pi-somfy.
Thanks. 1/2 second seems to be working too. I will definitely test and find the best option. Cheers
from pi-somfy.
I've been running this with time.sleep(0.25) for a few days not and it seems to work sell so perhaps that could be added to the next release? Many thanks.
from pi-somfy.
thanks for testing. I checked in an enhancement.
from pi-somfy.
So confused by this. The sleep is just slowing down the code that is computing the array to be sent - not while the command is actually being sent over the airwaves. So I don't know why this fix would help at all?
from pi-somfy.
@MarkGodwin yes I think you're right. I think the problem was likely addressed by increasing SendRepeat or perhaps something else even. My current config is working well so I'm reluctant to mess with it :)
from pi-somfy.
Good point, @MarkGodwin
My current config is working well so I'm reluctant to mess with it :)
Could you comment out the sleep command and see if it still works, though?
from pi-somfy.
I just checked and it's already commented out in my operateShutters.py
so I must have come to the same conclusion at some stage too.
I'm using SendRepeat=3 in operateShutters.conf
from pi-somfy.
Yes, commenting it out didn’t cause me any problems either.
from pi-somfy.
Related Issues (20)
- 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
- Should that work in 433.92 MHz? HOT 2
- TX pin is initialized high after startup HOT 1
- e07-m1101d compatibility HOT 3
- Raspberry Pi Pico W Compatibility HOT 1
- Open/Close Shutter Duration - How initialized? HOT 1
- Test on RPI4 HOT 6
- Shutter Is Moving Property?
- Not able to start PIGPIO (again, but on RPi5) HOT 2
- Depreciation and upper-/lowercase issue w/ RTS addresses in [ShutterRollingCodes] section
- Trying to program shutter - nothing happens.. HOT 3
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.