Implementation Smart Irrigation Control #2
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: FHEM/mod-GardenaSmart#2
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Alle laufenden Ventile gleichzeitig stoppen, oder das letzte noch aktive Ventil stoppen:
Methode: POST
Adresse: https://smart.gardena.com/v1/devices/[DEVICE-ID]/abilities/watering/command?locationId=[LOCATION ID]
Anfrageinhalt: {"name":"close_all_valves","parameters":{}}
Ventil 2 stoppen, wenn mehrere noch laufen:
Methode: PUT
Adresse: https://smart.gardena.com/v1/devices/[DEVICE-ID]/abilities/watering/properties/watering_timer_2?locationId=[LOCATION-ID]
{"properties":{"name":"watering_timer_2","value":{"state":"idle","duration":0,"valve_id":2}}}
Ventil Nr. 2 für 20 Minuten starten (das funktioniert ja schon):
Methode: PUT
Adresse: https://smart.gardena.com/v1/devices/[DEVICE-ID]/abilities/watering/properties/watering_timer_2?locationId=[LOCATION ID]
Anfragehinhalt: {"properties":{"name":"watering_timer_2","value":{"state":"manual","duration":1200,"valve_id":2}}}
Zeitplan für Ventil 1 anhalten bis Samstag, 3.10.20, 0:00 Uhr
Methode: PUT
Adresse: https://smart.gardena.com/v1/devices/[DEVICE-ID]/settings/[UNBEKANNTE ID]?locationId=[LOCATION-ID]
Anfrageinhalt: {"settings":{"name":"schedules_paused_until_1","value":"2020-10-02T22:00:00.000Z","device":"[DEVICE-ID]"}}
Zeitplan für Ventil 3 anhalten bis Sonntag, 4.10.20, 12:00 Uhr
Methode: PUT
Adresse: https://smart.gardena.com/v1/devices/[DEVICE-ID]/settings/[UNBEKANNTE ID]?locationId=[LOCATION-ID]
Anfrageinhalt: {"settings":{"name":"schedules_paused_until_3","value":"2020-10-04T10:00:00.000Z","device":"[DEVICE-ID]"}}
Zeitplan für Ventil 1 aktivieren
Methode: PUT
Adresse: https://smart.gardena.com/v1/devices/[DEVICE-ID]/settings/[UNBEKANNTE ID]?locationId=[LOCATION-ID]
Anfrageinhalt: {"settings":{"name":"schedules_paused_until_1","value":"","device":"[DEVICE-ID]"}}
Die [UNBEKANNTE ID] scheint die Ventil-ID zu sein, denn sie ist je nach Ventil immer gleich - ich weiß nur nicht, wo man die herbekommt. Sie taucht nur bei den Zeitplänen auf.
EDIT:
Die [UNBEKANNTE ID] ist die Zeitplan ID. Findet man in den diversen Antworten vom Server.
name: schedules_paused_until_1
id: [UNBEKANNTE ID]
value: 2020-10-02T22:00:00.000Z
weitere Implementierungento Implementation Smart Irrigation Controlwarte auf infos eines irregation control users
update 8.5
https://forum.fhem.de/index.php/topic,75098.msg1155058.html#msg1155058
.:{ DEBUG OUTPUT for xxxx }:.
name : Wassermann
id : cf9454a6-1461-431d-903f-8db0eb9af747
name: schedules_paused_until_1 value:
id: 837a8154-1045-47fd-b232-fad896e6d69b
name: schedules_paused_until_2 value:
id: 014432ec-502a-4a9e-b5c7-114baad673b6
...
name: schedules_paused_until_6 value:
id: 58b3b385-6011-4c7c-aae0-a7f8208f9945