Set a Homey device capability
homey_device_set_capabilityUpdate a device's capability, such as power, dim level, or target temperature, on a Homey Pro smart home hub. Input a numeric 0-1 fraction for percentage-based capabilities to ensure accurate control.
Instructions
Changes one capability of one device, for example onoff, dim or target_temperature. This physically changes something in the house. Beware the percentage trap: dim, light_hue, light_saturation, light_temperature, windowcoverings_set, volume_set and fan_speed report their unit as a percentage but take a fraction between 0 and 1, so 60 percent is 0.6. A value outside the capability range is clamped to it and the clamp is reported. Call homey_device_get first when unsure of a range or of which capabilities can be set.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | The new value. Use a real JSON boolean or number, not a quoted string, where the type allows. | |
| device | Yes | Device id or device name. | |
| capability | Yes | Capability id, for example onoff, dim, target_temperature. |