Pi-Somfy icon indicating copy to clipboard operation
Pi-Somfy copied to clipboard

Fixes: shutter id case & webui word wrapping

Open malys opened this issue 2 years ago • 6 comments

Hi Nick, Thx you for your project. I have detected some problems:

  • the case of shutterid is not consistent: I force it to upper case(HIGH)
  • shutter name in webui is not wrapped (LOW). I have applied a quick fix in css to wrap it Be free to integrate or inspire you from my code.

Bye

malys avatar Jun 16 '23 11:06 malys

Thanks to these fixes, Pi-somfy is very stable at home. It's mandatory to not use le same RTS_ADDRESS to reconfigure your shutters. @Nickduino

malys avatar Jan 16 '24 14:01 malys

It's mandatory to not use le same RTS_ADDRESS to reconfigure your shutters.

Why would you need to reconfigure your shutters?

Nickduino avatar Jan 16 '24 15:01 Nickduino

last week, my configuration file was blank after an electrical shutdown. Case of shutterid was not constant (sometimes upper or lower) and it created unconsistancy in configuration file

malys avatar Jan 16 '24 18:01 malys

Case of shutterid was not constant (sometimes upper or lower) and it created unconsistancy of configuration file

That was an issue but it didn't require you to reconfigure your shutters. Delete the last line (the one that was mistakenly added in lower case), add 1 to the rolling code of the other one.

The blank file is a bigger problem. If power cuts are frequent and you don't have a UPS, maybe you could consider backing up your config file every morning with a script? If you end up with a blank file again, restore your morning backup, add 10 to all the rolling codes and your setup is on its feet within minutes.

Nickduino avatar Jan 16 '24 18:01 Nickduino

Hi @Nickduino ,

I have a daily backup but I dont't know the trick to "add 10 ... ". I will apply this strategy next time. Analysing code, I understood that rolling code is only an incrememental of initial code (bu shutterid) every time that you use it? It could interesting to add your last comment in redme file?

Thanks for your advice and your project.

malys avatar Jan 17 '24 11:01 malys

Analysing code, I understood that rolling code is only an incrememental of initial code

Yes, Somfy made things pretty simple. In your conf file, you see a number in front of every remote address: that's your rolling code. You can't reuse the same code twice.

So if you have a power cut that empties your config while the rolling code was 347 and you restore your backup of the morning that was at 342 as is, your shutters won't move. Increment 342 of a few units to at least 347 and it will work. Of course you don't know it was 347 when it failed, that's why I suggested to increase it by 10. If you use your shutters a lot, you might want to pick a higher number; there is a higher limit but I don't remember it.

Alternatively, you could restore your config file and press the buttons on the GUI : at some point, the rolling code of the remote will catch the rolling code stored in the shutter.

Nickduino avatar Jan 17 '24 11:01 Nickduino