nymea/plugins/deviceplugins/datetime/deviceplugindatetime.json

450 lines
19 KiB
JSON

{
"name": "Time",
"idName": "DateTime",
"id": "c26014c6-87fb-4233-85ed-01d18625018d",
"vendors": [
{
"name": "guh",
"idName": "guh",
"id": "2062d64d-3232-433c-88bc-0d33c0ba2ba6",
"deviceClasses": [
{
"id": "fbf665fb-9aca-423f-a5f2-924e50ebe6ca",
"idName": "today",
"name": "Today",
"deviceIcon": "Time",
"basicTags": [
"Service",
"Time"
],
"createMethods": ["user"],
"paramTypes": [ ],
"stateTypes": [
{
"id": "ab16997c-be29-438e-b588-2507d723d264",
"idName": "timeZone",
"name": "timezone",
"eventTypeName": "timezone changed",
"index": 0,
"type": "QString",
"ruleRelevant": false,
"eventRuleRelevant": false,
"defaultValue": "-"
},
{
"id": "65d2a5ff-bcab-43a8-b043-f88cf01586f4",
"idName": "city",
"name": "city",
"eventTypeName": "city changed",
"index": 1,
"type": "QString",
"ruleRelevant": false,
"eventRuleRelevant": false,
"defaultValue": "-"
},
{
"id": "a534bd8b-6826-4d71-b9f9-df1433964b94",
"idName": "country",
"name": "country",
"eventTypeName": "country changed",
"index": 2,
"type": "QString",
"ruleRelevant": false,
"eventRuleRelevant": false,
"defaultValue": "-"
},
{
"id": "eb5231ea-6a1b-4d7e-a95f-d49e7b25122e",
"idName": "day",
"name": "day",
"eventTypeName": "day changed",
"index": 3,
"type": "int",
"defaultValue": 1,
"eventRuleRelevant": false,
"minValue": 1,
"maxValue": 31
},
{
"id": "fcd8ec96-4488-438a-8b30-58bfe2a7fae2",
"idName": "month",
"name": "month",
"eventTypeName": "month changed",
"index": 4,
"type": "int",
"defaultValue": 1,
"eventRuleRelevant": false,
"minValue": 1,
"maxValue": 12
},
{
"id": "a37acc9c-5cfb-4687-adce-e56beb32586f",
"idName": "monthName",
"name": "month name",
"eventTypeName": "month name changed",
"index": 5,
"ruleRelevant": false,
"eventRuleRelevant": false,
"type": "QString",
"defaultValue": "-"
},
{
"id": "79d4ae9b-ea27-4346-8229-1d90f1ddfc9d",
"idName": "year",
"name": "year",
"eventTypeName": "year changed",
"index": 6,
"eventRuleRelevant": false,
"type": "int",
"defaultValue": "1970"
},
{
"id": "452c0388-7fa1-414e-aeb2-8c7c385824b4",
"idName": "weekday",
"name": "weekday",
"eventTypeName": "weekday changed",
"type": "int",
"index": 7,
"eventRuleRelevant": false,
"defaultValue": 1,
"minValue": 1,
"maxValue": 7
},
{
"id": "f627d052-cee6-4727-b9c6-0e935d41e04a",
"idName": "weekdayName",
"name": "weekday name",
"eventTypeName": "weekday name changed",
"ruleRelevant": false,
"eventRuleRelevant": false,
"index": 8,
"type": "QString",
"defaultValue": "-"
},
{
"id": "4de5b57b-bb1a-4d66-9ce3-22bb280b075d",
"idName": "weekend",
"name": "weekend",
"eventTypeName": "weekend changed",
"index": 9,
"type": "bool",
"eventRuleRelevant": false,
"defaultValue": false
},
{
"id": "44a99419-fbcd-4d8e-9441-897848b8f77c",
"idName": "dusk",
"name": "dusk",
"eventTypeName": "dusk changed",
"index": 10,
"unit": "UnixTime",
"type": "int",
"eventRuleRelevant": false,
"defaultValue": 0
},
{
"id": "3a08824d-285b-412e-a515-9664b491a85c",
"idName": "sunrise",
"name": "sunrise",
"eventTypeName": "sunrise changed",
"index": 11,
"unit": "UnixTime",
"type": "int",
"eventRuleRelevant": false,
"defaultValue": 0
},
{
"id": "d92be29a-929c-4240-91a0-30153850f838",
"idName": "noon",
"name": "noon",
"eventTypeName": "noon changed",
"index": 12,
"unit": "UnixTime",
"type": "int",
"eventRuleRelevant": false,
"defaultValue": 0
},
{
"id": "a5779b11-0499-4a6d-a7bd-8143dcc546b4",
"idName": "dawn",
"name": "dawn",
"eventTypeName": "dawn changed",
"index": 13,
"unit": "UnixTime",
"type": "int",
"eventRuleRelevant": false,
"defaultValue": 0
},
{
"id": "377f04a7-df58-42ad-a234-e9e23bdc2f85",
"idName": "sunset",
"name": "sunset",
"eventTypeName": "sunset changed",
"index": 14,
"unit": "UnixTime",
"type": "int",
"eventRuleRelevant": false,
"defaultValue": 0
}
],
"eventTypes": [
{
"id": "792885f3-f505-42db-8c74-3d0460b575a1",
"idName": "dusk",
"name": "dusk",
"index": 0
},
{
"id": "726acb30-928b-43da-a790-977a821c979e",
"idName": "sunrise",
"name": "sunrise",
"index": 1
},
{
"id": "97ae8dd8-640c-4f9b-8773-aa7abb1d32fa",
"idName": "noon",
"name": "noon",
"index": 2
},
{
"id": "5e3657b0-a459-4837-a632-0b20de4b7349",
"idName": "dawn",
"name": "dawn",
"index": 3
},
{
"id": "f40d6e0f-fda2-475e-a6ae-c3fee03138b9",
"idName": "sunset",
"name": "sunset",
"index": 4
}
]
},
{
"id": "3f3c7ecc-9915-4e4e-95a1-e11f4f9d174d",
"idName": "alarm",
"name": "Alarm",
"deviceIcon": "Time",
"basicTags": [
"Service",
"Actuator",
"Time"
],
"createMethods": ["user"],
"paramTypes": [
{
"id": "b36f1f62-60d7-49dd-926d-836c03563efa",
"idName": "monday",
"name": "monday",
"type": "bool",
"defaultValue": false,
"index": 0
},
{
"id": "6bcbecd9-d3b8-4a63-9a41-e3ee3f4c3bab",
"idName": "tuesday",
"name": "tuesday",
"type": "bool",
"defaultValue": false,
"index": 1
},
{
"id": "66bf302c-a7de-41cd-9e12-415276b82e65",
"idName": "wednesday",
"name": "wednesday",
"type": "bool",
"defaultValue": false,
"index": 2
},
{
"id": "97aa24dc-a741-48db-ad13-7ba14ab71ea1",
"idName": "thursday",
"name": "thursday",
"type": "bool",
"defaultValue": false,
"index": 3
},
{
"id": "8d99b490-9b59-4812-a18d-d43c1259d1b0",
"idName": "friday",
"name": "friday",
"type": "bool",
"defaultValue": false,
"index": 4
},
{
"id": "59cc3316-8de7-4602-9ee2-71559f7b665a",
"idName": "saturday",
"name": "saturday",
"type": "bool",
"defaultValue": false,
"index": 5
},
{
"id": "2d519d8f-4bda-4d30-801f-48fe6c10c540",
"idName": "sunday",
"name": "sunday",
"type": "bool",
"defaultValue": false,
"index": 6
},
{
"id": "3e38649d-f415-400f-bec2-81f374cad1cb",
"idName": "minutes",
"name": "minutes",
"index": 7,
"type": "int",
"unit": "Minutes",
"minValue": 0,
"maxValue": 60,
"defaultValue": 0
},
{
"id": "85c1d50d-509b-4a6a-840f-fc8fdbf46a52",
"idName": "hours",
"name": "hours",
"index": 8,
"type": "int",
"minValue": 0,
"maxValue": 24,
"unit": "Hours",
"defaultValue": 12
},
{
"id": "5c285d83-284b-4ab2-bff8-d9a0ebbecbe4",
"idName": "timeType",
"name": "time type",
"type": "QString",
"index": 9,
"allowedValues": [
"time",
"dusk",
"sunrise",
"sunnoon",
"sunset",
"dawn"
],
"defaultValue": "time"
},
{
"id": "b37ec6bb-9f37-4520-ae34-d788ac2d5056",
"idName": "offset",
"name": "offset",
"index": 10,
"type": "int",
"minValue": -120,
"maxValue": 120,
"unit": "Minutes",
"defaultValue": 0
}
],
"eventTypes": [
{
"id": "5ec9a4af-d5ea-4f68-ab32-f7a3fcd75ccc",
"idName": "alarm",
"index": 0,
"name": "alarm"
}
]
},
{
"id": "805c8948-e663-4ba6-aa67-df7446ed7098",
"idName": "countdown",
"name": "Countdown",
"deviceIcon": "Time",
"basicTags": [
"Service",
"Actuator",
"Time"
],
"primaryActionTypeId": "436e9923-6eff-444e-bde7-a61228a4d748",
"createMethods": ["user"],
"paramTypes": [
{
"id": "7c1d33d8-bcc3-4890-a4be-2c753d9c14be",
"idName": "seconds",
"name": "seconds",
"index": 0,
"type": "int",
"unit": "Seconds",
"minValue": 0,
"maxValue": 60,
"defaultValue": 0
},
{
"id": "733e4174-dc42-4bf1-9a1d-65e785c2e580",
"idName": "minutes",
"name": "minutes",
"index": 1,
"type": "int",
"unit": "Minutes",
"minValue": 0,
"maxValue": 60,
"defaultValue": 0
},
{
"id": "0a54fe54-45a7-4fc5-a8d2-f9b6a92033de",
"idName": "hours",
"name": "hours",
"index": 2,
"type": "int",
"unit": "Hours",
"minValue": 0,
"maxValue": 24,
"defaultValue": 0
},
{
"id": "7b0c11cd-64c5-4cfc-9860-aa9ce7b7b3b5",
"idName": "repeating",
"name": "repeating",
"index": 3,
"type": "bool",
"defaultValue": false
}
],
"eventTypes": [
{
"id": "1db11351-ad67-448e-a784-216741a06a58",
"idName": "timeout",
"name": "timeout",
"index": 0
}
],
"stateTypes": [
{
"id": "b21ccd53-1ebd-41a0-a2a3-662874e79837",
"idName": "running",
"name": "running",
"eventTypeName": "running changed",
"index": 0,
"type": "bool",
"defaultValue": false
}
],
"actionTypes": [
{
"id": "436e9923-6eff-444e-bde7-a61228a4d748",
"idName": "start",
"name": "start",
"index": 0
},
{
"id": "bf4d1def-4159-4254-a76d-fd31aaa84e2d",
"idName": "stop",
"name": "stop",
"index": 1
},
{
"id": "14aad613-b972-411f-93c9-f00bfd254285",
"idName": "restart",
"name": "restart",
"index": 2
}
]
}
]
}
]
}