# package of switches to test gpio pins/relays for @uci/gpio example # gpio pins on pine64 in order for relays 1-8 const PINS = [80,73,69,230,229,75,74,70] switch: - platform: mqtt name: "pine64 Switch 1" state_topic: "relay/status/80" command_topic: "relay/set/80" state_on: "on" state_off: "off" payload_on: "on" payload_off: "off" icon: mdi:lightbulb - platform: mqtt name: "pine64 Switch 2" state_topic: "relay/status/73" command_topic: "relay/set/73" state_on: "on" state_off: "off" payload_on: "on" payload_off: "off" icon: mdi:lightbulb - platform: mqtt name: "pine64 Switch 3" state_topic: "relay/status/69" command_topic: "relay/set/69" state_on: "on" state_off: "off" payload_on: "on" payload_off: "off" icon: mdi:lightbulb - platform: mqtt name: "pine64 Switch 4" state_topic: "relay/status/230" command_topic: "relay/set/230" state_on: "on" state_off: "off" payload_on: "on" payload_off: "off" icon: mdi:lightbulb - platform: mqtt name: "pine64 Switch 5" state_topic: "relay/status/229" command_topic: "relay/set/229" state_on: "on" state_off: "off" payload_on: "on" payload_off: "off" icon: mdi:lightbulb - platform: mqtt name: "pine64 Switch 6" state_topic: "relay/status/75" command_topic: "relay/set/75" state_on: "on" state_off: "off" payload_on: "on" payload_off: "off" icon: mdi:lightbulb - platform: mqtt name: "pine64 Switch 7" state_topic: "relay/status/74" command_topic: "relay/set/74" state_on: "on" state_off: "off" payload_on: "on" payload_off: "off" icon: mdi:lightbulb - platform: mqtt name: "pine64 Switch 8" state_topic: "relay/status/70" command_topic: "relay/set/70" 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