POC event handler
This commit is contained in:
+126
@@ -0,0 +1,126 @@
|
||||
mqtt:
|
||||
host: 192.168.178.247
|
||||
port: 1883
|
||||
username: null
|
||||
password: null
|
||||
|
||||
collection:
|
||||
interval_seconds: 600
|
||||
mqtt_timeout_seconds: 15
|
||||
excluded_name_prefix: CHANGE_ME
|
||||
|
||||
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/sensor1_server_room
|
||||
- name: Supply room
|
||||
topic: zigbee2mqtt/sensor2_supply_room
|
||||
- name: CHANGE_ME Sensor 3
|
||||
topic: zigbee2mqtt/CHANGE_ME_SENSOR_3
|
||||
- name: CHANGE_ME Sensor 4
|
||||
topic: zigbee2mqtt/CHANGE_ME_SENSOR_4
|
||||
- name: CHANGE_ME Sensor 5
|
||||
topic: zigbee2mqtt/CHANGE_ME_SENSOR_5
|
||||
- name: CHANGE_ME Sensor 6
|
||||
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
|
||||
slope_mode: true
|
||||
axes:
|
||||
temperature:
|
||||
minimum: 0
|
||||
maximum: 30
|
||||
label: degrees C
|
||||
grid_interval: 5
|
||||
label_every_grid_lines: 1
|
||||
number_format: "%.0lf"
|
||||
reference_lines:
|
||||
- value: 15
|
||||
color: D3D3D3
|
||||
- value: 20
|
||||
color: D3D3D3
|
||||
- value: 25
|
||||
color: D3D3D3
|
||||
percentage:
|
||||
minimum: 10
|
||||
maximum: 100
|
||||
label: percent
|
||||
number_format: "%.0lf"
|
||||
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
|
||||
Reference in New Issue
Block a user