homebridge-hassio-input_select
v0.0.31
Published
A simple package to bridge input_select's from Home Assistant to Homekit using HomeBridge
Downloads
23
Maintainers
Readme
homebridge-hassio-input_select
A simple package to bridge mqtt input_select'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-tasmota-sonoff-thermostat
Configuration
An example configuration for HomeBridge is below:
{
"accessory": "HassInputSelect",
"name": "Hass Input Select",
"values": [
"Morning",
"Day",
"Night"
],
"mqtt": {
"url": "mqtt://192.168.1.2:1883",
"clientid": "clinetid",
"username": "username",
"password": "password",
"topic": "publish/topic/in/mqtt"
}
}
And the following is an example Home Assistant config extract:
input_select:
home_state:
name: Current Home State
options:
- Morning
- Day
- Night
automation:
- alias: Home Select Mqtt Publish
trigger:
platform: state
entity_id: input_select.home_state
action:
- service: mqtt.publish
data_template:
topic: "hass-homebridge/home-state"
payload: '{{ states.input_select.home_state.state }}'
- alias: Home Select Mqtt Subscribe
trigger:
platform: mqtt
topic: "hass-homebridge/home-state"
action:
- service: input_select.select_option
target:
entity_id: input_select.home_state
data:
option: "{{ trigger.payload }}
Release Notes
Roadmap:
- Fully Test
- Write Tests