aboutsummaryrefslogtreecommitdiffstats
path: root/conf.d/project/etc/sig-doors.json
diff options
context:
space:
mode:
Diffstat (limited to 'conf.d/project/etc/sig-doors.json')
-rw-r--r--conf.d/project/etc/sig-doors.json121
1 files changed, 49 insertions, 72 deletions
diff --git a/conf.d/project/etc/sig-doors.json b/conf.d/project/etc/sig-doors.json
index e93745e..bc26296 100644
--- a/conf.d/project/etc/sig-doors.json
+++ b/conf.d/project/etc/sig-doors.json
@@ -1,83 +1,60 @@
{
"signals": [
{
- "id": "rear_left_windows",
- "source": "low-can/messages.windows.rear_left.open",
- "class": "state",
- "onReceived": {
- "function": "_Door_opened",
- "args": {
- "evtname": "messages.windows.rear_left.open"
- }
- }
+ "id": "rear_left_window",
+ "source": "low-can/messages.windows.rear_left.open"
},
{
"id": "rear_left_door",
- "source": "low-can/messages.doors.rear_left.open",
- "class": "state",
- "onReceived": {
- "function": "_Door_opened",
- "args": {
- "evtname": "messages.doors.rear_left.open"
- }
- }
+ "source": "low-can/messages.doors.rear_left.open"
},
{
- "id": "rear_left",
- "source": [
- "rear_left_windows",
- "rear_left_doors"
- ],
- "class": "state",
- "onReceived": {
- "function": "_Door_opened",
- "args": {
- "ojoi": "pok"
- }
- }
+ "id": "rear_right_window",
+ "source": "low-can/messages.windows.rear_right.open"
+ },
+ {
+ "id": "rear_right_door",
+ "source": "low-can/messages.doors.rear_right.open"
+ },
+ {
+ "id": "front_left_window",
+ "source": "low-can/messages.windows.front_left.open"
+ },
+ {
+ "id": "front_left_door",
+ "source": "low-can/messages.doors.front_left.open"
},
{
"id": "front_right_window",
- "source": "low-can/messages.windows.front_right.open",
- "class": "state",
- "onReceived": {
- "function": "_Door_opened",
- "args": {
- "evtname": "messages.windows.front_right.open"
- }
- }
+ "source": "low-can/messages.windows.front_right.open"
},
{
- "id": "rear_right_door",
- "source": "low-can/messages.doors.rear_right.open",
- "class": "state",
- "onReceived": {
- "function": "_Door_opened",
- "args": {
- "evtname": "messages.doors.rear_right.open"
- }
- }
+ "id": "front_right_door",
+ "source": "low-can/messages.doors.front_right.open"
},
{
- "id": "rear_right_window",
- "source": "low-can/messages.windows.rear_right.open",
- "class": "state",
+ "id": "rear_left",
+ "source": [
+ "rear_left_window",
+ "rear_left_door"
+ ],
"onReceived": {
- "function": "_Door_opened",
+ "plugin": "Door handle",
+ "function": "isOpen",
"args": {
- "evtname": "messages.windows.rear_right.open"
+ "ojoi": "pok"
}
}
},
{
"id": "rear_right",
"source": [
- "rear_right_doors",
- "rear_right_windows"
+ "rear_right_door",
+ "rear_right_window"
],
- "class": "state",
"onReceived": {
- "function": "_Complete_Door",
+ "plugin": "Door handle",
+ "function": "isOpen",
"args": {}
}
},
@@ -85,41 +62,41 @@
"id": "front_left",
"source": [
"front_left_door",
- "front_left_windows"
+ "front_left_window"
],
- "class": "state",
"onReceived": {
- "function": "_Complete_Door",
+ "plugin": "Door handle",
+ "function": "isOpen",
"args": {}
}
},
{
"id": "front_right",
"source": [
- "front_right_doors",
- "front_right_windows"
+ "front_right_door",
+ "front_right_window"
],
- "class": "state",
"onReceived": {
- "function": "_Complete_Door",
+ "plugin": "Door handle",
+ "function": "isOpen",
"args": {}
}
},
{
"id": "all_doors",
"source": [
- "front_left_doors",
- "front_left_windows",
- "front_right_doors",
- "front_right_windows",
- "rear_left_doors",
- "rear_left_windows",
- "rear_right_doors",
- "rear_right_windows"
+ "front_left_door",
+ "front_left_window",
+ "front_right_door",
+ "front_right_window",
+ "rear_left_door",
+ "rear_left_window",
+ "rear_right_door",
+ "rear_right_window"
],
- "class": "state",
"onReceived": {
- "function": "_Door_opened",
+ "plugin": "Door handle",
+ "function": "isOpen",
"args": {
"evtname": "doors.open"
}