Commit Graph
100 Commits
Author SHA1 Message Date
claus d0379f31ee Improve indoor motion alert automation 2026-04-06 19:31:13 +02:00
claus 6cf1730723 Add receiver power button to dashboard 2026-04-06 19:24:58 +02:00
claus 8f31bce128 Add receiver preset and volume controls 2026-04-06 19:18:28 +02:00
claus 4eedd70511 Compact family and garbage cards 2026-04-06 18:20:50 +02:00
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 16b45ec30e Remove HomeKit integration 2026-04-06 16:49:11 +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 4d8d2d721f Ignore local Home Assistant artifacts 2026-04-06 12:55:50 +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 e5136d3aed Show next dishwasher run on dashboard 2026-04-06 09:32:50 +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 685b17cbe8 Migrate Lovelace YAML dashboard config 2026-04-06 07:01:53 +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 0416ec39de skift navn på dashboard 2026-03-25 20:59:47 +01:00
claus 4d6cd9fc58 commit besked 2026-03-25 07:35:30 +01:00
claus 34ad1c29ca small bug 2026-03-25 07:34:51 +01:00
claus cc42f93c51 feat(lovelace): refactor home dashboard layout and improve data grouping
- removed "antal hjemme" and standalone sunset card
- added weather forecast card with date, sunrise and sunset (template sensors)
- removed outdoor temperature gauge
- reorganized climate data into structured groups:
  - temperature (3 rooms)
  - CO2 (3 rooms)
  - humidity (3 rooms)
- compacted energy and dishwasher into horizontal stack
- simplified vacuum card (reduced noise)
- improved overall layout readability and consistency

focus: better UX, clearer grouping, reduced clutter, production-stable structure
2026-03-25 07:29:32 +01:00
claus 9a4efbcd6a kontekst 2026-03-25 07:19:21 +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 98df2da6f9 feat(dashboard): Full Pro SnowyWhite Tesla Lovelace view
- Implemented numeric template sensors for battery, range, charging rate, energy added, and charging state
- Added gauges for battery and range
- Added tiles for charging status, rate, energy, charger power, and time to full charge
- Added Start/Stop charging buttons
- Added history-graph timeline for charging
- Added sections for doors & locks, temperature, arrival info, and maintenance/alerts
- Fully compatible with standard Lovelace (no Dwains Dashboard dependencies)
2026-03-24 20:44:38 +01:00
claus 04e89907cc støvsuger 2026-03-24 19:32:51 +01:00
claus 14548f9509 Fix: Replace roborock-map-card with static xiaomi-vacuum-map-card image
- Removed roborock-map-card causing calibration errors
- Use image.roborock_s8_pro_ultra_map_0 as a static map
- Keep vacuum status, mop, and automations functional
- Avoids "invalid calibration" errors while preserving dashboard functionality
2026-03-24 19:32:32 +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 e542dc17c0 map 2026-03-24 18:21:56 +01:00
claus f81430d576 fix 2026-03-24 18:21:27 +01:00
claus 75928671d1 vacation 2026-03-24 18:21:13 +01:00
claus 6074dcac98 modules fixed 2026-03-24 18:20:47 +01:00
claus c979cdbf99 clean up inclusions 2026-03-24 18:20:17 +01:00
claus c60aa24576 tune 2026-03-22 20:02:40 +01:00
claus f525ad040c version 2026-03-22 20:02:20 +01:00
claus 9a8f714035 lovelace 2026-03-22 20:02:04 +01:00
claus 2a3dac5be8 slet 2026-03-22 20:01:52 +01:00
claus 7d7eab9124 added resource 2026-03-22 20:01:24 +01:00
claus 397a3dea2d first 2026-03-22 20:00:15 +01:00
claus 0ff5b8727a first 2026-03-22 20:00:03 +01:00
claus 452f33ab62 first 2026-03-22 19:59:46 +01:00
claus 39e02fd52b daniel 2026-03-22 19:59:20 +01:00
claus f860e4f772 flyttet renovation 2026-03-22 19:38:04 +01:00
claus 1ee025df19 dashboard 2026-03-22 19:33:15 +01:00
claus 78db8c7ca7 fixed map 2026-03-22 19:31:20 +01:00
claus d751874a66 new 2026-03-22 19:20:39 +01:00
claus 81a2165fa4 dash 2026-03-22 18:31:28 +01:00
claus 5b3df9b044 new dash 2026-03-22 18:31:11 +01:00
claus 4484b376d6 new dash 2026-03-22 18:30:32 +01:00
claus 55d36e2f28 new dash 2026-03-22 18:30:16 +01:00
claus 6f9dabbf9f new dash 2026-03-22 18:29:59 +01:00
claus 8354450e96 new dashboard 2026-03-22 18:29:42 +01:00
claus 96989411f7 feat(vacuum): Tilføj komplet Roborock view med historik og automations
- Oversigt over Roborock status, fejl og rengøring i gang
- Visning af kort over huset via camera entity
- Rum-specifikke start-knapper (Køkken/Bryggers, Syd, Mop)
- Historik-graf for de sidste 24 timer
- Automations-knapper: Rengør hele huset, Start mop, Stop
- Dock-fejlindikator
- Mobil- og desktop-optimeret grid-layout
2026-03-22 18:28:47 +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
claus f1967f24cd fixes to get rid of startup messages 2026-03-17 06:59:06 +01:00
claus da7239d3c5 refactor(gitignore): simplify and reduce rules while preserving behavior
- Remove redundant and duplicate ignore patterns
- Simplify .DS_Store handling to a single global rule
- Ensure custom_components/ is fully ignored
- Replace multiple include rules with recursive patterns (e.g. include/**/*.yaml)
- Collapse view and include folder whitelisting
- Generalize PEM file allowance (!*.pem)
- Improve readability and maintainability

Result:
- ~40% reduction in file size
- Same effective ignore/whitelist behavior
- Easier to extend and maintain going forward
2026-03-17 06:31:20 +01:00
claus 5a9db0b8c2 improve(automation): increase reliability of tesla charging control
- Change mode to restart to prevent skipped runs
- Replace failsafe template trigger with time_pattern
- Add plugged-in condition to avoid unnecessary switching
- Add explicit deadline validation condition

Result:
- More reliable execution of charging logic
- Prevents missed failsafe activation
- Reduces unnecessary charger toggling
2026-03-17 06:18:50 +01:00
claus dde5ff292a fix(template): correct and simplify tesla_charge_now logic
- Convert tesla_charge_now to binary_sensor
- Replace strptime with as_timestamp for robust time parsing
- Fix hour alignment (remove 15-min slot mismatch)
- Implement proper deadline filtering using timestamps
- Simplify template to minimal, readable logic

Result:
- Accurate identification of cheapest charging hours
- Eliminates false negatives in charge scheduling
2026-03-17 06:18:27 +01:00
claus bed93b148f Get rid of warnings in the log 2026-03-16 21:03:57 +01:00
claus da931bbca6 Make startup happy 2026-03-16 19:38:07 +01:00
claus 8fa4db9d89 fix: add platform to tesla_smart_charge binary sensor and move to templates directory 2026-03-16 18:16:19 +01:00
claus 5d3a195ba3 nye fotos 2026-03-16 17:05:28 +01:00
claus 4a155ad545 feat: implement Tesla smart charging v3 for Zaptec
- 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
2026-03-16 16:51:30 +01:00