Adding special set-up keypresses and a simple guided UI#131
Merged
Nickduino merged 3 commits intoNickduino:masterfrom Oct 28, 2021
Merged
Adding special set-up keypresses and a simple guided UI#131Nickduino merged 3 commits intoNickduino:masterfrom
Nickduino merged 3 commits intoNickduino:masterfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This feature allows you to run through the first-time installation steps (e.g. after a factory reset) as well as the configuration steps to update the limits and "My" position of the shutters. There is now no need for a genuine Somfy remote to set up the blinds at all.
I added a command to allow a specific chord of buttons to be pressed for a short or long period. The "short" period is very short, as limit adjustment needs to be very precise. This means you might have to hit the buttons a few times when doing the setup, unless your transmitter is very close to the shutter. (The shutters run in a low-sensitivity radio mode during the Initial installation stages)
In the Web UI, rather than make the user choose what chords they might want to try pressing, I added some simple step-by-step guides to each of the shutter's configuration modes. This is hidden away in a configuration dialog, so it shouldn't affect the existing UI usage of the page.
I tried to follow the existing code patterns and formatting style, but python isn't a language I'm all that familiar with so I may have done some things in a way that isn't sensible.