GPIO Inputs used in input board, presented as Binary sensor in Home Assistant.
It sends mqtt messages for actions pressed
, released
.
binary_sensor:
- id: IN_30
pin: P8_35
kind: sensor
actions:
pressed:
- action: mqtt
topic: boneiohome2/cmd/cover/kitchen/set
action_mqtt_msg: 'ON'
released:
- action: cover
pin: kitchen
action_cover: stop
```yaml title=“Example config if you use boneio:
configuration”
binary_sensor:
Example send action to another boneIO
```yaml
- id: IN_34
boneio_input: IN_34
actions:
pressed:
- action: output_over_mqtt
pin: Light2
boneio_id: beagle1
{pin}
) - uniquely identifies this device in MQTT and Home Assistant.P9_33
.gpio
, allowed_values: ['gpio', 'gpio_pu', 'gpio_pd', 'gpio_input']
) - How to run this gpio. gpio means default gpio mode. gpio_pu = gpio pull up, gpio_pd = gpio pull down, gpio_input - to be checked.['new', 'old']
) - There are 2 detector algorithms in dev version. Old consumes more CPU, but we got feedback that it works for everyone. new is more optimized, but needed users to test it. To get it done we introduced this option.['battery', 'battery_charging', 'carbon_monoxide', 'cold', 'connectivity', 'door', 'garage_door', 'gas', 'heat', 'light', 'lock', 'moisture', 'motion', 'moving', 'occupancy', 'opening', 'plug', 'power', 'presence', 'problem', 'running', 'safety', 'smoke', 'sound', 'tamper', 'vibration', 'window']
) - Type of device to see in Home Assistant.['switch', 'sensor']
) - Type of device to send to Home Assistant. This kind indicate actions you can use.boneio:
and boneio_input:
configuration that can be ommited:¶P9_33
.gpio
, allowed_values: ['gpio', 'gpio_pu', 'gpio_pd', 'gpio_input']
) - How to run this gpio. gpio means default gpio mode. gpio_pu = gpio pull up, gpio_pd = gpio pull down, gpio_input - to be checked.['mqtt', 'output', 'cover', 'output_over_mqtt', 'cover_over_mqtt']
) - action type. Output and cover means that command is send directly to output relay or cover. This mode doesn’t need network to work. Mqtt mean that there is extra action send to mqtt. For example you can directly control second boneIO!output
or cover
.mqtt
action is chosen['toggle', 'open', 'close', 'stop', 'toggle_open', 'toggle_close', 'tilt', 'tilt_open', 'tilt_close']
) - action to perform on cover
type action. toggle
is actions between open/close. toggle_open
means actions between open/stop, toggle_close
means actions between close/stop. Tilt actions are only working on venetian blind cover.['toggle', 'on', 'off']
) - action to perform on output
type action.mqtt
.output_over_mqtt
or cover_over_mqtt
.