When I inquired about the powerOutlet last time, I learned about the visible condition. So I tried to apply it to the thermostat.
My intention is to have the capability of Switch, thermostatHeatingSetpoint, and temperatureMeasurement output on Dashboard together. However, I want to make thermostatHeatingSetpoints output only when the heatingSetpoint.value is greater than the temperature.value. So I tried as follows.
"dashboard": {
"states": [
{
"component": "main",
"capability": "switch",
"version": 1,
"values": [
{
"label": "{{switch.value}}",
"alternatives": [
{
"key": "off",
"value": "___PO_CODE_CAPABILITY.SMARTTHINGS.SWITCH_DEFAULT_ATTRIBUTES_SWITCH_OFF : ",
"type": "inactive"
},
{
"key": "on",
"value": "___PO_CODE_CAPABILITY.SMARTTHINGS.SWITCH_DEFAULT_ATTRIBUTES_SWITCH_ON : ",
"type": "active"
}
]
}
],
"idx": 0,
"group": "main",
"composite": true
},
{
"component": "main",
"capability": "thermostatHeatingSetpoint",
"version": 1,
"idx": 0,
"group": "main",
"visibleCondition": {
"capability": "thermostatHeatingSetpoint",
"version": 1,
"component": "main",
"value": "heatingSetpoint.value",
"operator": "GREATER_THAN",
"operand": {
"capability": "temperatureMeasurement",
"component": "main",
"version": 1,
"value": "temperature.value"
},
"isOffline": false
},
"values": [
{
"label": "{{heatingSetpoint.value}} {{heatingSetpoint.unit}} / "
}
],
"composite": true
},
{
"component": "main",
"capability": "temperatureMeasurement",
"version": 1,
"idx": 0,
"group": "main",
"values": [
{
"label": "{{temperature.value}} {{temperature.unit}}"
}
],
"composite": true
}
],
Below message came up.
Is it a wrong way to use it?
There was a problem updating the device profile.
Something went wrong with the Canvas service
And can’t we add the actual heating state apart from the 'inactive and active stat’e and make it with a total of 3 state conversions?