HomeWizard triggers Json output
From TD-er's Wiki
Jump to navigationJump to search
The JSON output for the list of triggers.
{
"status": "ok",
"version": "3.372",
"request": {
"route": "/triggers"
},
"response": [
{
"id": 0,
"type": "device",
"sensorType": "contact",
"sensorId": 5,
"event": 1,
"checkOnStart": "no",
"startTime": "s+15",
"endTime": "r-15",
"presets": [
0,
1,
2,
3
],
"days": [
0,
1,
2,
3,
4,
5,
6
],
"actions": [
{
"id": 0,
"deviceType": "switch",
"deviceId": 4,
"value": "on",
"offTime": 5
}
],
"notification": {
"receivers": [],
"soundId": 0
},
"active": "yes",
"triggered": "no"
},
{
"id": 1,
"type": "device",
"sensorType": "motion",
"sensorId": 7,
"event": 1,
"checkOnStart": "no",
"startTime": "19:00",
"endTime": "20:30",
"presets": [
1,
2,
3
],
"days": [
0,
1,
2,
3,
4,
5,
6
],
"actions": [
{
"id": 0,
"deviceType": "dimmer",
"deviceId": 13,
"value": "11",
"offTime": 15
}
],
"notification": {
"receivers": [],
"soundId": 0
},
"active": "yes",
"triggered": "no"
},
{
"id": 2,
"type": "device",
"sensorType": "contact",
"sensorId": 1,
"event": 0,
"checkOnStart": "no",
"startTime": "00:00",
"endTime": "23:59",
"presets": [
0,
1,
2,
3
],
"days": [
0,
1,
2,
3,
4,
5,
6
],
"actions": [
{
"id": 0,
"deviceType": "switch",
"deviceId": 2,
"value": "off",
"offTime": 0
}
],
"notification": {
"receivers": [],
"soundId": 0
},
"active": "yes",
"triggered": "no"
},
{
"id": 3,
"type": "device",
"sensorType": "motion",
"sensorId": 2,
"event": 1,
"checkOnStart": "no",
"startTime": "s+30",
"endTime": "r-30",
"presets": [
0,
1,
2,
3
],
"days": [
0,
1,
2,
3,
4,
5,
6
],
"actions": [
{
"id": 0,
"deviceType": "switch",
"deviceId": 3,
"value": "on",
"offTime": 5
}
],
"notification": {
"receivers": [],
"soundId": 0
},
"active": "yes",
"triggered": "no"
},
{
"id": 4,
"type": "time",
"time": "s+0",
"presets": [
0,
3
],
"days": [
0,
1,
2,
3,
4,
5,
6
],
"actions": [
{
"id": 0,
"deviceType": "switch",
"deviceId": 16,
"value": "on",
"offTime": 0
},
{
"id": 1,
"deviceType": "switch",
"deviceId": 17,
"value": "on",
"offTime": 0
}
],
"notification": {
"receivers": [],
"soundId": 0
},
"active": "yes"
},
{
"id": 5,
"type": "device",
"sensorType": "contact",
"sensorId": 5,
"event": 1,
"checkOnStart": "no",
"startTime": "s+15",
"endTime": "r-15",
"presets": [
0,
1,
2,
3
],
"days": [
0,
1,
2,
3,
4,
5,
6
],
"actions": [
{
"id": 0,
"deviceType": "switch",
"deviceId": 3,
"value": "on",
"offTime": 5
}
],
"notification": {
"receivers": [],
"soundId": 0
},
"active": "yes",
"triggered": "no"
},
{
"id": 6,
"type": "device",
"sensorType": "contact",
"sensorId": 1,
"event": 0,
"checkOnStart": "no",
"startTime": "00:00",
"endTime": "23:59",
"presets": [
0,
1,
2,
3
],
"days": [
0,
1,
2,
3,
4,
5,
6
],
"actions": [
{
"id": 0,
"deviceType": "switch",
"deviceId": 7,
"value": "off",
"offTime": 0
}
],
"notification": {
"receivers": [],
"soundId": 0
},
"active": "yes",
"triggered": "no"
},
{
"id": 7,
"type": "device",
"sensorType": "doorbell",
"sensorId": 6,
"event": 1,
"checkOnStart": "no",
"startTime": "00:00",
"endTime": "23:59",
"presets": [
0,
1,
2,
3
],
"days": [
0,
1,
2,
3,
4,
5,
6
],
"actions": [],
"notification": {
"receivers": [],
"soundId": 0
},
"active": "yes",
"triggered": "no"
},
{
"id": 8,
"type": "device",
"sensorType": "motion",
"sensorId": 7,
"event": 1,
"checkOnStart": "no",
"startTime": "s+0",
"endTime": "r+0",
"presets": [
0,
1,
2,
3
],
"days": [
0,
1,
2,
3,
4,
5,
6
],
"actions": [
{
"id": 0,
"deviceType": "switch",
"deviceId": 4,
"value": "on",
"offTime": 5
}
],
"notification": {
"receivers": [],
"soundId": 0
},
"active": "yes",
"triggered": "no"
},
{
"id": 9,
"type": "time",
"time": "22:30",
"presets": [
0,
1,
2,
3
],
"days": [
0,
1,
2,
3,
4,
5,
6
],
"actions": [
{
"id": 0,
"deviceType": "switch",
"deviceId": 16,
"value": "off",
"offTime": 0
},
{
"id": 1,
"deviceType": "switch",
"deviceId": 17,
"value": "off",
"offTime": 0
}
],
"notification": {
"receivers": [],
"soundId": 0
},
"active": "yes"
},
{
"id": 20,
"type": "time",
"time": "00:00",
"presets": [
0,
1,
2,
3
],
"days": [
0,
1,
2,
3,
4,
5,
6
],
"actions": [
{
"id": 0,
"deviceType": "switch",
"deviceId": 0,
"value": "off",
"offTime": 0
}
],
"notification": {
"receivers": [],
"soundId": 0
},
"active": "yes"
},
{
"id": 21,
"type": "time",
"time": "r+30",
"presets": [
0,
1,
2,
3
],
"days": [
0,
1,
2,
3,
4,
5,
6
],
"actions": [
{
"id": 0,
"deviceType": "scene",
"deviceId": 1,
"value": "off",
"offTime": 0
}
],
"notification": {
"receivers": [],
"soundId": 0
},
"active": "yes"
},
{
"id": 22,
"type": "time",
"time": "22:00",
"presets": [
0,
1,
2,
3
],
"days": [
0,
1,
2,
3,
4,
5,
6
],
"actions": [
{
"id": 0,
"deviceType": "switch",
"deviceId": 9,
"value": "on",
"offTime": 0
}
],
"notification": {
"receivers": [],
"soundId": 0
},
"active": "yes"
},
{
"id": 23,
"type": "time",
"time": "23:00",
"presets": [
0,
1,
2,
3
],
"days": [
0,
1,
2,
3,
4,
5,
6
],
"actions": [
{
"id": 0,
"deviceType": "switch",
"deviceId": 9,
"value": "off",
"offTime": 0
}
],
"notification": {
"receivers": [],
"soundId": 0
},
"active": "yes"
},
{
"id": 24,
"type": "time",
"time": "20:00",
"presets": [
0,
1,
2,
3
],
"days": [
0,
1,
2,
3,
4,
5,
6
],
"actions": [
{
"id": 0,
"deviceType": "switch",
"deviceId": 10,
"value": "on",
"offTime": 0
}
],
"notification": {
"receivers": [],
"soundId": 0
},
"active": "yes"
},
{
"id": 25,
"type": "time",
"time": "r+60",
"presets": [
0,
1,
2,
3
],
"days": [
0,
1,
2,
3,
4,
5,
6
],
"actions": [
{
"id": 0,
"deviceType": "switch",
"deviceId": 10,
"value": "off",
"offTime": 0
}
],
"notification": {
"receivers": [],
"soundId": 0
},
"active": "yes"
}
]
}