-
Notifications
You must be signed in to change notification settings - Fork 0
/
switches.yaml
executable file
·36 lines (33 loc) · 1.15 KB
/
switches.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#
# Learn more at https://home-assistant.io/components/switch/
#
# Raspberry Pi
- platform: rpi_gpio
ports:
18: LED Pi
# Vacation state variable in ISY
# Learn more at https://forum.universal-devices.com/topic/22201-home-assistant-and-isy/
- platform: command_line
switches:
vacation:
command_on: >-
curl -X GET http://admin:[email protected]/rest/vars/set/2/1/1
command_off: >-
curl -X GET http://admin:[email protected]/rest/vars/set/2/1/0
command_state: >-
curl -X GET http://admin:[email protected]/rest/vars/get/2/1/
value_template: >-
{{ '<val>1</val>' in value }}
friendly_name: Vacation State
# Sprinkler
#- platform: command_line
# switches:
# frontyardgrass:
# command_on: >-
# curl -X GET http://admin:[email protected]/rest/nodes/3D%20D0%20B2%201/cmd/DON
# command_off: >-
# curl -X GET http://admin:[email protected]/rest/nodes/3D%20D0%20B2%201/cmd/DOF
# command_state: >-
# curl -X GET http://admin:[email protected]/rest/status/3D%20D0%20B2%201/
# value_template: >-
# {{ 'd="On" u' in value }}