fix(ha): remove duplicate attic fan automation (YAML)

YAML automation 'attic.fan.thermal.control' and pyscript
attic_fan_manager.py were both firing on the same temperature
triggers, sending two notifications per event. Pyscript version
is more complete (fail-safe handling of None sensor values,
periodic watchdog every 5min, startup trigger) - YAML was
redundant. Drop YAML.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
blasebast 2026-06-04 09:05:01 +02:00
parent e39aafdbbe
commit fe55c5d6d1
2 changed files with 6 additions and 62 deletions

View File

@ -90,6 +90,10 @@
{
"path": "detect_secrets.filters.allowlist.is_line_allowlisted"
},
{
"path": "detect_secrets.filters.common.is_baseline_file",
"filename": ".secrets.baseline"
},
{
"path": "detect_secrets.filters.common.is_ignored_due_to_verification_policies",
"min_level": 2
@ -259,7 +263,7 @@
"filename": "homeassistant/config/automations.yaml",
"hashed_secret": "06013aa4c86643f92488f86790b0305800fe67c6",
"is_verified": false,
"line_number": 962
"line_number": 902
}
],
"mktxp/mktxp.conf": [
@ -304,5 +308,5 @@
}
]
},
"generated_at": "2026-04-11T08:30:02Z"
"generated_at": "2026-06-04T07:04:45Z"
}

View File

@ -31,66 +31,6 @@
critical: 1
volume: 1
mode: single
- id: '1586610922319'
alias: attic.fan.thermal.control
description: Controls attic fans based on air temperature OR switch temperature.
Robust logic handles Zigbee sensor failure.
triggers:
- trigger: numeric_state
entity_id: sensor.attic_temperature
above: 40
id: turn_on
- trigger: numeric_state
entity_id: sensor.usw_pro_max_16_poe_temperature
above: 60
id: turn_on
- trigger: numeric_state
entity_id: sensor.attic_temperature
below: 38
id: turn_off
- trigger: numeric_state
entity_id: sensor.usw_pro_max_16_poe_temperature
below: 55
id: turn_off
actions:
- choose:
- conditions:
- condition: trigger
id: turn_on
- condition: state
entity_id: switch.attic_fan
state: 'off'
- condition: template
value_template: "{{ \n (states('sensor.attic_temperature') | float(0) > 40)
or \n (states('sensor.usw_pro_max_16_poe_temperature') | float(0) > 60)
\n}}\n"
sequence:
- action: switch.turn_on
target:
entity_id: switch.attic_fan
- action: notify.mobile_app_is17
data:
message: 'Cooling started. Attic: {{ states(''sensor.attic_temperature'')
}}°C, Switch: {{ states(''sensor.usw_pro_max_16_poe_temperature'') }}°C'
- conditions:
- condition: trigger
id: turn_off
- condition: state
entity_id: switch.attic_fan
state: 'on'
- condition: template
value_template: "{{ \n (states('sensor.attic_temperature') | float(100) <
38) and \n (states('sensor.usw_pro_max_16_poe_temperature') | float(100)
< 55) \n}}\n"
sequence:
- action: switch.turn_off
target:
entity_id: switch.attic_fan
- action: notify.mobile_app_is17
data:
message: 'Cooling finished. Attic: {{ states(''sensor.attic_temperature'')
}}°C, Switch: {{ states(''sensor.usw_pro_max_16_poe_temperature'') }}°C'
mode: single
- id: '1587459406407'
alias: when.entering.home.in.dark.turn.small.hall.light.on
description: Turn on small hall light only if someone (Seba or Stefi) is home