mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-10 11:00:14 -04:00
56 lines
1.8 KiB
YAML
56 lines
1.8 KiB
YAML
mqtt:
|
|
sensor:
|
|
- name: "Timestamp"
|
|
device_class: timestamp
|
|
icon: mdi:clock-in
|
|
state_topic: "rtl_433/9b13b3f4-rtl433/devices/EcoWitt-WH40/21917/time"
|
|
entity_category: diagnostic
|
|
unique_id: ecowitt-wh40-time
|
|
device:
|
|
identifiers: ecowitt-wh40
|
|
name: Rain Gauge
|
|
model: WH40
|
|
manufacturer: EcoWitt
|
|
|
|
- name: "Precipitation"
|
|
device_class: precipitation
|
|
unit_of_measurement: "mm"
|
|
value_template: "{{ value|float }}"
|
|
state_class: measurement
|
|
state_topic: "rtl_433/9b13b3f4-rtl433/devices/EcoWitt-WH40/21917/rain_mm"
|
|
unique_id: ecowitt-wh40-rain-mm
|
|
force_update: true # Enabling this to hopefully fix the trend sensor (binary_sensor.is_raining)
|
|
device:
|
|
identifiers: ecowitt-wh40
|
|
name: Rain Gauge
|
|
model: WH40
|
|
manufacturer: EcoWitt
|
|
|
|
- name: "Battery"
|
|
device_class: battery
|
|
unit_of_measurement: "%"
|
|
value_template: "{{ (float(value) / 1.5) * 100 | round(0) }}"
|
|
state_class: measurement
|
|
entity_category: diagnostic
|
|
state_topic: "rtl_433/9b13b3f4-rtl433/devices/EcoWitt-WH40/21917/battery_V"
|
|
unique_id: ecowitt-wh40-battery-v
|
|
device:
|
|
identifiers: ecowitt-wh40
|
|
name: Rain Gauge
|
|
model: WH40
|
|
manufacturer: EcoWitt
|
|
|
|
binary_sensor:
|
|
- name: "Battery OK"
|
|
value_template: "{{ value|int }}"
|
|
device_class: problem
|
|
entity_category: diagnostic
|
|
state_topic: "rtl_433/9b13b3f4-rtl433/devices/EcoWitt-WH40/21917/battery_ok"
|
|
payload_on: "1"
|
|
payload_off: "0"
|
|
unique_id: ecowitt-wh40-battery-ok
|
|
device:
|
|
identifiers: ecowitt-wh40
|
|
name: Rain Gauge
|
|
model: WH40
|
|
manufacturer: EcoWitt |