Nickduino / Pi-Somfy

A script to open and close your Somfy (and SIMU) blinds with a Raspberry Pi and an RF emitter.
Other
434 stars 108 forks source link

How to emulate the Setup procedure #130

Closed MarkGodwin closed 2 years ago

MarkGodwin commented 2 years ago

I've rather foolishly tried to save money by buying only one remote for my 6 blinds. My soldering job was successful on the second attempt (thanks to the magic of me buying two of them ;) and now I can control all the blinds with the Pi-Somfy!

I'm super happy with this - Thanks so much for publishing this project, and giving us a cost effective and, dare I say it, fun solution to centralised blind control.

However, I can only make them go up, down and stop together, because I can only set up the blind limits with the one remote I have, and then copy the whole set of blinds into Pi-Somfy. This is made really difficult by the fact that the battery powered blinds don't appear to have a way to turn them off, so they all want to be re-programmed together by the one remote.

Therefore, I want to be able to go through the whole setup process after a factory reset of each blind with Pi-Somfy, so I'm not forced to bond all of the blinds into the same group.

The setup procedure requires steps like...

How can I execute these commands from Pi-Somfy (either via the UI, command-line or Mqtt)?

Am I missing something obvious?

I assume pressing and holding buttons is some sort of special command, rather than just spamming out lots of button presses consecutively?

MarkGodwin commented 2 years ago

It strikes me that the button definitions are a bitfield:

    buttonStop = 0x1
    buttonUp = 0x2
    buttonDown = 0x4
    buttonProg = 0x8

Could that be the secret to it? Just OR together the bits of the buttons I want to press simultaneously?

Nickduino commented 2 years ago

Thanks for the kind words

How can I execute these commands from Pi-Somfy (either via the UI, command-line or Mqtt)?

Am I missing something obvious?

I assume pressing and holding buttons is some sort of special command, rather than just spamming out lots of button presses consecutively?

I have no idea. On my older blinds, the prog button is enough

Have you checked the Pushstack blog post we mention in the documentation?

MarkGodwin commented 2 years ago

Fantastic, the pushtack article confirmed the button vales act like a bit field, as I hoped! I will experiment this weekend adding the features to the command line and maybe the web interface, and report back.

Would you be interested in accepting a PR if I get it working?

Nickduino commented 2 years ago

Would you be interested in accepting a PR if I get it working?

Absolutely

MarkGodwin commented 2 years ago

Happy to report I was successful in setting up my blinds from a factory reset using just the Pi-Somfy. I've put in a PR :)

Nickduino commented 2 years ago

Happy to report I was successful in setting up my blinds from a factory reset using just the Pi-Somfy. I've put in a PR :)

Merged. Thanks!