forked from matt8707/hass-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
secrets_redacted.yaml
68 lines (59 loc) · 3.52 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
homeassistant_latitude: REDACTED
homeassistant_longitude: REDACTED
homeassistant_elevation: REDACTED
recorder_db_url: mysql://homeassistant:REDACTED/homeassistant?charset=utf8mb4
nas_host: REDACTED
restart_container: ssh -q -o StrictHostKeyChecking=no -i /config/.ssh/id_rsa REDACTED /usr/local/bin/docker restart homeassistant
#plex
plex_token: REDACTED
plex_port: REDACTED
#imac
imac_wol_mac: REDACTED
imac_wol_host: REDACTED
imac_off: ssh -q -o StrictHostKeyChecking=no -i /config/.ssh/id_rsa REDACTED 'osascript -e "tell app \"System Events\" to shut down" 2>/dev/null'
imac_sleep: ssh -q -o StrictHostKeyChecking=no -i /config/.ssh/id_rsa REDACTED 'osascript -e "tell app \"System Events\" to sleep" 2>/dev/null'
imac_restart: ssh -q -o StrictHostKeyChecking=no -i /config/.ssh/id_rsa REDACTED 'osascript -e "tell app \"System Events\" to restart" 2>/dev/null'
imac_cpu: ssh -q -o StrictHostKeyChecking=no -i /config/.ssh/id_rsa REDACTED top -l 1 | awk '/CPU usage/ {print $7}' 2>/dev/null
imac_mem: ssh -q -o StrictHostKeyChecking=no -i /config/.ssh/id_rsa REDACTED ps -A -o %mem | awk '{ mem += $1} END {print mem}' 2>/dev/null
imac_uptime: ssh -q -o StrictHostKeyChecking=no -i /config/.ssh/id_rsa REDACTED sysctl -n kern.boottime | awk '{print $4}' 2>/dev/null
imac_ip: ssh -q -o StrictHostKeyChecking=no -i /config/.ssh/id_rsa REDACTED curl -s icanhazip.com || echo "unknown"
#monitors
monitors_mute_on: ssh -q -o StrictHostKeyChecking=no -i /config/.ssh/id_rsa REDACTED 'osascript -e "set volume with output muted" 2>/dev/null'
monitors_mute_off: ssh -q -o StrictHostKeyChecking=no -i /config/.ssh/id_rsa REDACTED 'osascript -e "set volume without output muted" 2>/dev/null'
monitors_mute_state: ssh -q -o StrictHostKeyChecking=no -i /config/.ssh/id_rsa REDACTED 'osascript -e "output muted of (get volume settings)"' || echo false
monitors_volume_slider: ssh -q -o StrictHostKeyChecking=no -i /config/.ssh/id_rsa REDACTED 'osascript -e "set volume output volume {{ states('input_number.monitors_volume') | int }} --100%" 2>/dev/null'
monitors_update_volume: ssh -q -o StrictHostKeyChecking=no -i /config/.ssh/id_rsa REDACTED 'osascript -e "output volume of (get volume settings)"' || echo 0
monitors_calibrate_monitors: |-
ssh -q -o StrictHostKeyChecking=no -i /config/.ssh/id_rsa REDACTED osascript <<EOF
tell application "System Events"
click menu bar item 1 of menu bar 2 of application process "SoundID Reference"
click menu item "KRK (28 Sep)" of menu 1 of menu bar 2 of application process "SoundID Reference"
end tell
EOF
monitors_calibrate_headphones: |-
ssh -q -o StrictHostKeyChecking=no -i /config/.ssh/id_rsa REDACTED osascript <<EOF
tell application "System Events"
click menu bar item 1 of menu bar 2 of application process "SoundID Reference"
click menu item "Beyerdynamic DT 990 Pro 250 Ohm Wired Av..." of menu 1 of menu bar 2 of application process "SoundID Reference"
end tell
EOF
#vacuum
xiaomi_vacuum_host: REDACTED
xiaomi_vacuum_token: REDACTED
xiaomi_cloud_username: REDACTED
xiaomi_cloud_password: REDACTED
#unifi
unifi_ip: REDACTED
unifi_port: REDACTED
unifi_user: REDACTED
unifi_pass: REDACTED
#github
github_username: REDACTED
github_access_token: REDACTED
#updates
updates_kemper: |-
ssh -q -o StrictHostKeyChecking=no -i /config/.ssh/id_rsa REDACTED /opt/homebrew/bin/python3 Developer/kemper-version/main.py || \
echo '{"profiler_latest": "", "profiler_installed": "", "rigmanager_latest": "", "rigmanager_installed": ""}'
caldav2_username: REDACTED
caldav2_password: REDACTED
caldav2_calendar: REDACTED