Skip to content

Commit 054da8e

Browse files
committed
Update Aqara W500
1 parent b567948 commit 054da8e

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

docs/smart-home/packages/aqara_w500.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,44 @@ version: 1.0.0
3434
# - Helpers: input_number.electricity_high_price_threshold, input_number.bathroom_floor_heat_target_temperature, input_number.bathroom_floor_heat_default_temperature, input_number.bathroom_floor_heat_override_duration, timer.bathroom_floor_heating_timer
3535
# ------------------------------------------------------------------------------
3636

37+
# ==============================================================================
38+
# 1. TEMPLATE SENSORS (Raw Data Normalization)
39+
# ==============================================================================
40+
template:
41+
- sensor:
42+
- name: "Aqara W500 Temperature (Raw)"
43+
unique_id: aqara_w500_temperature_raw
44+
unit_of_measurement: "°C"
45+
device_class: temperature
46+
state_class: measurement
47+
state: >
48+
{% set raw = state_attr('climate.aqara_w500', 'current_temperature') %}
49+
{% set value = raw | float(default=0.0) %}
50+
{{ value | round(1) }}
51+
52+
- name: "Aqara W500 Bathroom Heating HVAC"
53+
unique_id: aqara_w500_bathroom_heating_hvac
54+
state: "{{ state_attr('climate.aqara_w500', 'hvac_action') }}"
55+
icon: mdi:heating-coil
56+
57+
# ==============================================================================
58+
# 2. FILTER SENSORS (Data Smoothing)
59+
# ==============================================================================
60+
sensor:
61+
- platform: filter
62+
name: "Aqara W500 Temperature (Smoothed)"
63+
entity_id: sensor.aqara_w500_temperature_raw
64+
unique_id: aqara_w500_temperature_smoothed
65+
filters:
66+
- filter: lowpass
67+
time_constant: 10
68+
precision: 1
69+
- filter: time_throttle
70+
window_size: 60
71+
72+
# ==============================================================================
73+
# 3. AUTOMATION (Control Logic)
74+
# ==============================================================================
3775
automation:
3876
# ==============================================================================
3977
# 1. Automation: Bathroom Heating On when showering

0 commit comments

Comments
 (0)