Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Andersbakken/1f6a881dd58a71446bd84b47e9cdb38b to your computer and use it in GitHub Desktop.
Save Andersbakken/1f6a881dd58a71446bd84b47e9cdb38b to your computer and use it in GitHub Desktop.
[
{
"name": "corner follows ceiling on",
"events": [
[
{
"type": "DeviceEvent",
"deviceUuid": "zwave:3",
"valueName": "level",
"eventType": "range",
"value": [
80,
99
]
}
]
],
"eventsTrigger": [
[
true
]
],
"actions": [
{
"type": "DeviceAction",
"deviceUuid": "zwave:2",
"valueName": "value",
"value": "on"
}
]
},
{
"name": "corner follows ceiling off",
"events": [
[
{
"type": "DeviceEvent",
"deviceUuid": "zwave:3",
"valueName": "level",
"eventType": "is",
"value": "off"
}
]
],
"eventsTrigger": [
[
true
]
],
"actions": [
{
"type": "DeviceAction",
"deviceUuid": "zwave:2",
"valueName": "value",
"value": "off"
}
]
},
{
"name": "night time",
"events": [
[
{
"type": "TimerEventschedule",
"name": "nightly",
"date": "0 0 * * *"
}
]
],
"eventsTrigger": [
[
true
]
],
"actions": [
{
"type": "DeviceAction",
"deviceUuid": "zwave:3",
"valueName": "level",
"value": "off"
},
{
"type": "DeviceAction",
"deviceUuid": "zwave:8",
"valueName": "value",
"value": "off"
},
{
"type": "DeviceAction",
"deviceUuid": "zwave:2",
"valueName": "value",
"value": "off"
},
{
"type": "DeviceAction",
"deviceUuid": "zwave:9",
"valueName": "value",
"value": "off"
}
]
},
{
"name": "Helene's room off night",
"events": [
[
{
"type": "DeviceEvent",
"deviceUuid": "zwave:6",
"valueName": "level",
"eventType": "range",
"value": [
"off",
95
]
},
{
"type": "TimeRangeEvent",
"start": "sunset",
"end": "sunrise"
}
]
],
"eventsTrigger": [
[
true,
true
]
],
"actions": [
{
"type": "DeviceAction",
"deviceUuid": "zwave:10",
"valueName": "value",
"value": "off"
},
{
"type": "DeviceAction",
"deviceUuid": "zwave:11",
"valueName": "value",
"value": "off"
}
]
},
{
"name": "Helene's room on night",
"events": [
[
{
"type": "DeviceEvent",
"deviceUuid": "zwave:6",
"valueName": "level",
"eventType": "range",
"value": [
95,
99
]
},
{
"type": "TimeRangeEvent",
"start": "sunset",
"end": "sunrise"
}
]
],
"eventsTrigger": [
[
true,
true
]
],
"actions": [
{
"type": "DeviceAction",
"deviceUuid": "zwave:10",
"valueName": "value",
"value": "on"
},
{
"type": "DeviceAction",
"deviceUuid": "zwave:11",
"valueName": "value",
"value": "on"
}
]
},
{
"name": "Helene's room off day",
"events": [
[
{
"type": "DeviceEvent",
"deviceUuid": "zwave:6",
"valueName": "level",
"eventType": "range",
"value": [
"off",
20
]
},
{
"type": "TimeRangeEvent",
"start": "sunrise",
"end": "sunset"
}
]
],
"eventsTrigger": [
[
true,
true
]
],
"actions": [
{
"type": "DeviceAction",
"deviceUuid": "zwave:10",
"valueName": "value",
"value": "off"
},
{
"type": "DeviceAction",
"deviceUuid": "zwave:11",
"valueName": "value",
"value": "off"
}
]
},
{
"name": "Helene's room on day",
"events": [
[
{
"type": "DeviceEvent",
"deviceUuid": "zwave:6",
"valueName": "level",
"eventType": "range",
"value": [
21,
99
]
},
{
"type": "TimeRangeEvent",
"start": "sunrise",
"end": "sunset"
}
]
],
"eventsTrigger": [
[
true,
true
]
],
"actions": [
{
"type": "DeviceAction",
"deviceUuid": "zwave:10",
"valueName": "value",
"value": "on"
},
{
"type": "DeviceAction",
"deviceUuid": "zwave:11",
"valueName": "value",
"value": "on"
}
]
},
{
"name": "Turn off hallway lights",
"events": [
[
{
"type": "TimerEventtimeout",
"name": "Hallway lights timer"
}
]
],
"eventsTrigger": [
[
true
]
],
"actions": [
{
"type": "DeviceAction",
"deviceUuid": "zwave:8",
"valueName": "value",
"value": "off"
}
]
},
{
"name": "Turn on hallway lights",
"events": [
[
{
"type": "DeviceEvent",
"deviceUuid": "zwave:12",
"valueName": "Motion",
"eventType": "is",
"value": true
},
{
"type": "DeviceEvent",
"deviceUuid": "zwave:8",
"valueName": "value",
"eventType": "is",
"value": "off"
}
]
],
"eventsTrigger": [
[
true,
false
]
],
"actions": [
{
"type": "DeviceAction",
"deviceUuid": "zwave:8",
"valueName": "value",
"value": "on"
},
{
"type": "TimerActiontimeout",
"name": "Hallway lights timer",
"action": "start",
"arg": "300000"
}
]
},
{
"name": "Stop hallway light timer",
"events": [
[
{
"type": "DeviceEvent",
"deviceUuid": "zwave:8",
"valueName": "value",
"eventType": "is",
"value": "off"
}
]
],
"eventsTrigger": [
[
true
]
],
"actions": [
{
"type": "TimerActiontimeout",
"name": "Hallway lights timer",
"action": "stop"
}
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment