summaryrefslogtreecommitdiffstats
path: root/conf.d/project/etc/sig-doors.json
diff options
context:
space:
mode:
authorForlot Romain [IoT.bzh] <claneys@iot.bzh>2017-09-04 23:37:22 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2017-12-14 10:59:55 +0100
commit19bc13783a7451c81848ea132614a8df11c7740a (patch)
treeb61995b1af0914559f6de6461bda3dd76f2e724c /conf.d/project/etc/sig-doors.json
parent29168eb150eae139685c40c0bec22a5b7485cb66 (diff)
Initial commit
Change-Id: I2bb38bffdd92602659670901b8442201b7c56214 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'conf.d/project/etc/sig-doors.json')
-rw-r--r--conf.d/project/etc/sig-doors.json85
1 files changed, 85 insertions, 0 deletions
diff --git a/conf.d/project/etc/sig-doors.json b/conf.d/project/etc/sig-doors.json
new file mode 100644
index 0000000..46d37cc
--- /dev/null
+++ b/conf.d/project/etc/sig-doors.json
@@ -0,0 +1,85 @@
+{
+ "signals": [
+ {
+ "label": "low-can/messages.windows.front_left.open",
+ "actions": {
+ "label": "Door open event action",
+ "lua": "_Door_opened",
+ "args": {
+ "evtname": "messages.windows.front_left.open"
+ }
+ }
+ },
+ {
+ "label": "low-can/messages.windows.front_right.open",
+ "actions": {
+ "label": "Door open event action",
+ "lua": "_Door_opened",
+ "args": {
+ "evtname": "messages.windows.front_right.open"
+ }
+ }
+ },
+ {
+ "label": "low-can/messages.windows.rear_left.open",
+ "actions": {
+ "label": "Door open event action",
+ "lua": "_Door_opened",
+ "args": {
+ "evtname": "messages.windows.rear_left.open"
+ }
+ }
+ },
+ {
+ "label": "low-can/messages.windows.rear_right.open",
+ "actions": {
+ "label": "Door open event action",
+ "lua": "_Door_opened",
+ "args": {
+ "evtname": "messages.windows.rear_right.open"
+ }
+ }
+ }],
+ "virtual_signals": [
+ {
+ "label": "sig-orc/doors.open",
+ "depends_on": [
+ "front_left_doors",
+ "front_left_windows",
+ "front_right_doors",
+ "front_right_windows",
+ "rear_left_doors",
+ "rear_left_windows",
+ "rear_right_doors",
+ "rear_right_windows"
+ ],
+ "actions": {
+ "label": "A door is open",
+ "lua": "_Door_opened",
+ "args": {
+ "evtname": "doors.open"
+ }
+ }
+ },
+ {
+ "label": "sig-orc/doors.average",
+ "depends_on": [
+ "front_left_doors",
+ "front_left_windows",
+ "front_right_doors",
+ "front_right_windows",
+ "rear_left_doors",
+ "rear_left_windows",
+ "rear_right_doors",
+ "rear_right_windows"
+ ],
+ "actions": {
+ "label": "A door is open",
+ "lua": "_Door_average",
+ "args": {
+ "evtname": "door.average",
+ "time": 120
+ }
+ }
+ }]
+} \ No newline at end of file