homebridge-hassio-input_bool

0.0.5 • Public • Published

homebridge-hassio-input_bool

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

Installation

Follow the instructions in homebridge for the homebridge server installation. This plugin is published through NPM and should be installed "globally" by typing:

npm install -g homebridge-hassio-input_bool

Configuration

An example configuration for HomeBridge is below:

{
  "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:

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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.51latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.51
0.0.40
0.0.30
0.0.10

Package Sidebar

Install

npm i homebridge-hassio-input_bool

Weekly Downloads

1

Version

0.0.5

License

MIT

Unpacked Size

7.68 kB

Total Files

5

Last publish

Collaborators

  • tcousin