[opensprinkler] Fix Program names and add new features for firmware 2.2.0 (#15410)

* Fix Program names are not parsed correctly in firmware 2.2.0

---------

Signed-off-by: Matthew Skinner <matt@pcmus.com>
This commit is contained in:
Matthew Skinner
2023-12-10 20:25:57 +11:00
committed by GitHub
parent d791e7900a
commit a950f19e60
13 changed files with 269 additions and 14 deletions

View File

@@ -61,22 +61,25 @@ NOTE: Some channels will only show up if the hardware has the required sensor an
| Channel Type ID | Item Type | | Description |
|-----------------|------------------------|----|------------------------------------------------------------------------------------|
| rainsensor | Switch | RO | This channel indicates whether rain is detected by the device or not. |
| sensor2 | Switch | RO | This channel is for the second sensor (if your hardware supports it). |
| cloudConnected | Switch | RO | If the device is fully connected to the OpenSprinkler cloud this will show as 'ON'.|
| currentDraw | Number:ElectricCurrent | RO | Shows the current draw of the device. |
| waterlevel | Number:Dimensionless | RO | This channel shows the current water level in percent (0-250%). The water level is |
| | | | calculated based on the weather and influences the duration of the water programs. |
| signalStrength | Number | RO | Shows how strong the WiFi Signal is. |
| enablePrograms | Switch | RW | Allow programs to auto run. When OFF, manually started stations will still work. |
| flowSensorCount | Number:Dimensionless | RO | Shows the number of pulses the optional water flow sensor has reported. |
| programs | String | RW | Displays a list of the programs that are setup in your OpenSprinkler and when |
| | | | selected will start that program for you. |
| stations | String | RW | Display a list of stations that can be run when selected to the length of time set |
| | | | in the `nextDuration` channel. |
| nextDuration | Number:Time | RW | The time the station will open for when any stations are selected from the |
| | | | `stations` channel. Defaults to 30 minutes if not set. |
| resetStations | Switch | RW | The ON command will stop all stations immediately, including those waiting to run. |
| enablePrograms | Switch | RW | Allow programs to auto run. When OFF, manually started stations will still work. |
| pausePrograms | Number:Time | RW | Sets/Shows the amount of time that programs will be paused for. |
| programs | String | RW | Displays a list of the programs that are setup in your OpenSprinkler and when |
| | | | selected will start that program for you. |
| rainDelay | Number:Time | RW | Sets/Shows the amount of time (hours) that rain has caused programs to be delayed. |
| rainsensor | Switch | RO | This channel indicates whether rain is detected by the device or not. |
| resetStations | Switch | RW | The ON command will stop all stations immediately, including those waiting to run. |
| sensor2 | Switch | RO | This channel is for the second sensor (if your hardware supports it). |
| signalStrength | Number | RO | Shows how strong the WiFi Signal is. |
| stations | String | RW | Display a list of stations that can be run when selected to the length of time set |
| | | | in the `nextDuration` channel. |
| waterlevel | Number:Dimensionless | RO | This channel shows the current water level in percent (0-250%). The water level is |
| | | | calculated based on the weather and influences the duration of the water programs. |
| queuedZones | Number | RO | A count of how many zones are running and also waiting to run in the queue. |
## Textual Example