# homebridge-hassio-input_bool

> A simple package to bridge input_bool's from Home Assistant to Homekit using HomeBridge

Latest version **0.0.5** (published 2022-02-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install homebridge-hassio-input_bool
pnpm add homebridge-hassio-input_bool
yarn add homebridge-hassio-input_bool
bun add homebridge-hassio-input_bool
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2022-02-26 |
| First published | 2021-10-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6.0.0 |
| Dependencies | 1 |
| Unpacked size | 7.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Thomas Cousin |
| Maintainers | tcousin |
| Keywords | homebridge-plugin, Home Assistant, hassio, input_bool |

## Links

- npm: https://www.npmjs.com/package/homebridge-hassio-input_bool
- Repository: https://github.com/Tomcuzz/homebridge-hassio-input_bool
- Homepage: https://github.com/Tomcuzz/homebridge-hassio-input_bool#readme
- Issues: https://github.com/Tomcuzz/homebridge-hassio-input_bool/issues
- npm.io page: https://npm.io/package/homebridge-hassio-input_bool

## Dependencies (1)

- [mqtt](https://npm.io/package/mqtt.md) ^2.9.0

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.0.5 (latest) — 2022-02-26
- 0.0.4 — 2021-10-09
- 0.0.3 — 2021-10-09
- 0.0.1 — 2021-10-09

## README

# homebridge-hassio-input_bool
A simple package to bridge mqtt input_bool's from Home Assistant to Homekit using HomeBridge

   * [Installation](#installation)
   * [Configuration](#configuration)
   * [Release Notes](#release-notes)

# Installation
Follow the instructions in [homebridge](https://www.npmjs.com/package/homebridge) for the homebridge server installation.
This plugin is published through [NPM](https://www.npmjs.com/package/homebridge-hassio-input_bool) and should be installed "globally" by typing:

    npm install -g homebridge-hassio-input_bool

# Configuration
An example configuration for HomeBridge is below:

```javascript
{
  "accessory": "HassInputBool",
  "name": "Visitor Mode",
  "mqtt": {
    "url":"mqtt://192.168.1.2:1883",
    "topic":"hass-homebridge/visitor-mode"
  }
}
```

And the following is an example Home Assistant config extract:
```yaml
input_bool:
  visitor_mode:
    name: "Visitor Mode"

automation:
  - alias: Visitor Mode Mqtt Publish
    trigger:
        platform: state
        entity_id: input_boolean.visitor_mode
    action:
        - service: mqtt.publish
          data_template:
              topic: "hass-homebridge/visitor-mode"
              payload: '{{ states.input_boolean.visitor_mode.state }}'

  - alias: Visitor Mode On Mqtt Subscribe
    trigger:
        platform: mqtt
        topic: "hass-homebridge/visitor-mode"
        payload: "on"
    action:
        - service: input_boolean.turn_on
          target:
              entity_id: input_boolean.visitor_mode

  - alias: Visitor Mode Off Mqtt Subscribe
    trigger:
        platform: mqtt
        topic: "hass-homebridge/visitor-mode"
        payload: "off"
    action:
        - service: input_boolean.turn_off
          target:
              entity_id: input_boolean.visitor_mode
```

# Release Notes
## Roadmap:
- Fully Test
- Write Tests

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