switches.yaml 1019 Bytes
Newer Older
Erick Hitter's avatar
Erick Hitter committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14
- 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
15 16
- platform: command_line
  switches:
Erick Hitter's avatar
Erick Hitter committed
17 18 19
    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
20
      statecmd: 'curl --silent "http://localhost:3000/api/status/interior" | jq ".status"'
Erick Hitter's avatar
Erick Hitter committed
21
      value_template: '{{ value == "0" }}'
Erick Hitter's avatar
Erick Hitter committed
22 23
- platform: command_line
  switches:
Erick Hitter's avatar
Erick Hitter committed
24 25 26
    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
27
      statecmd: 'curl --silent "http://localhost:3000/api/status/keyed" | jq ".status"'
Erick Hitter's avatar
Erick Hitter committed
28
      value_template: '{{ value == "0" }}'