GithubHelp home page GithubHelp logo

Comments (17)

rbswift avatar rbswift commented on August 24, 2024

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.

Nickduino avatar Nickduino commented on August 24, 2024

You're right, sendCommand is called with two repetitions
self.sendCommand(shutterId, self.buttonStop, 2)

from pi-somfy.

rbswift avatar rbswift commented on August 24, 2024

Would it be possible to parameterise this resend value per blind rather than have it hard coded?

from pi-somfy.

MichaelB2018 avatar MichaelB2018 commented on August 24, 2024

Finally got to do this and checked in a fix. See SendRepeat in the configfile. You can define it there.

from pi-somfy.

rbswift avatar rbswift commented on August 24, 2024

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.

rbswift avatar rbswift commented on August 24, 2024

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.

MichaelB2018 avatar MichaelB2018 commented on August 24, 2024

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.

rbswift avatar rbswift commented on August 24, 2024

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.

MichaelB2018 avatar MichaelB2018 commented on August 24, 2024

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.

rbswift avatar rbswift commented on August 24, 2024

Thanks. 1/2 second seems to be working too. I will definitely test and find the best option. Cheers

from pi-somfy.

rbswift avatar rbswift commented on August 24, 2024

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.

MichaelB2018 avatar MichaelB2018 commented on August 24, 2024

thanks for testing. I checked in an enhancement.

from pi-somfy.

MarkGodwin avatar MarkGodwin commented on August 24, 2024

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.

rbswift avatar rbswift commented on August 24, 2024

@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.

Nickduino avatar Nickduino commented on August 24, 2024

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.

rbswift avatar rbswift commented on August 24, 2024

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.

MarkGodwin avatar MarkGodwin commented on August 24, 2024

Yes, commenting it out didn’t cause me any problems either.

from pi-somfy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.