From 80b56f3bb39ef3dcaf095b8a8d0afe6c78079b6f Mon Sep 17 00:00:00 2001 From: jbnadal Date: Wed, 11 Apr 2018 15:45:30 +0200 Subject: [PATCH] rename timer to sequences --- .../ovl/usr/local/share/domo/sequences.json | 84 +++++++++++++++++++ .../domo/ovl/usr/local/share/domo/timers.json | 33 -------- 2 files changed, 84 insertions(+), 33 deletions(-) create mode 100644 bsp/board/domo/ovl/usr/local/share/domo/sequences.json delete mode 100644 bsp/board/domo/ovl/usr/local/share/domo/timers.json diff --git a/bsp/board/domo/ovl/usr/local/share/domo/sequences.json b/bsp/board/domo/ovl/usr/local/share/domo/sequences.json new file mode 100644 index 00000000..0e7c1740 --- /dev/null +++ b/bsp/board/domo/ovl/usr/local/share/domo/sequences.json @@ -0,0 +1,84 @@ +{ + "sequences": [ + { + "id": 1, + "name": "arrosage", + "timer": { + "active": true, + "start_time": "17:30", + "recurrence": 1 + }, + "sequence": [ + { + "device_id": "sprinkler/7", + "state": true, + "duration": 2 + }, + { + "device_id": "sprinkler/8", + "state": true, + "duration": 1 + } + ] + }, + { + "id": 2, + "name": "sapin", + "timer": { + "active": false, + "start_time": "21:48", + "recurrence": 0 + }, + "sequence": [ + { + "device_id": "light/7", + "state": true, + "duration": 2 + } + ] + }, + { + "id": 2, + "name": "volet", + "timer": { + "active": false, + "start_time": "09:00", + "recurrence": 0 + }, + "sequence": [ + [ + { + "device_id": "shutters/1", + "state": true + }, + { + "device_id": "shutters/2", + "state": true + } + ], + { + "duration": 60 + }, + [ + { + "device_id": "shutters/1", + "state": false + }, + { + "device_id": "shutters/2", + "state": false + } + ], + { + "device_id": "shutters/1", + "state": true, + "duration": 60 + }, + { + "device_id": "shutters/1", + "state": false + } + ] + } + ] +} \ No newline at end of file diff --git a/bsp/board/domo/ovl/usr/local/share/domo/timers.json b/bsp/board/domo/ovl/usr/local/share/domo/timers.json deleted file mode 100644 index deceb0c8..00000000 --- a/bsp/board/domo/ovl/usr/local/share/domo/timers.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "timers" : [ - { - "id": 1, - "active":true, - "start_time": "17:30", - "recurrence": 1, - "type": "sprinker", - "sequence": [ - { - "device_id": 7, - "duration": 2 - }, - { - "device_id": 8, - "duration": 1 - } - ] - }, - { - "id": 2, - "active": false, - "start_time": "21:48", - "recurrence": 0, - "type": "switch", - "device": { - "device_id": "light/7", - "switch": true, - "duration": 1 - } - } - ] -}