2021-09-11 23:34:31 +02:00
# Time sensor (for use in templates and TTS)
- platform : time_date
display_options :
- 'time'
2022-02-20 16:45:59 +01:00
- 'date'
2021-08-24 13:08:35 +02:00
# Raspberry Pi CPU temp
- platform : command_line
name : "CPU Temp"
command : "cat /sys/class/thermal/thermal_zone0/temp"
unit_of_measurement : "°C"
value_template : "{{ value | multiply(0.001) | round(1) }}"
# Moon Phases
- platform : moon
# DWD weather warnings
- platform : dwd_weather_warnings
name : "DWD Unwetterwarnungen"
region_name : "Münster-Süd"
2021-08-26 12:22:39 +02:00
# Database size sensor
- platform : sql
db_url : !secret ha_recorder_dburl
queries :
- name : "Home Assistant Datenbankgröße"
query : 'SELECT table_schema "database", Round(Sum(data_length + index_length) / 1048576, 2) "value" FROM information_schema.tables WHERE table_schema="homeassistant" GROUP BY table_schema;'
column : 'value'
unit_of_measurement : MB
2021-09-06 15:55:43 +02:00
# SNMP (Juniper) router traffic sensor
- platform : snmp
name : snmp_wan_in
host : !secret router_ip
community : !secret router_community
baseoid : .1.3.6.1.2.1.2.2.1.10.511
- platform : snmp
name : snmp_wan_out
host : !secret router_ip
community : !secret router_community
baseoid : .1.3.6.1.2.1.2.2.1.16.511
- platform : template
sensors :
2022-02-20 16:45:59 +01:00
internet_speed_in :
friendly_name : 'Internet Speed IN'
value_template : '{{ ((states.input_number.internet_traffic_delta_in.state | float ) / 1000000 ) | round(2) }}'
unit_of_measurement : 'Mbps'
2021-09-06 15:55:43 +02:00
- platform : template
sensors :
2022-02-20 16:45:59 +01:00
internet_speed_out :
friendly_name : 'Internet Speed OUT'
value_template : '{{ ((states.input_number.internet_traffic_delta_out.state | float ) / 1000000 ) | round(2) }}'
unit_of_measurement : 'Mbps'
2021-09-06 15:55:43 +02:00
- platform : statistics
name : 'WAN Traffic In'
2022-02-22 23:19:28 +01:00
state_characteristic : mean
2021-09-06 15:55:43 +02:00
entity_id : sensor.internet_speed_in
- platform : statistics
name : 'WAN Traffic Out'
2022-02-22 23:19:28 +01:00
state_characteristic : mean
2021-09-06 15:55:43 +02:00
entity_id : sensor.internet_speed_out
2022-02-20 16:45:59 +01:00
- platform : template
sensors :
sun_rising_template :
friendly_name : "Sun Rising Template"
value_template : "{{ as_timestamp(states.sun.sun.attributes.next_rising) | timestamp_custom ('%H:%M') }}"
2022-02-22 23:19:28 +01:00
2022-02-20 16:45:59 +01:00
- platform : template
sensors :
sun_setting_template :
friendly_name : "Sun Setting Template"
value_template : "{{ as_timestamp(states.sun.sun.attributes.next_setting) | timestamp_custom ('%H:%M') }}"
2022-03-28 18:00:41 +02:00
# MQTT bathroom sensors
- platform : mqtt
name : "Badezimmer Temperatur"
unique_id : bathroom.temperature
state_topic : "home/bathroom/climate/sensor/temperature"
2022-03-28 20:25:15 +02:00
device_class : 'temperature'
state_class : 'measurement'
2022-03-28 18:00:41 +02:00
unit_of_measurement : '°C'
2022-03-28 20:25:15 +02:00
last_reset_topic : "home/bathroom/climate/sensor/temperature"
last_reset_value_template : '1970-01-01T00:00:00+00:00'
2022-05-21 04:46:29 +02:00
device :
identifiers : MagicMirror-DHT22-T
name : MagicMirror-DHT22-T
model : DHT22
manufacturer : mqtt-io
2022-03-28 18:00:41 +02:00
force_update : true
- platform : mqtt
name : "Badezimmer Luftfeuchtigkeit"
unique_id : bathroom.humidity
state_topic : "home/bathroom/climate/sensor/humidity"
2022-03-28 20:25:15 +02:00
device_class : 'humidity'
state_class : 'measurement'
2022-03-28 18:00:41 +02:00
unit_of_measurement : '%'
2022-03-28 20:25:15 +02:00
last_reset_topic : "home/bathroom/climate/sensor/humidity"
last_reset_value_template : '1970-01-01T00:00:00+00:00'
2022-05-21 04:46:29 +02:00
device :
identifiers : MagicMirror-DHT22-H
name : MagicMirror-DHT22-H
model : DHT22
manufacturer : mqtt-io
2022-03-28 18:00:41 +02:00
force_update : true
2022-05-21 04:46:29 +02:00
# MQTT/RTL_433 (outdoor) sensors
# Reliable sensor with good placement (good values) and good reception
- device_class : battery
name : Auriol-AHFL-1-106-B
unit_of_measurement : '%'
value_template : '{{ float(value) * 99 + 1 }}'
state_class : measurement
entity_category : diagnostic
state_topic : rtl_433/sdr/devices/Auriol-AHFL/1/106/battery_ok
unique_id : Auriol-AHFL-1-106-B
device :
identifiers : Auriol-AHFL-1-106
name : Auriol-AHFL-1-106
model : Auriol-AHFL
manufacturer : rtl_433
platform : mqtt
- device_class : temperature
name : Auriol-AHFL-1-106-T
unit_of_measurement : °C
value_template : '{{ value|float }}'
state_class : measurement
state_topic : rtl_433/sdr/devices/Auriol-AHFL/1/106/temperature_C
unique_id : Auriol-AHFL-1-106-T
device :
identifiers : Auriol-AHFL-1-106
name : Auriol-AHFL-1-106
model : Auriol-AHFL
manufacturer : rtl_433
platform : mqtt
- device_class : humidity
name : Auriol-AHFL-1-106-H
unit_of_measurement : '%'
value_template : '{{ value|float }}'
state_class : measurement
state_topic : rtl_433/sdr/devices/Auriol-AHFL/1/106/humidity
unique_id : Auriol-AHFL-1-106-H
device :
identifiers : Auriol-AHFL-1-106
name : Auriol-AHFL-1-106
model : Auriol-AHFL
manufacturer : rtl_433
platform : mqtt
# Only temperature
- device_class : temperature
name : AmbientWeather-TX8300-1-29-T
unit_of_measurement : °C
value_template : '{{ value|float }}'
state_class : measurement
state_topic : rtl_433/sdr/devices/AmbientWeather-TX8300/1/29/temperature_C
unique_id : AmbientWeather-TX8300-1-29-T
device :
identifiers : AmbientWeather-TX8300-1-29
name : AmbientWeather-TX8300-1-29
model : AmbientWeather-TX8300
manufacturer : rtl_433
platform : mqtt
# fair T/H/Bat
- device_class : battery
name : inFactory-TH-1-129-B
unit_of_measurement : '%'
value_template : '{{ float(value) * 99 + 1 }}'
state_class : measurement
entity_category : diagnostic
state_topic : rtl_433/sdr/devices/inFactory-TH/1/129/battery_ok
unique_id : inFactory-TH-1-129-B
device :
identifiers : inFactory-TH-1-129
name : inFactory-TH-1-129
model : inFactory-TH
manufacturer : rtl_433
platform : mqtt
- device_class : temperature
name : inFactory-TH-1-129-F
unit_of_measurement : °F
value_template : '{{ value|float }}'
state_class : measurement
state_topic : rtl_433/sdr/devices/inFactory-TH/1/129/temperature_F
unique_id : inFactory-TH-1-129-F
device :
identifiers : inFactory-TH-1-129
name : inFactory-TH-1-129
model : inFactory-TH
manufacturer : rtl_433
platform : mqtt
- device_class : humidity
name : inFactory-TH-1-129-H
unit_of_measurement : '%'
value_template : '{{ value|float }}'
state_class : measurement
state_topic : rtl_433/sdr/devices/inFactory-TH/1/129/humidity
unique_id : inFactory-TH-1-129-H
device :
identifiers : inFactory-TH-1-129
name : inFactory-TH-1-129
model : inFactory-TH
manufacturer : rtl_433
platform : mqtt
# weak, good T/H/Bat
- device_class : battery
name : Nexus-TH-1-224-B
unit_of_measurement : '%'
value_template : '{{ float(value) * 99 + 1 }}'
state_class : measurement
entity_category : diagnostic
state_topic : rtl_433/sdr/devices/Nexus-TH/1/224/battery_ok
unique_id : Nexus-TH-1-224-B
device :
identifiers : Nexus-TH-1-224
name : Nexus-TH-1-224
model : Nexus-TH
manufacturer : rtl_433
platform : mqtt
- device_class : temperature
name : Nexus-TH-1-224-T
unit_of_measurement : °C
value_template : '{{ value|float }}'
state_class : measurement
state_topic : rtl_433/sdr/devices/Nexus-TH/1/224/temperature_C
unique_id : Nexus-TH-1-224-T
device :
identifiers : Nexus-TH-1-224
name : Nexus-TH-1-224
model : Nexus-TH
manufacturer : rtl_433
platform : mqtt
- device_class : humidity
name : Nexus-TH-1-224-H
unit_of_measurement : '%'
value_template : '{{ value|float }}'
state_class : measurement
state_topic : rtl_433/sdr/devices/Nexus-TH/1/224/humidity
unique_id : Nexus-TH-1-224-H
device :
identifiers : Nexus-TH-1-224
name : Nexus-TH-1-224
model : Nexus-TH
manufacturer : rtl_433
platform : mqtt