homeassistant/packages/uci_base_fio.yaml

74 lines
2.2 KiB
YAML

# package of switches to interface the the fio (four in one) socket example of @uci/base
switch:
- platform: mqtt
name: "FIO Switch 1"
state_topic: "fio/switch/status/1"
command_topic: "fio/switch/set/1"
state_on: "on"
state_off: "off"
payload_on: "on"
payload_off: "off"
icon: mdi:lightbulb
- platform: mqtt
name: "FIO Switch 2"
state_topic: "fio/switch/status/2"
command_topic: "fio/switch/set/2"
state_on: "on"
state_off: "off"
payload_on: "on"
payload_off: "off"
icon: mdi:lightbulb
- platform: mqtt
name: "FIO Switch 3"
state_topic: "fio/switch/status/3"
command_topic: "fio/switch/set/3"
state_on: "on"
state_off: "off"
payload_on: "on"
payload_off: "off"
icon: mdi:lightbulb
- platform: mqtt
name: "FIO Switch 4"
state_topic: "fio/switch/status/4"
command_topic: "fio/switch/set/4"
state_on: "on"
state_off: "off"
payload_on: "on"
payload_off: "off"
icon: mdi:lightbulb
# copy and paste and uncomment below as a view under views: in ui-lovelace.yaml
# - title: UCI Base FIO Example
# cards:
# - type: vertical-stack
# cards:
# - type: markdown
# content: >
# # Four In One UCI Base Example
# - type: horizontal-stack
# cards:
# - type: entity-button
# entity: switch.fio_switch_1
# icon: mdi:water
# name: Switch 1
# tap_action:
# action: toggle
# - type: entity-button
# entity: switch.fio_switch_2
# icon: mdi:water
# name: Switch 2
# tap_action:
# action: toggle
# - type: entity-button
# entity: switch.fio_switch_3
# icon: mdi:water
# name: Switch 3
# tap_action:
# action: toggle
# - type: entity-button
# entity: switch.fio_switch_4
# icon: mdi:water
# name: Switch 4
# tap_action:
# action: toggle