homebridge-hassio-input_select
Version:
A simple package to bridge input_select's from Home Assistant to Homekit using HomeBridge
73 lines (63 loc) • 1.83 kB
Markdown
# homebridge-hassio-input_select
A simple package to bridge mqtt input_select'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_select) and should be installed "globally" by typing:
npm install -g homebridge-tasmota-sonoff-thermostat
# Configuration
An example configuration for HomeBridge is below:
```javascript
{
"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:
```yaml
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