1.3.1 • Published 23 days ago

homey-helpers v1.3.1

Weekly downloads
-
License
ISC
Repository
-
Last release
23 days ago

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
1.3.1

23 days ago

1.3.0-rc.1

2 months ago

1.1.9

2 months ago

1.1.8

2 months ago

1.1.7

2 months ago

1.1.6

2 months ago

1.1.5

2 months ago

1.1.4

2 months ago

1.1.1

2 months ago

1.1.3

2 months ago

1.1.2

2 months ago

1.1.0

3 months ago

1.0.8

3 months ago

1.0.7

3 months ago

1.0.6

4 months ago