forked from letscontrolit/ESPEasy
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'mega' into feature/P044-led-and-events-without-client
- Loading branch information
Showing
20 changed files
with
504 additions
and
58 deletions.
There are no files selected for viewing
This file contains 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
.. csv-table:: | ||
:header: "Command Syntax", "Extra information" | ||
:widths: 30, 20 | ||
|
||
" | ||
| ``config,task,<taskName>,SetTime,<timeIndex>,<timeString>[,<value>]`` | ||
|
||
Change the configuration of the plugin for the timeIndex provided: | ||
|
||
``config,task``: The Config command to change a setting for a task. Not case-sensitive. | ||
|
||
``<taskName>``: The name of the task to be changed. | ||
|
||
``SetTime``: Literal command-text recognized by the plugin to set the time and optional value. Not case-sensitive. | ||
|
||
``<timeIndex>``: The Day,Time fields *number* as shown in the UI. Has to be within the allowed range 1..Nr. of Day,Time field setting. | ||
|
||
``<timeString>``: A time string as can be entered in the UI, a day (All,Sun, Mon,Tue,Wed,Thu,Fri,Sat,Wrk (workday),Wkd (weekend)) and a time (HH:MM or %Sunrise%/%Sunset%). When configuring for sunrise of sunset, an offset in hours, minutes or seconds can be provided by using ``%sunrise-1h%`` or ``%sunset+30m%`` etc. To avoid the sunrise or sunset time of today to be inserted, instead of ``%`` a ``$`` must be used! If an invalid ``<timeString>`` is provided, ``All,00:00`` will be stored! | ||
|
||
``<value>``: The value to be set. If a GPIO is configured or the setting 'Value input On/Off only' is enabled, a 0 will configure Off and 1 will configure On. When not using a GPIO or the 'Value input On/Off only' setting is unchecked, the value will be stored as provided. When having value 0 set, **no event will be generated** when this time is triggered! | ||
"," | ||
This (generic) command allows to update the configuration. | ||
|
||
.. warning:: Every time this command is used, the configuration is saved to flash storage. When changing this often, the flash memory may wear out quickly! | ||
|
||
|
||
|
||
Example command to use, when using ``%Sunrise%``/``%Sunset%``: | ||
|
||
- ``config,task,Clock,settime,1,Wrk,$sunrise-1h$,1`` | ||
|
||
Will be stored like ``Wrk,%sunrise-1h%`` in Day,Time field 1, and Value set to 1, or ``On`` when having a GPIO configured or **Value input On/Off only** enabled. | ||
" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
.. csv-table:: | ||
:header: "Config value", "Information" | ||
:widths: 20, 30 | ||
|
||
" | ||
``[<taskname>#GetTimeX]`` | ||
"," | ||
Returns the configured Day,Time string for line X (Range: 1..Nr. of Day,Time fields), as shown in the UI. | ||
|
||
Examples: | ||
|
||
- ``All,06:00`` | ||
- ``Wrk,%sunset-1h%`` | ||
" | ||
" | ||
``[<taskname>#GetValueX]`` | ||
"," | ||
Returns the configured value for line X (Range: 1..Nr. of Day,Time fields), with a twist: | ||
|
||
If a GPIO is configured, or the setting 'Value input On/Off only' is checked, a 0 is returned for Off and 1 for On (the stored value is actualy 1 higher) | ||
|
||
When no GPIO is configured and the setting 'Value input On/Off only' is unchecked, the shown value is returned. | ||
" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
.. csv-table:: | ||
:header: "Event", "Example" | ||
:widths: 30, 20 | ||
|
||
" | ||
``clock#Output`` The value provided with this event is the field (1..Nr. of Day,Time fields) that was triggered. | ||
|
||
``clock#Output2`` When the 'Number Output Values' is set to Dual, Triple or Quad, and a GPIO is configured or 'Value input On/Off only' is checked the On (1) or Off (0) value is included as an event argument (``%eventvalue1%``). | ||
|
||
If no GPIO is configured and 'Value input On/Off only' is unchecked, the configured value is provided as ``%eventvalue1%``. | ||
|
||
Events are only generated if the value is not set to 0 or empty. | ||
"," | ||
" |
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.