Commit Graph

214 Commits

Author SHA1 Message Date
claus c37fc87347 Fix compact home overview sensor entities 2026-04-06 17:54:00 +02:00
claus a0b2e33e49 Compact home overview status cards 2026-04-06 17:27:54 +02:00
claus 89b4724762 Clean up Tesla sensors and HomeKit filter 2026-04-06 16:20:52 +02:00
claus 61b60dd78b Fix Tesla log warnings 2026-04-06 16:00:06 +02:00
claus 4a18e66bd5 Fix template include loading 2026-04-06 13:46:13 +02:00
claus 32b4fbf6d9 Fix dishwasher price planning template 2026-04-06 13:04:49 +02:00
claus cd6643cd35 Fix Tesla smart charging hysteresis 2026-04-06 13:01:06 +02:00
claus 57531a5a23 Refine dashboards and vacation automations 2026-04-06 12:59:42 +02:00
claus 8e6c6d0111 Show compact dishwasher start time 2026-04-06 11:42:19 +02:00
claus 1169411aca Add scheduled Roborock syd cleaning 2026-04-06 10:06:25 +02:00
claus 3aa824e581 Add dishwasher night scheduling automation 2026-04-06 09:10:57 +02:00
claus 175bf99c7a Add curtain schedule automation 2026-04-06 07:40:19 +02:00
claus 9bc76effe6 Migrate legacy template sensors 2026-04-06 07:15:09 +02:00
claus e800b3ba69 Use hybrid family presence tracking 2026-04-05 19:29:36 +02:00
claus b68c4a3382 Fix presence simulation activation flow 2026-04-05 19:23:09 +02:00
claus bc706543b3 Add stue motion lighting automation 2026-04-05 18:29:21 +02:00
claus 49f42b1f27 Rename and refine skab lighting automation 2026-04-05 18:15:24 +02:00
claus 61aca67c45 Refine kontor lighting automation 2026-04-05 17:59:27 +02:00
claus 79eb860711 Add forgang motion lighting automation 2026-04-05 17:41:10 +02:00
claus 14824b0ab7 feat: improve presence simulation with staggered lighting and realistic behavior
- Replace simultaneous light activation with sequential (staggered) control
- Add per-light random delays for more natural behavior
- Implement reverse-order light shutdown for realism
- Introduce time-based variations (morning, midday, evening)
- Add randomized music playback using Spotify playlist on Sonos
- Refactor automation using repeat loops and variables for maintainability
2026-03-26 15:47:26 +01:00
claus 0b4fc7f2f4 fix presence 2026-03-25 21:06:57 +01:00
claus bef3fc5b4c slettes - redundant 2026-03-25 21:06:25 +01:00
claus 40c78ed6af numeric opvasker 2026-03-25 07:15:29 +01:00
claus c91e669761 tesla 2026-03-24 20:45:05 +01:00
claus 7f0859f446 tesla 2026-03-24 18:25:18 +01:00
claus 64032e6682 tesla charging 2026-03-24 18:24:58 +01:00
claus 6b6b69b766 vacation 2026-03-24 18:24:27 +01:00
claus cbeb832dd7 presence simulation 2026-03-24 18:22:52 +01:00
claus 8fa01e1eb4 slettet 2026-03-22 07:51:34 +01:00
claus 5eae8e1d6a nu virker det 2026-03-22 07:50:18 +01:00
claus 1dc0866fe3 Nu virker det 2026-03-22 07:49:16 +01:00
claus 5e368938bc tilpasset 2026-03-22 07:48:54 +01:00
claus 18c6b5e4cb feat(tesla): automate charge deadline to next morning
- Add daily automation to set tesla_charge_deadline at 07:00 next day (13:05 trigger)
- Add automation to update deadline when car is plugged in
- Ensures smart charging always has valid future window
- Eliminates manual deadline management
2026-03-22 07:48:31 +01:00
claus 5cfb27c3ad Refactor Tesla charging templates to modern template syntax
- Converted all Tesla sensors and binary_sensors to the modern
  `template:` integration format compatible with Home Assistant 2026+
- Combined kWh needed, charge hours, and smart charging decision
  into a single template file for inclusion via !include_dir_merge_named
- Preserves existing behavior while preparing for future HA versions
- Legacy template warnings remain for binary_sensor but functionality works
2026-03-20 20:19:50 +01:00
claus 70b78b6275 Improve garage closing logic using vehicle activity
- Only close garage when vehicle tracker is active (speed available)
- Prevents closing when leaving on foot or bike
- Add delay to ensure safe closing after departure
- Align closing logic with car-based opening conditions
2026-03-20 16:31:58 +01:00
claus 3d988314aa Use vehicle speed attribute to control garage opening
- Only open garage if SnowyWhite tracker has valid speed attribute
- Prevents false triggers when car is asleep (speed = unknown)
- Ensures garage opens only when arriving by car, not bike or foot
2026-03-20 07:27:35 +01:00
claus 1e71bc5372 feat(roborock): add mobile notifications for cleaning start, stop, and failure
- Send push notification on successful auto-start of cleaning
- Include elapsed empty-house time in start notification
- Add failure notification if robot fails to start after retries
- Notify when cleaning is stopped due to someone arriving home
- Ensure notifications only trigger on actual state outcomes (not attempts)
2026-03-19 19:02:05 +01:00
claus 81d9022052 identering 2026-03-19 17:21:41 +01:00
claus 1dfc634d9c Fix garage automation triggers and improve presence handling
- Update leaving trigger to fire on any transition from "home" (not just to "not_home")
- Handle zone-based states (e.g. Arbeit, Dybbroparken) correctly
- Relax SnowyWhite tracker condition to allow non-"not_home" states (fixes blocking on "unknown")
- Improve reliability of presence-based garage control
2026-03-19 16:29:19 +01:00
claus 734bbe9ad6 changed max 2026-03-19 14:56:16 +01:00
claus 2ec90e316b add helper 2026-03-19 14:55:54 +01:00
claus 8c1dded88e feat(roborock): make smart cleaning automation robust and deterministic
- Replace fragile `for:` trigger with timestamp-based empty-house logic
- Add input_datetime to track when house became empty
- Introduce time_pattern polling (every 5 min) to avoid missed triggers
- Add retry mechanism (up to 3 attempts) for starting cleaning
- Improve vacuum state handling (docked/idle/charging)
- Add race-safe stop automation when someone returns home
- Split logic into dedicated automations (tracking, reset, start, stop)
- Ensure daily run limit via input_number

Fixes issue where cleaning was not triggered due to presence sensor flapping/unavailable states.
2026-03-19 14:55:24 +01:00
claus ed6a67b7af oprydning 2026-03-19 07:00:15 +01:00
claus 290b0aa373 Update garage automation to use device_tracker and add notifications
- 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
2026-03-19 06:59:52 +01:00
claus a93cad7434 Fik ombyttet A og D 2026-03-18 19:15:03 +01:00
claus 2d51a1a41c Ændret tracker til unifi når kommer hjem 2026-03-18 07:04:25 +01:00
claus 5c90741847 Ændret alle "kommer hjem" trackers til unifi 2026-03-18 07:00:55 +01:00
claus 800bc5b7ea tror det virker nu 2026-03-17 21:20:46 +01:00
claus e4bf035082 fix(homeassistant): correct template binary_sensor structure for family presence
- 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.
2026-03-17 16:39:58 +01:00
claus 1f261ee8d2 Refactor Home Assistant Hue switch automations to use hue_event for improved reliability
* 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
2026-03-17 16:22:35 +01:00