This repository has been archived on 2026-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
powersync-app/nymea-app/ruletemplates/thermostattemplates.json
2019-08-31 04:13:30 +02:00

39 lines
1.2 KiB
JSON

{
"templates": [
{
"description": "Set temperature while I'm home",
"ruleNameTemplate": "Set temperature while I'm home",
"stateEvaluatorTemplate": {
"stateDescriptorTemplate": {
"interfaceName": "presencesensor",
"interfaceState": "isPresent",
"selectionId": 0,
"operator": "ValueOperatorEquals",
"value": true
}
},
"ruleActionTemplates": [
{
"interfaceName": "thermostat",
"interfaceAction": "targetTemperature",
"selectionId": 1
}
],
"ruleExitActionTemplates": [
{
"interfaceName": "thermostat",
"interfaceAction": "targetTemperature",
"selectionId": 1,
"params": [
{
"name": "targetTemperature",
"value": "16"
}
]
}
]
}
]
}