Skip to content

Fix case-mangling issue#156

Closed
gbsallery wants to merge 1 commit intoNickduino:masterfrom
gbsallery:master
Closed

Fix case-mangling issue#156
gbsallery wants to merge 1 commit intoNickduino:masterfrom
gbsallery:master

Conversation

@gbsallery
Copy link
Copy Markdown

@gbsallery gbsallery commented May 22, 2023

As with some others, I'm still getting occasional issues whereby the rolling code for a shutter gets written to a lowercase copy of the ID. Obviously, this only happens when you have more than 10 blinds, causing the IDs (which are in hex) to contain alphabetical characters rather than just numbers.

As a crude fix, without doing a full root-cause analysis (as Python is not really my bag), this PR forces the code to be uppercased before writing. This should fix the issue, if not the confusion (so long as your shutter IDs are in uppercase in the first place).

@malys
Copy link
Copy Markdown

malys commented Jun 16, 2023

See @gbsallery #159, To be consistent I force it to lower case to respect the initial format. For me, It works fine.

@lepirlouit
Copy link
Copy Markdown
Contributor

#166

MichaelB2018 added a commit to MichaelB2018/Pi-Somfy that referenced this pull request Mar 26, 2026
- mymqtt.py: Support both paho-mqtt 1.x and 2.x by detecting
  CallbackAPIVersion (addresses PR Nickduino#164 by @digitalgravy)
- myconfig.py: Uppercase shutterId when writing rolling codes to prevent
  duplicate config entries with hex IDs (addresses PR Nickduino#156 by @gbsallery
  and PR Nickduino#159 by @malys)
- README.md: Credit community contributors
- Add .github/agents/pi-somfy.agent.md for development workflow
@MichaelB2018
Copy link
Copy Markdown
Collaborator

Superseded by #170. All changes from this PR have been incorporated into the modernization PR.

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.

4 participants