forked from tobias-kuendig/hacompanion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hacompanion.toml
99 lines (85 loc) · 3.05 KB
/
hacompanion.toml
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
[homeassistant]
# Generate the token on the /profile page in Home Assistant
token = "eyJ0eXAiOi..."
# The display name of your device in Home Assistant
device_name = "Your Desktop"
# Enter the full URL of your Home Assistant instance.
host = "http://<your-home-assistant-ip>:8123"
[companion]
# New sensor values are sent to Home Assistant at this interval.
update_interval = "15s"
# The location, where all registration information for Home Assistant will be stored on your machine.
# You do not need to change this.
registration_file = "~/.config/hacompanion-registration.json"
[notifications]
# Where Home Assistant should send notifications to. Make sure to insert your
# local IP address here. Make sure the port is the same as in the `listen` setting below.
push_url = "http://<your-local-ip>:8080/notifications"
# The IP and Port where the Notification server on your machine will listen.
# By default listens on port 8080 on all interfaces.
listen = ":8080"
##
## Below are all available senors. Enable/Disable them as needed.
##
# Report the number of processes that are currently accessing your webcam.
# This will send the number as reported by `lsmod | grep uvcvideo`.
[sensor.webcam]
enabled = true
name = "Webcam Process Count"
# Report the CPU temperature of all cores.
# Note: Requires `lm-sensors` package to be installed locally.
[sensor.cpu_temp]
enabled = true
name = "CPU Temperature"
meta = { celsius = true }
# Report the CPU usage of all cores.
[sensor.cpu_usage]
enabled = true
name = "CPU Usage"
# Report the current system uptime since last boot.
[sensor.uptime]
enabled = true
name = "Last Boot"
# Report the current memory/swap usage.
[sensor.memory]
enabled = true
name = "Memory"
# Report the current battery charge.
# In case of multiple batteries, you can set which battery to monitor
# in the meta section. To see available batteries run
# `ls /sys/class/power_supply/`
[sensor.power]
enabled = true
name = "Power"
meta = { battery = "BAT0" }
# Report if the companion process is running on this machine.
[sensor.companion_running]
enabled = true
name = "Companion Is Running"
# Report if this machine has connection to a remote host.
# You can configure which host to ping in the meta section.
[sensor.online_check]
enabled = true
name = "Is Online"
# Available modes are "http" and "ping".
# meta = { target = "192.168.1.1", mode = "ping" }
meta = { target = "https://google.com", mode = "http" }
# Report the average system load in the last 1m, 5m and 15m.
[sensor.load_avg]
enabled = true
name = "Load Avg"
# Report the audio volume and mute state.
[sensor.audio_volume]
enabled = true
name = "Audio Volume"
## Register a custom sensor that is populated by a custom script.
## See the README for more details on this feature.
# [script.your_custom_script_sensor]
# path = "/path/to/your/script.sh"
## Attributes according to
## https://developers.home-assistant.io/docs/api/native-app-integration/sensors
# name = "Friendly name of your custom sensor"
# icon = "mdi:script-text"
# type = "sensor" # or binary_sensor
## unit_of_measurement = "%"
## device_class = "battery"