I’m using fanSpeed for Dimmer Light now. This is because the fan speed of stage 4 fits well with Dimmer Light. So I’m using some changes to the fanSpeed label, but there’s a problem. Some of them are not properly changed.
What I want is that the label of the value of 0,1,2,3,4 of fanSpeed is marked as ‘off’, ‘1’ is marked as 1, ‘2’ is marked as 2, ‘3’, and ‘4’ is marked as 4. The part marked with “fan speed” is marked with “brightness”.
In the case of off, I didn’t want to mark it separately, but strangely, even though only 1, 2, 3, and 4 were set in the dashboard, it was displayed as 0 degree 0 and active, so I put it in the 0 degree setting value, {{i18n.attributes.panSpeed.i18n.value.0.label} which is the 0 default value of fanSpeed, and put it as inactive.
In the case of ‘brightness’, the default value of the swichLevel is ___PO_CODE_CAPABILITY.SMARTTHINGS.I brought SWITCHLEVEL_DEFAULT and used it.
___PO_CODE_CAPABILITY.SMARTTHINGS.SWITCHLEVEL_DEFAULT seems to apply properly, but {{i18n.attributes.fanSpeed.i18n.value.0.label}}This value did not apply properly.
Conditions and actions of automation were also modified as follows, but were deleted during upload.
What I’m curious about is my modification of conditions and actions of automation wrong? Anyone can correct it properly?
{
"mnmn": "-",
"vid": "ST_13622a65-b27a-4df2-be00-ad19ef964d19",
"version": "0.0.1",
"type": "profile",
"dashboard": {
"states": [
{
"component": "main",
"capability": "fanSpeed",
"version": 1,
"idx": 0,
"group": "main",
"values": [
{
"alternatives": [
{
"key": "0",
"value": "{{i18n.attributes.fanSpeed.i18n.value.0.label}}",
"type": "inactive"
},
{
"key": "1",
"value": "1",
"type": "active"
},
{
"key": "2",
"value": "2",
"type": "active"
},
{
"key": "3",
"value": "3",
"type": "active"
},
{
"key": "4",
"value": "4",
"type": "active"
}
]
}
],
"composite": false
}
],
"actions": [
{
"component": "main",
"capability": "switch",
"version": 1,
"idx": 0,
"group": "main"
}
],
"basicPlus": []
},
"detailView": [
{
"component": "main",
"capability": "switch",
"version": 1,
"values": [],
"patch": []
},
{
"component": "main",
"capability": "fanSpeed",
"version": 1,
"values": [
{
"key": "fanSpeed.value",
"label": "___PO_CODE_CAPABILITY.SMARTTHINGS.SWITCHLEVEL_DEFAULT",
"alternatives": [
{
"key": "1",
"value": "1",
"type": "active"
},
{
"key": "2",
"value": "2",
"type": "active"
},
{
"key": "3",
"value": "3",
"type": "active"
},
{
"key": "4",
"value": "4",
"type": "active"
}
]
}
]
}
],
"automation": {
"conditions": [
{
"component": "main",
"capability": "switch",
"version": 1,
"values": [],
"patch": [],
"exclusion": []
},
{
"component": "main",
"capability": "fanSpeed",
"version": 1,
"label": "{{i18n.label}}",
"displayType": "list",
"list": {
"alternatives": [
{
"key": "0",
"value": "{{i18n.attributes.fanSpeed.i18n.value.0.label}}",
"type": "inactive"
},
{
"key": "1",
"value": "1",
"type": "active"
},
{
"key": "2",
"value": "2",
"type": "active"
},
{
"key": "3",
"value": "3",
"type": "active"
},
{
"key": "4",
"value": "4",
"type": "active"
}
],
"value": "fanSpeed.value",
"valueType": "integer",
"multiSelectable": false
}
}
],
"actions": [
{
"component": "main",
"capability": "switch",
"version": 1,
"values": [],
"patch": [],
"exclusion": []
},
{
"component": "main",
"capability": "fanSpeed",
"version": 1,
"list": {
"alternatives": [
{
"key": "0",
"value": "{{i18n.attributes.fanSpeed.i18n.value.0.label}}",
"type": "inactive"
},
{
"key": "1",
"value": "1",
"type": "active"
},
{
"key": "2",
"value": "2",
"type": "active"
},
{
"key": "3",
"value": "3",
"type": "active"
},
{
"key": "4",
"value": "4",
"type": "active"
}
],
"command": "setFanSpeed",
"argumentType": "integer"
}
}
]
},
"migration": true,
"isAutoUpdateRequired": true
}