Commit Graph

250 Commits

Author SHA1 Message Date
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
claus 3b57465bf2 Reduce Home Assistant log verbosity and optimize recorder configuration
* Set global logger level to WARNING to reduce log noise
* Suppress noisy integration logs (MQTT, UniFi, Netatmo, DLNA, UPnP)
* Limit logging from custom_components to WARNING
* Add minimal recorder configuration with 7-day retention
* Exclude high-frequency entities (linkquality, signal) from recorder
* Disable excessive discovery logging

Result: significantly reduced log volume and smaller recorder database.
2026-03-15 20:31:01 +01:00
claus 8f0fd476c6 moved to template 2026-03-15 18:58:32 +01:00
claus 7f081cf997 ny fil 2026-03-15 18:57:59 +01:00
claus 66b69199d6 Vi dropper den for nu 2026-03-15 18:53:47 +01:00
claus 0cdfc2b1ee fejl i log 2026-03-15 18:50:17 +01:00
claus 7ee779cfe4 Optimize recorder configuration for minimal logging
- Reduce database size by excluding unnecessary domains and entities
- Keep only critical entities (presence, key sensors, weather, energy)
- Set purge_keep_days to 7 and purge_interval to 1 day
- Remove legacy or high-frequency sensor logging to improve performance
2026-03-15 17:56:16 +01:00
claus 944a6bd91e moved 2026-03-15 17:53:07 +01:00
claus 11d83fd0ca Updated 2026-03-15 17:52:26 +01:00
claus 74c7577ad7 new templates 2026-03-15 17:43:05 +01:00
claus ada30d47d3 New way to make templates 2026-03-15 17:42:41 +01:00
claus cf8b18e497 Fixed error in log 2026-03-15 17:31:40 +01:00
claus 342b20d8d2 flyttet 2026-03-15 17:01:02 +01:00
claus ac79a32e3c flyttet 2026-03-15 17:00:37 +01:00
claus 5a3d075b3b flyttet til include 2026-03-15 16:59:30 +01:00
claus c95beecb2f Refactor configuration.yaml for Home Assistant 2026.2.2
- Ryddet commented-out integrationer og flyttet gamle konfigurationer til inkluderede mapper
- Organiseret sektioner i Core, Integrations og Modular Includes for bedre overskuelighed
- Tilføjet initial: off til input_booleans for stabil opstart
- Gjort template sensor claus_distance_home robust mod offline enheder
- Optimeret recorder: samlet entity_globs for bedre performance
- Logger begrænset til relevante custom components
- Forberedt http trusted_proxies til reverse proxy / NAS
- Sikret modulær struktur via !include_dir_merge_named og !include_dir_merge_list
2026-03-15 16:57:10 +01:00
claus 807ebe619c diverse 2026-03-15 15:49:08 +01:00
claus cdc31eccb1 nattis 2026-03-15 15:48:02 +01:00
claus 8539ad7d0a source 2026-03-15 15:47:17 +01:00
claus 6a2134b0e9 overvaagning 2026-03-15 15:46:44 +01:00
claus d43c1086dd lys 2026-03-15 15:45:53 +01:00
claus 5518699e45 input 2026-03-15 15:45:28 +01:00
claus e2517cc0fe input 2026-03-15 15:45:07 +01:00
claus 173f556f7a input 2026-03-15 15:44:48 +01:00
claus b0829d6751 input 2026-03-15 15:44:24 +01:00
claus fdd90eee03 input 2026-03-15 15:44:01 +01:00
claus 62fd0880e0 input 2026-03-15 15:42:17 +01:00
claus 45166fa647 diverse 2026-03-15 15:41:22 +01:00
claus 380353c44e støvsug 2026-03-15 15:39:46 +01:00
claus 904405237d receiver 2026-03-15 15:36:23 +01:00
claus 9214d3daea åbn garage 2026-03-15 15:35:55 +01:00
claus 9baac7742f lys kontor 2026-03-15 15:35:29 +01:00
claus fae90550ca daniel lys 2026-03-15 15:34:58 +01:00
claus f56e1a3196 bad 2026-03-15 15:34:37 +01:00
claus 3d589ba739 lys 2026-03-15 15:33:58 +01:00