Skip to content

Instantly share code, notes, and snippets.

@xbmcnut
Created October 9, 2018 01:19
Show Gist options
  • Save xbmcnut/bd6b199d5f6ab61ccd4dba135d40ff7a to your computer and use it in GitHub Desktop.
Save xbmcnut/bd6b199d5f6ab61ccd4dba135d40ff7a to your computer and use it in GitHub Desktop.
Package to add two Shelly2's to Home Assistant
###################################
## Customize
###################################
homeassistant:
customize:
switch.family_room_fan:
hidden: False
icon: mdi:fan
light:
- platform: mqtt
name: "Stair Lights"
state_topic: "shellies/shellyswitch-9F5ED3/relay/0"
command_topic: "shellies/shellyswitch-9F5ED3/relay/0/command"
qos: 2
payload_on: "on"
payload_off: "off"
- platform: mqtt
name: "Kitchen Lights"
state_topic: "shellies/shellyswitch-9F6008/relay/1"
command_topic: "shellies/shellyswitch-9F6008/relay/1/command"
qos: 2
payload_on: "on"
payload_off: "off"
switch:
- platform: mqtt
name: "Family Room Fan"
state_topic: "shellies/shellyswitch-9F6008/relay/0"
command_topic: "shellies/shellyswitch-9F6008/relay/0/command"
qos: 2
payload_on: "on"
payload_off: "off"
sensor:
- platform: mqtt
name: "Family Room Shelly Power"
state_topic: "shellies/shellyswitch-9F6008/relay/power"
- platform: mqtt
name: "Stairs Shelly Power"
state_topic: "shellies/shellyswitch-9F5ED/relay/power"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment