I mentioned how to do that in the posts above, please, let me know if you have questions:
Do you mean you want to remove it from the automation section? If so, in the device configuration, you only need to omit that capability in the section you want it not to appear. For example, if you have 3 capabilities in your profile but you only want to show two, you omit the corresponding capability:
Yes, it will show the original configuration and cannot be modified.
I looked at this list of capabilities and I didn’t find one that would match yours exactly. Would you pursue the Works With SmartThings (WWST) certification of the device you’re integrating?
If not, you can create a custom capability, and you would need to consider they won’t be recognized by third-party integrations like Alexa/Google Home.
As you said, I modified the fan speed of the action part, but the label did not change and the fan speed remained the same.
However, label of detailview or automation has been changed.
The value in “key” is incorrect, you must use the command name. The difference is because of the capability’s presentation, you can see there’s no property “value” but there’s a “command”, you must use the last one for the reference in the device-config:
By the way, I’m going to use 0-100% range on dimLight because of history tab.
As a key value, there are cases where ‘level.value’ is added in the 0-4 range, and ‘setlevel’ is added in the 0-100 range, could you tell me what difference is?
And when I remove a unit, is there a way to remove only the unit with a value of 0%?
In that post I provided two samples for the case of SwitchLevel. One with the range of 0-4 and the other of 0-100 but with steps (or jumps) of 25, this means that when the user moves the slider, the values possible will be only 0,25,50,75, and 100.
About using level.value or setlevel in key, it changes due to the capability presentation as I mentioned for fanSpeed. It generally changes in automation.actions but not all capabilities have the same configuration, in this case, fanSpeed and SwitchLevel are very similar.
That’s why you need to query the capability’s presentation to create the device-config because you must use the correct references on each view (dashboard, detail and automations) based on it. To do so, you can use this CLI command:
No, it cannot be removed based on a condition because the presentation has the property unit in this section and we cannot modify it, only remove it using the patch property. Even if we added alternatives, the unit property would be still there applying for all numbers no matter their value.