forked from tchiavegatti/HomeAssistant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
shell_commands.yaml
35 lines (28 loc) · 1.69 KB
/
shell_commands.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
#https://home-assistant.io/components/shell_command/
####################################################
# #
# RESTART DOCER CONTAINERS #
# #
####################################################
restart_hass: 'curl http://192.168.1.24:8126/container/home-assistant/restart'
restart_unifi: 'curl http://192.168.1.24:8126/container/unifi/restart'
restart_mqtt: 'curl http://192.168.1.24:8126/container/MQTT/restart'
restart_hadockermon: 'curl http://192.168.1.24:8126/container/ha-dockermon/restart'
restart_portainer: 'curl http://192.168.1.24:8126/container/portainer/restart'
####################################################
# #
# SHUTDOWN COMPUTERS #
# #
####################################################
desktop: !secret desktop
htpc: !secret htpc
#Above removed as they contain personal information. Commmand should be formatted as:
# "net rpc shutdown -I IPADDRESS -U USERNAME%PASSWORD"
# IP is the IP address of the machine you are trying to shutdown
# USERNAME is the Windows assigned username. Got to C:\Users to find your username. (windows may have truncated the name you provided)
# PASSWORD is the password you use to log into windows
####################################################
# #
# END OF CONFIGURATION FILE #
# #
####################################################