Make bash script
This commit is contained in:
parent
31a49d6b63
commit
fe79a33c9c
|
@ -74,14 +74,11 @@ media_player:
|
||||||
|
|
||||||
# Poe switch!
|
# Poe switch!
|
||||||
switch:
|
switch:
|
||||||
- platform: telnet
|
- platform: command_line
|
||||||
switches:
|
switches:
|
||||||
lab_camera_power:
|
lab_camera_power:
|
||||||
resource: 10.85.3.96
|
command_on: bash /config/scripts/hpe_switch.sh 2 on
|
||||||
port: 22
|
command_off: bash /config/scripts/hpe_switch.sh 2 off
|
||||||
command_on: "\n5\nconfig\ninterface 2 power"
|
|
||||||
command_off: "no interface 2 power"
|
|
||||||
timeout: 2
|
|
||||||
|
|
||||||
|
|
||||||
group: !include groups.yaml
|
group: !include groups.yaml
|
||||||
|
|
Loading…
Reference in New Issue