-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
[P043] Add support for %sunrise% and %sunset% based time-values #4903
[P043] Add support for %sunrise% and %sunset% based time-values #4903
Conversation
…nput, code optimization
Ok.. i´ll add this here again also to clarify what i mean: |
I don't yet see what you are trying to say here; the 'old functionality' is still in place, I only moved the Value input to the same line in the UI as the Day,Time input to make it more clear where it is related to, similar to the ""/No/Yes combobox, IMHO making the UI more consistent. 🤔 |
but not when you have no gpio selected...and right now no gpio of a port extender is selectable (would also be difficult to implement i guess) so either i sacrifice an internal gpio or i have to live with the "new" layout Edit: and yes the "new" layout looks consistent but does not behave the same which can lead to:
|
But don´t get me wrong. I am totally happy with your changes and really appreciate your work! I don´t mind if you don´t want to add this. Sacrificing an GPIO is most of the time an option to get the ON/OFF behavior. |
The only thing I changed in this area is the UI, not the behavior. Entering wrong values has been possible for a long time, that wasn't 'introduced' by me 😅 I assume the author of this code intended to use message numbers or such, as these can be transferred via a Controller, when the Number Output Values is (at least) set to Dual (Triple and Quad don't matter, as the 3rd and 4th value are never set). So for backward compatibility, we'll have to keep the regular Value inputs.
💡 That's the missing remark, I didn't, until now, understand you wanted the On/Off behavior only, without a GPIO to switch On or Off, duh 🤦 |
I am also specialized in describing problems and making explanations in a way that nobody understands. 🤪 |
Do you mean you also want to be able to specify what GPIO you like to switch? Not limited to onboard GPIOs? |
I personally don’t need this option and i don’t see how it would be accomplished other than adding a extra textfield where you enter a command like |
short feedback about set and get then i have to leave:
|
Ahh i see.. |
|
Nope, only the actual data is made available in the |
That should be fixed now, a previous build had that, but it should have been 0/1 when in 'simple' mode. |
Nope... just tried again and in 'simple' mode (and no gpio is selected) still only value 2 changes and value 1 shows the timeslot...
|
This has been solved by a factory reset |
Btw: if you wonder why i didn´t directly made a PR instead of sending a picture of the changes... I simply don't know how to contribute to a already existing PR... 🤷♂️ |
Not sure if you can (due to permissions), but in principle you could checkout the branch of this PR. If you then make a commit to it and push it, you will probably end up with an error due to permissions. So the correct way would be for you to create a new branch on top of the last commit of Ton's branch of this PR. |
I'll fix it, later today 😊 |
@TD-er as always, thank you very much for your extensive explanation! |
…feature/P043-support-sunrise-and-sunset-in-settings
…me libs to lib_ignore for `custom_IR` builds
Resolves #4901
Resolves this forum request
Features:
%sunrise%
and%sunset%
instead of explicit HH:MM format, including the possible offsets like+1h
,-20m
and+13200s
(220 minutes...)LIMIT_BUILD_SIZE
builds a list of a separate Day selector (All, Sun,Mon-Fri,Sat, Wrk = Workday, Wkd = Weekend) and predefined Time configurations with00:00
,%sunrise%
and%sunset%
that can be selected and then editedconfig,task,<taskName>,SetTime,<timeIndex>,<timeString>[,<value>]
<timeIndex>
is in range 1..Nr. of Day,Time fields<timeString>
can be quoted like"All,12:34"
or unquoted<value>
is optional, won't be updated if not provided[<taskName>#GetTimeX]
and[<taskName>#GetValueX]
whereX
is the Day,Time line in the configuration, limited by the configured 'Nr. of Day,Time fields' setting.TODO:
config
command andget
values by @chromoxdor (Forum requester)