Needing help with two issues with device-config

Hi everyone,

Im needing help with two issues im facing when applying a device config to my device profile.

  1. I can’t seem to set the supported values for the thermostatMode capability. I want to limit the default list to auto, cool, heat, dry air, and fan only.

  2. I have changed fanSpeed to 0 - 3 steps and renamed ‘Off’ to ‘Auto’. However i’m now trying to change the ‘Auto’ posiition to be an active state (like low, medium, and high, where the slider turns blue) instead of an inactive state where it is grey.

Can anyone see whats wrong with my device config below?

{
    "version": "0.0.1",
    "type": "profile",
    "dashboard": {
        "states": [
            {
                "component": "main",
                "capability": "switch",
                "version": 1,
                "idx": 0,
                "group": "main",
                "values": [],
                "composite": false
            }
        ],
        "actions": [
            {
                "component": "main",
                "capability": "switch",
                "version": 1,
                "idx": 0,
                "group": "main",
                "inline": null
            }
        ],
        "basicPlus": []
    },
    "detailView": [
        {
            "component": "main",
            "capability": "switch",
            "version": 1,
            "values": [],
            "patch": []
        },
        {
            "component": "main",
            "capability": "temperatureMeasurement",
            "version": 1,
            "values": [
                {
                    "key": "temperature.value",
                    "enabledValues": [],
                    "label": "Ambient Temperature"
                }
            ],
            "patch": []
        },
        {
            "component": "main",
            "capability": "thermostatCoolingSetpoint",
            "version": 1,
            "visibleCondition": {
                "component": "main",
                "capability": "switch",
                "version": 1,
                "value": "switch.value",
                "operator": "EQUALS",
                "operand": "on"
            },
            "values": [
                {
                    "key": "coolingSetpoint.value",
                    "enabledValues": [],
                    "label": "Set Temperature",
                    "range": [
                        18,
                        30
                    ]
                }
            ],
            "patch": []
        },
        {
            "component": "main",
            "capability": "fanSpeed",
            "version": 1,
            "visibleCondition": {
                "component": "main",
                "capability": "switch",
                "version": 1,
                "value": "switch.value",
                "operator": "EQUALS",
                "operand": "on"
            },
            "values": [
                {
                    "key": "setFanSpeed",
                    "enabledValues": [],
                    "label": "Fan",
                    "alternatives": [
                        {
                            "key": "0",
                            "value": "Auto",
                            "type": "active"
                        },
                        {
                            "key": "1",
                            "value": "Low",
                            "type": "active"
                        },
                        {
                            "key": "2",
                            "value": "Medium",
                            "type": "active"
                        },
                        {
                            "key": "3",
                            "value": "High",
                            "type": "active"
                        }
                    ],
                    "range": [
                        0,
                        3
                    ]
                }
            ],
            "patch": []
        },
        {
            "component": "main",
            "capability": "thermostatMode",
            "version": 1,
            "values": [
                {
                    "key": "thermostatMode.value",
                    "enabledValues": [
                        "auto",
                        "cool",
                        "heat",
                        "dry air",
                        "fan only"
                    ],
                    "label": "Mode"
                }
            ],
            "patch": []
        },
        {
            "component": "main",
            "capability": "refresh",
            "version": 1,
            "values": [],
            "patch": []
        }
    ],
    "automation": {
        "conditions": [
            {
                "component": "main",
                "capability": "switch",
                "version": 1,
                "values": [],
                "patch": [],
                "exclusion": []
            },
            {
                "component": "main",
                "capability": "temperatureMeasurement",
                "version": 1,
                "values": [
                    {
                        "key": "temperature.value",
                        "enabledValues": [],
                        "label": "Ambient Temperature"
                    }
                ],
                "patch": [],
                "exclusion": []
            },
            {
                "component": "main",
                "capability": "thermostatCoolingSetpoint",
                "version": 1,
                "values": [
                    {
                        "key": "coolingSetpoint.value",
                        "enabledValues": [],
                        "label": "Set Temperature",
                        "range": [
                            18,
                            30
                        ]
                    }
                ],
                "patch": [],
                "exclusion": []
            },
            {
                "component": "main",
                "capability": "fanSpeed",
                "version": 1,
                "values": [
                    {
                        "key": "setFanSpeed",
                        "enabledValues": [],
                        "label": "Fan",
                        "alternatives": [
                            {
                                "key": "0",
                                "value": "Auto",
                                "type": "active"
                            },
                            {
                                "key": "1",
                                "value": "Low",
                                "type": "active"
                            },
                            {
                                "key": "2",
                                "value": "Medium",
                                "type": "active"
                            },
                            {
                                "key": "3",
                                "value": "High",
                                "type": "active"
                            }
                        ],
                        "range": [
                            0,
                            3
                        ]
                    }
                ],
                "patch": [],
                "exclusion": []
            },
            {
                "component": "main",
                "capability": "thermostatMode",
                "version": 1,
                "values": [
                    {
                        "key": "thermostatMode.value",
                        "enabledValues": [
                            "auto",
                            "cool",
                            "heat",
                            "dry air",
                            "fan only"
                        ],
                        "label": "Mode"
                    }
                ],
                "patch": [],
                "exclusion": []
            }
        ],
        "actions": [
            {
                "component": "main",
                "capability": "switch",
                "version": 1,
                "values": [],
                "patch": [],
                "exclusion": []
            },
            {
                "component": "main",
                "capability": "thermostatCoolingSetpoint",
                "version": 1,
                "values": [
                    {
                        "key": "coolingSetpoint.value",
                        "enabledValues": [],
                        "label": "Set Temperature",
                        "range": [
                            18,
                            30
                        ]
                    }
                ],
                "patch": [],
                "exclusion": []
            },
            {
                "component": "main",
                "capability": "fanSpeed",
                "version": 1,
                "values": [
                    {
                        "key": "setFanSpeed",
                        "enabledValues": [],
                        "label": "Fan",
                        "alternatives": [
                            {
                                "key": "0",
                                "value": "Auto",
                                "type": "active"
                            },
                            {
                                "key": "1",
                                "value": "Low",
                                "type": "active"
                            },
                            {
                                "key": "2",
                                "value": "Medium",
                                "type": "active"
                            },
                            {
                                "key": "3",
                                "value": "High",
                                "type": "active"
                            }
                        ],
                        "range": [
                            0,
                            3
                        ]
                    }
                ],
                "patch": [],
                "exclusion": []
            },
            {
                "component": "main",
                "capability": "thermostatMode",
                "version": 1,
                "values": [
                    {
                        "key": "thermostatMode.value",
                        "enabledValues": [
                            "auto",
                            "cool",
                            "heat",
                            "dry air",
                            "fan only"
                        ],
                        "label": "Mode"
                    }
                ],
                "patch": [],
                "exclusion": []
            },
            {
                "component": "main",
                "capability": "refresh",
                "version": 1,
                "values": [],
                "patch": [],
                "exclusion": []
            }
        ]
    }
}
1 Like

Does anyone know how to get a social for me

Any new ideas? I have the same problem right now.

Hi, @brdysdawg
In the main post, two issues are mentioned

  1. Cannot filter the values in “thermostatMode”
  • In this case, this capability has an attribute called “supportedThermostatModes” which you need to initialize to define the values supported.
  1. There was a change in the label of the alternatives in the “fanSpeed” capability but now the type of alternative needs to be modified to meet the requirement
  • I would need to make a test to see if that property can be modified.

Which one are you facing?

1 Like

Thank You for Your help, but i solve the problem myself. The problem was with „thermostatMode” values texts.