Implementation Smart Irrigation Control #2

Closed
opened 2020-09-30 09:05:43 +02:00 by marko · 2 comments
Owner

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

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
sebastianschwarz was assigned by marko 2021-04-22 18:05:23 +02:00
marko self-assigned this 2021-04-22 18:05:23 +02:00
marko added the
enhancement
label 2021-04-22 18:05:39 +02:00
marko changed title from weitere Implementierungen to Implementation Smart Irrigation Control 2021-04-22 18:15:46 +02:00
Collaborator

warte auf infos eines irregation control users

update 8.5
https://forum.fhem.de/index.php/topic,75098.msg1155058.html#msg1155058

warte auf infos eines irregation control users update 8.5 https://forum.fhem.de/index.php/topic,75098.msg1155058.html#msg1155058
Collaborator

.:{ 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

.:{ 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
marko closed this issue 2021-05-20 22:57:11 +02:00
Sign in to join this conversation.
No Milestone
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: FHEM/mod-GardenaSmart#2
No description provided.