Last active
February 15, 2021 22:12
-
-
Save nayelyzarazua-bluetrail/8af8023ea414ebecfe8389d412fde451 to your computer and use it in GitHub Desktop.
customThermostatMode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "customThermostatMode", | |
"attributes": { | |
"thermostatMode": { | |
"schema": { | |
"type": "object", | |
"properties": { | |
"value": { | |
"type": "string" | |
} | |
}, | |
"additionalProperties": false, | |
"required": [ | |
"value" | |
] | |
}, | |
"setter": "setThermostatMode", | |
"enumCommands": [] | |
} | |
}, | |
"commands": { | |
"setThermostatMode": { | |
"name": "setThermostatMode", | |
"arguments": [ | |
{ | |
"name": "value", | |
"optional": false, | |
"schema": { | |
"type": "string" | |
} | |
} | |
] | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"detailView": [ | |
{ | |
"label": "Thermostat Mode", | |
"displayType": "list", | |
"list": { | |
"command": { | |
"name": "setThermostatMode", | |
"alternatives": [ | |
{ | |
"key": "auto", | |
"value": "Auto", | |
"type": "active" | |
}, | |
{ | |
"key": "away", | |
"value": "Away", | |
"type": "active" | |
}, | |
{ | |
"key": "custom", | |
"value": "Custom", | |
"type": "active" | |
}, | |
{ | |
"key": "dayoff", | |
"value": "Day Off", | |
"type": "active" | |
}, | |
{ | |
"key": "eco", | |
"value": "Eco", | |
"type": "active" | |
}, | |
{ | |
"key": "off", | |
"value": "Off", | |
"type": "active" | |
} | |
] | |
}, | |
"state": { | |
"value": "thermostatMode.value", | |
"alternatives": [ | |
{ | |
"key": "auto", | |
"value": "Auto", | |
"type": "active" | |
}, | |
{ | |
"key": "away", | |
"value": "Away", | |
"type": "active" | |
}, | |
{ | |
"key": "custom", | |
"value": "Custom", | |
"type": "active" | |
}, | |
{ | |
"key": "dayoff", | |
"value": "Day Off", | |
"type": "active" | |
}, | |
{ | |
"key": "eco", | |
"value": "Eco", | |
"type": "active" | |
}, | |
{ | |
"key": "off", | |
"value": "Off", | |
"type": "active" | |
} | |
] | |
} | |
} | |
} | |
], | |
"automation": { | |
"conditions": [ | |
{ | |
"label": "Thermostat Mode", | |
"displayType": "list", | |
"list": { | |
"alternatives": [ | |
{ | |
"key": "auto", | |
"value": "Auto", | |
"type": "active" | |
}, | |
{ | |
"key": "away", | |
"value": "Away", | |
"type": "active" | |
}, | |
{ | |
"key": "custom", | |
"value": "Custom", | |
"type": "active" | |
}, | |
{ | |
"key": "dayoff", | |
"value": "Day Off", | |
"type": "active" | |
}, | |
{ | |
"key": "eco", | |
"value": "Eco", | |
"type": "active" | |
}, | |
{ | |
"key": "off", | |
"value": "Off", | |
"type": "active" | |
} | |
], | |
"value": "thermostatMode.value" | |
} | |
} | |
], | |
"actions": [ | |
{ | |
"label": "Thermostat Mode", | |
"displayType": "list", | |
"list": { | |
"alternatives": [ | |
{ | |
"key": "auto", | |
"value": "Auto", | |
"type": "active" | |
}, | |
{ | |
"key": "away", | |
"value": "Away", | |
"type": "active" | |
}, | |
{ | |
"key": "custom", | |
"value": "Custom", | |
"type": "active" | |
}, | |
{ | |
"key": "dayoff", | |
"value": "Day Off", | |
"type": "active" | |
}, | |
{ | |
"key": "eco", | |
"value": "Eco", | |
"type": "active" | |
}, | |
{ | |
"key": "off", | |
"value": "Off", | |
"type": "active" | |
} | |
], | |
"command": "setThermostatMode" | |
} | |
} | |
] | |
}, | |
"id": "namespace.customthermostatmode", | |
"version": 1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment