Files
service_zigbee/config.yaml
T

109 lines
2.3 KiB
YAML
Raw Normal View History

2026-08-22 09:06:54 +02:00
mqtt:
host: 192.168.178.247
port: 1883
username: null
password: null
collection:
interval_seconds: 600
mqtt_timeout_seconds: 15
2026-08-22 09:14:13 +02:00
excluded_name_prefix: CHANGE_ME
2026-08-22 09:06:54 +02:00
storage:
data_directory: /var/lib/rrd
graph_directory: /var/www/html/sensors
logging:
level: INFO
format: "%(asctime)s %(levelname)s %(message)s"
sensors:
- name: Server room
topic: zigbee2mqtt/sensor_server_room
2026-08-22 09:14:13 +02:00
- name: CHANGE_ME Sensor 2
topic: zigbee2mqtt/sensor_supply_room
- name: CHANGE_ME Sensor 3
2026-08-22 09:06:54 +02:00
topic: zigbee2mqtt/CHANGE_ME_SENSOR_3
2026-08-22 09:14:13 +02:00
- name: CHANGE_ME Sensor 4
2026-08-22 09:06:54 +02:00
topic: zigbee2mqtt/CHANGE_ME_SENSOR_4
2026-08-22 09:14:13 +02:00
- name: CHANGE_ME Sensor 5
2026-08-22 09:06:54 +02:00
topic: zigbee2mqtt/CHANGE_ME_SENSOR_5
2026-08-22 09:14:13 +02:00
- name: CHANGE_ME Sensor 6
2026-08-22 09:06:54 +02:00
topic: zigbee2mqtt/CHANGE_ME_SENSOR_6
rrd:
# This must normally match collection.interval_seconds.
step_seconds: 600
start: now-600
data_sources:
temperature:
type: GAUGE
heartbeat_seconds: 1200
minimum: -50
maximum: 80
humidity:
type: GAUGE
heartbeat_seconds: 1200
minimum: 0
maximum: 100
battery:
type: GAUGE
heartbeat_seconds: 1200
minimum: 0
maximum: 100
archives:
# Ten-minute values for 8 days.
- consolidation_function: AVERAGE
xfiles_factor: 0.5
steps: 1
rows: 1152
# Hourly averages for 62 days.
- consolidation_function: AVERAGE
xfiles_factor: 0.5
steps: 6
rows: 1488
# Daily averages for just over two years.
- consolidation_function: AVERAGE
xfiles_factor: 0.5
steps: 144
rows: 740
graph:
width: 1000
height: 360
end: now
vertical_label: degrees C / percent
slope_mode: true
alt_autoscale: true
periods:
day:
start: end-1d
label: last 24 hours
month:
start: end-31d
label: last month
two_years:
start: end-2y
label: last two years
temperature:
color: E4575680
legend: Temperature (C)
last_value_format: "Temperature last\\: %5.1lf C"
humidity:
color: 4C78A8
line_width: 2
legend: Humidity (%)
last_value_format: "Humidity last\\: %5.1lf %%"
battery:
color: 54A24B
line_width: 2
dashes: 3,3
legend: Battery (%)
last_value_format: "Battery last\\: %5.1lf %%\\n"
html:
filename: index.html
title: Zigbee sensors
default_period: day
refresh_seconds: 600