forked from matt8707/hass-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
secrets [REDACTED].yaml
executable file
·107 lines (83 loc) · 7.17 KB
/
secrets [REDACTED].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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
homeassistant_latitude: [REDACTED]
homeassistant_longitude: [REDACTED]
homeassistant_elevation: [REDACTED]
wake_on_lan_mac: [REDACTED MAC]
wake_on_lan_host: [REDACTED IP]
imac_switchbot_rpi: ssh -o StrictHostKeyChecking=no -i /config/.ssh/id_rsa pi@[REDACTED IP] 'cd ~/python-host && sudo python3 switchbot_py3.py --device [REDACTED MAC]'
imac_notify_motion_hallway: ssh -o StrictHostKeyChecking=no -i /config/.ssh/id_rsa [REDACTED USER@IP] 'osascript -e '\''display notification "Rörelse i hallen detekterat" with title "Home Assistant"'\'''
imac_notify_laundry: ssh -o StrictHostKeyChecking=no -i /config/.ssh/id_rsa [REDACTED USER@IP] 'osascript -e '\''display notification "Tvätten är klar" with title "Home Assistant"'\'''
imac_off: 'ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i /config/.ssh/id_rsa [REDACTED USER@IP] sudo /sbin/shutdown -h now'
imac_sleep: 'ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i /config/.ssh/id_rsa [REDACTED USER@IP] sudo /sbin/shutdown -s now'
imac_restart: 'ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i /config/.ssh/id_rsa [REDACTED USER@IP] sudo /sbin/shutdown -r now'
imac_system_ssd: ssh -o StrictHostKeyChecking=no -i /config/.ssh/id_rsa [REDACTED USER@IP] 'df / | awk '\''{ print $5 }'\'' | tail -n 1 | cut -d'\''%'\'' -f1'
imac_macintosh_hd: ssh -o StrictHostKeyChecking=no -i /config/.ssh/id_rsa [REDACTED USER@IP] 'df /Volumes/Macintosh\ HD | awk '\''{ print $5 }'\'' | tail -n 1 | cut -d'\''%'\'' -f1'
imac_time_machine: ssh -o StrictHostKeyChecking=no -i /config/.ssh/id_rsa [REDACTED USER@IP] 'df /Volumes/Time\ Machine | awk '\''{ print $5 }'\'' | tail -n 1 | cut -d'\''%'\'' -f1'
imac_cpu: ssh -o StrictHostKeyChecking=no -i /config/.ssh/id_rsa [REDACTED USER@IP] 'top -l 1 | awk '\''/CPU usage/ {printf("%.1f\n", $3)}'\'''
imac_mem: ssh -o StrictHostKeyChecking=no -i /config/.ssh/id_rsa [REDACTED USER@IP] 'ps -A -o %mem | awk '\''{ mem += $1} END {print mem}'\'''
imac_ip: ssh -o StrictHostKeyChecking=no -i /config/.ssh/id_rsa [REDACTED USER@IP] 'dig @resolver1.opendns.com ANY myip.opendns.com +short'
imac_uptime: ssh -o StrictHostKeyChecking=no -i /config/.ssh/id_rsa [REDACTED USER@IP] sysctl -n kern.boottime | awk '{print $4}' | sed 's/,//g'
hacs_token: [REDACTED]
homekit_ip_address: [REDACTED IP]
tts_base_url: [REDACTED URL]
darksky_api_key: [REDACTED]
mqtt_broker: [REDACTED IP]
google_cast_host: [REDACTED IP]
hue_host: [REDACTED IP]
braviatv_host: [REDACTED IP]
public_ip: [REDACTED IP]
samsungtv_host: [REDACTED IP]
samsungtv_mac: [REDACTED MAC]
samsungtv_port: [REDACTED PORT]
iphonedetect_mattias: [REDACTED IP]
iphonedetect_sanja: [REDACTED IP]
google_client_id: [REDACTED]
google_client_secret: [REDACTED]
wemo_static:
- [REDACTED IP]
- [REDACTED IP]
- [REDACTED IP]
broadlink_host: [REDACTED IP]
broadlink_mac: [REDACTED MAC]
ha_dockermon_cpu: [REDACTED IP]/container/home-assistant-core/stats
ha_dockermon_uptime: [REDACTED IP]/container/home-assistant-core
ha_dockermon_watchtower: [REDACTED IP]/container/watchtower
ha_dockermon_restart_container: 'curl [REDACTED URL:PORT]/container/home-assistant-core/restart'
fullykiosk_brightness_slider: "/usr/bin/curl -k '[REDACTED URL:PORT]/?cmd=setStringSetting&key=screenBrightness&value={{ (states.input_number.fullykiosk_brightness_slider.state | int * 2.55) | round(0) }}&password=[REDACTED]'"
fullykiosk_load_start_url: "/usr/bin/curl -X POST '[REDACTED URL:PORT]/?cmd=loadStartURL&password=[REDACTED]'"
fullykiosk_restart_app: "/usr/bin/curl -X POST '[REDACTED URL:PORT]/?cmd=restartApp&password=[REDACTED]'"
fullykiosk_screen_on: "/usr/bin/curl -X POST '[REDACTED URL:PORT]/?cmd=screenOn&type=json&password=[REDACTED]'"
fullykiosk_screen_off: "/usr/bin/curl -X POST '[REDACTED URL:PORT]/?cmd=screenOff&type=json&password=[REDACTED]'"
fullykiosk_screen_state: '/usr/bin/curl --silent -X GET "[REDACTED URL:PORT]/?password=[REDACTED]" |grep "Screen status" |grep "on\|off" |sed "s/<[^>]*>//g" |sed "s/Screen status//g" |sed "s/Turn on//g" |sed "s/Turn off//g"'
fullykiosk_rest_resource: "[REDACTED URL:PORT]/?cmd=deviceInfo&type=json&password=[REDACTED]"
fullykiosk_screensaver_on: "/usr/bin/curl -X POST '[REDACTED URL:PORT]/?cmd=startScreensaver&password=[REDACTED]'"
fullykiosk_screensaver_off: "/usr/bin/curl -X POST '[REDACTED URL:PORT]/?cmd=stopScreensaver&password=[REDACTED]'"
synologydsm_host: [REDACTED IP]
synologydsm_port: [REDACTED PORT]
synologydsm_username: [REDACTED]
synologydsm_password: [REDACTED]
synologydsm_baseoid: [REDACTED]
roborock_host: [REDACTED IP]
roborock_token: [REDACTED]
monitors_mute_on: ssh -o StrictHostKeyChecking=no -i /config/.ssh/id_rsa [REDACTED USER@IP] 'osascript -e "set volume with output muted"'
monitors_mute_off: ssh -o StrictHostKeyChecking=no -i /config/.ssh/id_rsa [REDACTED USER@IP] 'osascript -e "set volume without output muted"'
monitors_mute_check: ssh -o StrictHostKeyChecking=no -i /config/.ssh/id_rsa [REDACTED USER@IP] 'osascript -e "output muted of (get volume settings)"'
monitors_volume_slider: ssh -o StrictHostKeyChecking=no -i /config/.ssh/id_rsa [REDACTED USER@IP] 'osascript -e "set volume output volume {{ states('input_number.monitors_volume') | int }} --100%"'
monitors_update_volume: ssh -o StrictHostKeyChecking=no -i /config/.ssh/id_rsa [REDACTED USER@IP] 'osascript -e "output volume of (get volume settings)"'
reference_click: ssh -o StrictHostKeyChecking=no -i /config/.ssh/id_rsa [REDACTED USER@IP] 'osascript -e "ignoring application responses" -e "tell application \"System Events\"" -e "click menu bar item 1 of menu bar 2 of application process \"Reference 4 Systemwide\"" -e "end tell" -e "end ignoring"'
reference_kill: ssh -o StrictHostKeyChecking=no -i /config/.ssh/id_rsa [REDACTED USER@IP] 'killall System\ Events'
reference_monitors: ssh -o StrictHostKeyChecking=no -i /config/.ssh/id_rsa [REDACTED USER@IP] 'osascript -e "tell application \"System Events\"" -e "click menu item \"KRK 28 Sep\" of menu 1 of menu bar item 1 of menu bar 2 of application process \"Reference 4 Systemwide\"" -e "end tell"'
reference_headphones: ssh -o StrictHostKeyChecking=no -i /config/.ssh/id_rsa [REDACTED USER@IP] 'osascript -e "tell application \"System Events\"" -e "click menu item \"Beyerdynamic DT 990 Pro 250 Ohm Average\" of menu 1 of menu bar item 1 of menu bar 2 of application process \"Reference 4 Systemwide\"" -e "end tell"'
plex_token: [REDACTED]
plex_host: [REDACTED IP]
plex_port: [REDACTED PORT]
plex_availability: curl [REDACTED IP:PORT] > /dev/null && echo on || echo off
skanetrafiken: |-
api=$(curl -s 'http://www.labs.skanetrafiken.se/v2.2/resultspage.asp?cmdaction=next&NoOf=1&selPointFr=[REDACTED]&selPointTo=[REDACTED]');
tid=$(echo $api | sed -e 's,.*<DepDateTime>\([^<]*\)</DepDateTime>.*,\1,g' | cut -d T -f2 | cut -d ':' -f1,2);
plats=$(echo $api | sed -n 's:.*<Name>\(.*\)</Name><StopPoint>B</StopPoint></From>.*:\1:p' | cut -d\ -f2);
echo $tid 'från' $plats
kwh_data_update: ssh -o StrictHostKeyChecking=no -i /config/.ssh/id_rsa [REDACTED USER@IP] "/usr/local/opt/python/bin/python3.7 /Volumes/docker/hass-config/python/oresundskraft.py"
devicetracker_mattias: [REDACTED MAC]
devicetracker_sanja: [REDACTED MAC]
devicetracker_mattias_bluetooth: [REDACTED MAC]
devicetracker_sanja_bluetooth: [REDACTED MAC]