# homey-helpers

> Homey helper utilities

Latest version **1.3.1** (published 2024-04-19) · ISC license · 0 weekly downloads

## Install

```sh
npm install homey-helpers
pnpm add homey-helpers
yarn add homey-helpers
bun add homey-helpers
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.3.1 |
| Published | 2024-04-19 |
| First published | 2024-01-28 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 17.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Wim Haanstra |
| Maintainers | depl0y |

## Links

- npm: https://www.npmjs.com/package/homey-helpers
- Repository: com.sortedbits.base
- npm.io page: https://npm.io/package/homey-helpers

## Dependencies (1)

- [luxon](https://npm.io/package/luxon.md) ^2.2.0

## Recent versions

- 1.3.1 (latest) — 2024-04-19
- 1.3.0-rc.1 — 2024-03-24
- 1.1.9 — 2024-03-15
- 1.1.8 — 2024-03-15
- 1.1.7 — 2024-03-15
- 1.1.6 — 2024-03-15
- 1.1.5 — 2024-03-15
- 1.1.4 — 2024-03-08
- 1.1.3 — 2024-03-07
- 1.1.2 — 2024-03-07
- 1.1.1 — 2024-03-07
- 1.1.0 — 2024-01-29
- 1.0.8 — 2024-01-29
- 1.0.7 — 2024-01-29
- 1.0.6 — 2024-01-28

## README

# Homey Helper Utilities

A collection of Homey Helper methods I tend to use over and over again.

## Available methods

<!-- INSERT GENERATED DOCS START -->

### `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.

<!-- INSERT GENERATED DOCS END -->

## Versions

#### v1.0.6

- First published release
- Addd `capabilityChange` method

---
_Source: https://npm.io/package/homey-helpers · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
