Update HVAC fan automation descriptions and improve HTTP configuration

This commit is contained in:
CeeWeasel
2025-08-23 10:30:50 -04:00
parent 6afb4d07f8
commit 544c4788b8
9 changed files with 155 additions and 89 deletions
+35 -30
View File
@@ -1,31 +1,36 @@
http:
#ssl_certificate: /ssl/origin.pem
#ssl_key: /ssl/privkey.pem
ip_ban_enabled: true
login_attempts_threshold: 5
use_x_forwarded_for: true
trusted_proxies:
- 192.168.1.0/24
- 127.0.0.1
- 172.30.32.0/23
- 172.16.0.0/12
- 172.17.0.0/16
- ::1
- 172.21.0.145
# Moved to configuration.yaml per Cloudflared addon docs:
# Documentation
# Document that http in configuration.yaml must no use !include or packages @felipecrs (#886)
# Add the Cloudflare IPs as trusted proxies https://www.cloudflare.com/ips-v4
- 173.245.48.0/20
- 103.21.244.0/22
- 103.22.200.0/22
- 103.31.4.0/22
- 141.101.64.0/18
- 108.162.192.0/18
- 190.93.240.0/20
- 188.114.96.0/20
- 197.234.240.0/22
- 198.41.128.0/17
- 162.158.0.0/15
- 104.16.0.0/13
- 104.24.0.0/14
- 172.64.0.0/13
- 131.0.72.0/22
# http:
# #ssl_certificate: /ssl/origin.pem
# #ssl_key: /ssl/privkey.pem
# ip_ban_enabled: true
# login_attempts_threshold: 5
# use_x_forwarded_for: true
# trusted_proxies:
# - 192.168.1.0/24
# - 127.0.0.1
# - 172.30.32.0/23
# - 172.16.0.0/12
# - 172.17.0.0/16
# - ::1
# - 172.21.0.145
# # Add the Cloudflare IPs as trusted proxies https://www.cloudflare.com/ips-v4
# - 173.245.48.0/20
# - 103.21.244.0/22
# - 103.22.200.0/22
# - 103.31.4.0/22
# - 141.101.64.0/18
# - 108.162.192.0/18
# - 190.93.240.0/20
# - 188.114.96.0/20
# - 197.234.240.0/22
# - 198.41.128.0/17
# - 162.158.0.0/15
# - 104.16.0.0/13
# - 104.24.0.0/14
# - 172.64.0.0/13
# - 131.0.72.0/22
@@ -1,55 +1,56 @@
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
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
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
+4
View File
@@ -2,6 +2,10 @@ platform: template
switches:
thermostat_fan_mode:
unique_id: templateswitch.thermostat_fan_mode
# This shouldn't be used because it just re-circulates the air in the house.
# Since there aren't any returns in the basement, the upstairs air recirculates itself
# which accomplishes nothing
# I'd need to get some kind of fresh air intake and a damper
friendly_name: "Thermostat Fan Mode"
value_template: >-
{% if state_attr('climate.thermostat', 'fan_min_on_time') | int(default=0) < 5 %}