1
0
mirror of https://github.com/pommi/python-itho-wpu.git synced 2025-07-06 00:35:43 +02:00

feat: add support for writing manual operations

Initiating and finishing a manual operation works a bit strange. First
of all the Maximum Manual Operation Time is controlled by a setting
(--id 4) and defaults to 0 (infinite). And instead of waiting for the
timer to expire (which you have to do when its set to 0) you can finish
a manual operation by passing "--no-check".

Note: For some reason no response is given when a manual operation is
written to. That's why execute_action() returns succesfully (with None)
when its executing the "setmanual" action and the response queue size is 0.
This commit is contained in:
2023-09-04 19:46:00 +02:00
parent 63f06400ef
commit a11df838f8
3 changed files with 116 additions and 8 deletions

View File

@ -138,6 +138,46 @@ See the [pislave](https://github.com/ootjersb/pislave#wiring) project
0. Buitentemp (°C): 10.0
```
* Initiate a manual operation
```
# ./itho-wpu.py --action setmanual --id 0 --value 29.00
Current manual operation:
0. Buitentemp (°C): 10.0
Manual `0` will be changed to `29.0`? [y/N] y
Updating manual operation 0 to `29.0`
Are you really sure? (Type uppercase yes): YES
```
* Finish a manual operation
```
# ./itho-wpu.py --action setmanual --id 0 --value 29.00 --no-check
Current manual operation:
0. Buitentemp (°C): 29.0
Manual `0` will be changed to `29.0`? [y/N] y
Updating manual operation 0 to `29.0`
Are you really sure? (Type uppercase yes): YES
```
* Reset all errors:
```
# ./itho-wpu.py --action setmanual --id 37 --value 1
Current manual operation:
37. Reset Alle Fouten: 0
Manual `37` will be changed to `1`? [y/N] y
Updating manual operation 37 to `1`
Are you really sure? (Type uppercase yes): YES
```
* Reset timer:
```
# ./itho-wpu.py --action setmanual --id 38 --value 1
Current manual operation:
38. Reset Timer: 0
Manual `38` will be changed to `1`? [y/N] y
Updating manual operation 38 to `1`
Are you really sure? (Type uppercase yes): YES
```
# Exporting measurements
## InfluxDB