- Replace sensor.claus_distance_home with device_tracker.clausiphone (home/not_home)
- Change triggers from numeric_state to state-based presence detection
- Adjust active time window to 05:00–23:00
- Add push notifications to mobile_app_clausiphone15 on garage open/close
- Align template syntax with `!include_dir_merge_named` setup
- Remove invalid nested `template:` key from included file
- Add `unique_id` for proper entity registration and UI management
- Refactor state logic using list + select for cleaner evaluation
- (Optional) add explicit triggers to ensure reliable state updates
Fixes issue where `binary_sensor.family_presence` did not update correctly,
causing presence-based automations to fail.
* Replace multiple device-based automations with a single event-driven automation
* Eliminate duplicate `unique_id` conflicts
* Switch from device actions to service calls (`cover.open_cover`, `cover.close_cover`, `light.turn_on/off`)
* Add support for:
* Short press (button 1) → open garage
* Long press (button 1) → close garage
* Short press (button 4) → turn off all lights
* Long press (button 4) → turn on all lights
* Set `mode: restart` to improve responsiveness under rapid input
* Simplify structure for easier maintenance and debugging
Result: more stable and predictable Hue switch behavior
- Beregner manglende kWh baseret på SOC og charge limit
- Finder de billigste 15-min elspot-timer før deadline
- Starter/stopper opladning via switch.home_charging
- Tilføjer failsafe 1 time før deadline
- Håndterer connected_finished session reset automatisk
- Stopper opladning når charge limit er nået
- Fuld modulopdeling: input_datetime, templates, binary_sensors, automations