Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes: shutter id case & webui word wrapping #159

Closed
wants to merge 6 commits into from

Conversation

malys
Copy link

@malys malys commented Jun 16, 2023

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 and others added 3 commits June 3, 2023 15:44
@malys
Copy link
Author

malys commented Jan 16, 2024

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

@Nickduino
Copy link
Owner

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

Why would you need to reconfigure your shutters?

@malys
Copy link
Author

malys commented Jan 16, 2024

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

@Nickduino
Copy link
Owner

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.

@malys
Copy link
Author

malys commented Jan 17, 2024

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.

@Nickduino
Copy link
Owner

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.

@malys malys closed this Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants