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 2f5c36a6..00000000 --- a/bsp/board/domo/ovl/usr/local/share/domo/Timers.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "timers" : [ - { - "id": 1, - "active":false, - "device_id": "Sprinklers/7", - "start_time": "17:30", - "recurrence": 1, - "duration": 30, - "action": "start" - }, - { - "id": 2, - "active": true, - "device_id": "Sprinklers/7", - "start_time": "21:48", - "recurrence": 0, - "duration": 1, - "action": "stop" - } - ] -} diff --git a/bsp/board/domo/ovl/usr/local/share/domo/Devices.json b/bsp/board/domo/ovl/usr/local/share/domo/devices.json similarity index 91% rename from bsp/board/domo/ovl/usr/local/share/domo/Devices.json rename to bsp/board/domo/ovl/usr/local/share/domo/devices.json index 7532af4a..542ffa72 100644 --- a/bsp/board/domo/ovl/usr/local/share/domo/Devices.json +++ b/bsp/board/domo/ovl/usr/local/share/domo/devices.json @@ -1,7 +1,7 @@ { - "Lights" : { + "lights" : { "speach_name": "lumière", - "data": [ + "devices": [ { "id": 1, "name": "Bureau JB", @@ -31,9 +31,9 @@ } ] }, - "Shutters" : { + "shutters" : { "speach_name": "volet", - "data": [ + "devices": [ { "id": 1, "name": "Chambre de JB", @@ -46,9 +46,9 @@ } ] }, - "Sprinklers" : { + "sprinklers" : { "speach_name": "station", - "data": [ + "devices": [ { "id": 7, "name": "Zone A", diff --git a/bsp/board/domo/ovl/usr/local/share/domo/timers.json b/bsp/board/domo/ovl/usr/local/share/domo/timers.json new file mode 100644 index 00000000..deceb0c8 --- /dev/null +++ b/bsp/board/domo/ovl/usr/local/share/domo/timers.json @@ -0,0 +1,33 @@ +{ + "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 + } + } + ] +}