switches.yaml 1.17 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
- platform: command_line
  switches:
Erick Hitter's avatar
Erick Hitter committed
24 25 26
    august_interior:
      oncmd: 'curl "http://localhost:3000/api/lock/interior"'
      offcmd: 'curl "http://localhost:3000/api/unlock/interior"'
Erick Hitter's avatar
Erick Hitter committed
27
      statecmd: 'curl --silent "http://localhost:3000/api/status/interior" | jq ".status"'
Erick Hitter's avatar
Erick Hitter committed
28
      value_template: '{{ value == "0" }}'
Erick Hitter's avatar
Erick Hitter committed
29 30
- platform: command_line
  switches:
Erick Hitter's avatar
Erick Hitter committed
31 32 33
    august_keyed:
      oncmd: 'curl "http://localhost:3000/api/lock/keyed"'
      offcmd: 'curl "http://localhost:3000/api/unlock/keyed"'
Erick Hitter's avatar
Erick Hitter committed
34
      statecmd: 'curl --silent "http://localhost:3000/api/status/keyed" | jq ".status"'
Erick Hitter's avatar
Erick Hitter committed
35
      value_template: '{{ value == "0" }}'