1.3.1 • Published 23 days ago
homey-helpers v1.3.1
Homey Helper Utilities
A collection of Homey Helper methods I tend to use over and over again.
Available methods
getIsSupported
(function)
Device
(class)
addCapabilityIfNotExists
(function)
Adds a capability to a Homey device if it does not already have it.
Parameters:
- origin (
Homey.Device
) - The Homey device to add the capability to. - capabilityId (
string
) - The ID of the capability to add.
deprecateCapability
(function)
Deprecates a capability for a given device. If the device has the specified capability, it will be removed.
Parameters:
- origin (
Homey.Device
) - The device to deprecate the capability for. - capabilityId (
string
) - The ID of the capability to deprecate.
capabilityChange
(function)
Changes the value of a capability for a given device.
Parameters:
- origin (
Homey.Device
) - The device for which the capability value is being changed. - capabilityId (
string
) - The ID of the capability being changed. - value (
any
) - The new value for the capability. - trigger (
string
) - (Optional) The trigger to be executed if the value is different from the current value.
Versions
v1.0.6
- First published release
- Addd
capabilityChange
method