Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nayelyzarazua-bluetrail/8af8023ea414ebecfe8389d412fde451 to your computer and use it in GitHub Desktop.
Save nayelyzarazua-bluetrail/8af8023ea414ebecfe8389d412fde451 to your computer and use it in GitHub Desktop.
customThermostatMode
{
"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"
}
}
]
}
}
}
{
"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