switches.yaml 1.78 KB
Newer Older
Erick Hitter's avatar
Erick Hitter committed
1 2 3 4 5 6 7
- platform: mqtt
  name: "Kitchen"
  state_topic: "smartthings/Kitchen/switch"
  command_topic: "smartthings/Kitchen/switch"
  payload_on: "on"
  payload_off: "off"
  retain: true
Erick Hitter's avatar
Erick Hitter committed
8 9 10 11 12 13 14 15 16 17 18 19 20 21
- platform: mqtt
  name: "Lava Lamp"
  state_topic: "smartthings/Lava Lamp/switch"
  command_topic: "smartthings/Lava Lamp/switch"
  payload_on: "on"
  payload_off: "off"
  retain: true
- platform: mqtt
  name: "Wireless Charger"
  state_topic: "smartthings/Wireless Charger/switch"
  command_topic: "smartthings/Wireless Charger/switch"
  payload_on: "on"
  payload_off: "off"
  retain: true
Erick Hitter's avatar
Erick Hitter committed
22 23 24 25 26 27 28
- platform: mqtt
  name: "Alarm Status"
  state_topic: "smartthings/Alarm Status/switch"
  command_topic: "smartthings/Alarm Status/switch"
  payload_on: "on"
  payload_off: "off"
  retain: true
Erick Hitter's avatar
Erick Hitter committed
29 30 31 32 33 34 35 36 37 38 39 40 41 42
- platform: mqtt
  name: "Balcony Outlet"
  state_topic: "smartthings/Balcony Outlet/switch"
  command_topic: "smartthings/Balcony Outlet/switch"
  payload_on: "on"
  payload_off: "off"
  retain: true
- platform: mqtt
  name: "Christmas Tree"
  state_topic: "smartthings/Spare Outlet/switch"
  command_topic: "smartthings/Spare Outlet/switch"
  payload_on: "on"
  payload_off: "off"
  retain: true
Erick Hitter's avatar
Erick Hitter committed
43 44
- platform: command_line
  switches:
Erick Hitter's avatar
Erick Hitter committed
45
    august_interior:
Erick Hitter's avatar
Erick Hitter committed
46 47 48
      command_on: 'curl "http://localhost:3000/api/lock/interior"'
      command_off: 'curl "http://localhost:3000/api/unlock/interior"'
      command_state: 'curl --silent "http://localhost:3000/api/status/interior" | jq ".status"'
Erick Hitter's avatar
Erick Hitter committed
49
      value_template: '{{ value == "0" }}'
Erick Hitter's avatar
Erick Hitter committed
50 51
- platform: command_line
  switches:
Erick Hitter's avatar
Erick Hitter committed
52
    august_keyed:
Erick Hitter's avatar
Erick Hitter committed
53 54 55
      command_on: 'curl "http://localhost:3000/api/lock/keyed"'
      command_off: 'curl "http://localhost:3000/api/unlock/keyed"'
      command_state: 'curl --silent "http://localhost:3000/api/status/keyed" | jq ".status"'
Erick Hitter's avatar
Erick Hitter committed
56
      value_template: '{{ value == "0" }}'