Commit Graph

63 Commits

Author SHA1 Message Date
4fad85ebe9 Fix album updated attribute name to last_updated_at
The album entity uses 'last_updated_at' not 'updated_at' for the
last update timestamp attribute.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 00:30:31 +03:00
29158b8b07 Update README with album date placeholders documentation
Added {album_created} and {album_updated} to:
- Message Template Variables
- Asset Item Template Variables
- Album Item Template Variables (also added {album_id})
- Scheduled Assets Message Template Variables

Also added missing {common_date} and {common_location} to
Scheduled Assets documentation.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 00:11:21 +03:00
94ca8273b1 Add album created and updated date placeholders
Added {album_created} and {album_updated} placeholders to album-related
templates, using the existing date_format for formatting:

- periodic_album_template: reads from entity attributes
- scheduled_assets_message: reads from entity attributes (per_album/random mode)
- message_assets_added: looks up entity by event_album_id
- message_assets_removed: looks up entity by event_album_id
- message_asset_image/video: added placeholders

For combined mode, album dates are empty (no single album).

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-01 23:51:20 +03:00
39f780b46c Fix event data variables for time_pattern triggers
Added guards to event data variables (event_hub_name, event_album_name,
etc.) to check if trigger.event is defined before accessing it.

Previously, these variables would error when the trigger was time_pattern
(hourly_timer) since trigger.event doesn't exist for non-event triggers,
causing the entire automation to fail silently.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-01 22:53:49 +03:00
369ffe3fb7 Rename time_pattern trigger to hourly_timer
Renamed the shared time_pattern trigger from "periodic_summary" to
"hourly_timer" since it serves both periodic summary and scheduled
assets features. This makes the trigger's purpose clearer.

Updated all references in should_send_periodic_summary,
should_send_scheduled_assets, and the condition block.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-01 22:29:45 +03:00
d8df567d02 Fix whitespace stripping in video warning template
Applied the same inline computation fix to {video_warning} placeholder
that was previously done for {common_date} and {common_location}.

Computes video_warning_text inline using {%- set -%} syntax instead of
storing as a separate HA variable, which strips leading whitespace.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-01 21:28:12 +03:00
330026a44a Skip videos without playback URL
Videos without a playback_url are now filtered out in all contexts:
- Realtime event notifications
- Scheduled assets (per_album/random mode)
- Scheduled assets (combined mode)

This prevents sending video entries that cannot be played back.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-01 21:13:44 +03:00
f86839dab4 Fix per-album limit calculation in combined mode
Fixed Jinja2 operator precedence issue where `limit | int // count | int`
was being parsed ambiguously. Added explicit parentheses to ensure correct
floor division: `((limit | int) // (count | int))`.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-01 03:52:04 +03:00
b1cedcd317 Fix whitespace stripping in common date/location templates
- Compute common_date and common_location inline using {%- set -%} syntax
  instead of as separate HA variables, which strips leading whitespace
- Fix CASE 3 (Changed) handler missing common_date/common_location support
- Remove unused global common_date and common_location variable definitions
- Apply fix to all message templates: scheduled assets (per_album, combined),
  realtime notifications (assets_added, changed), and Telegram messages

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-01 03:48:31 +03:00
3af3966ac3 Fix geolocation for Immich blueprint 2026-02-01 03:10:10 +03:00
ec680e8e7f Add location placeholders to asset template descriptions
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-01 02:53:09 +03:00
e63bb3da95 Add reverse geocoding location support and fix NoneType error
- Add location template inputs (common_location_template, location_if_unique_template, location_format)
- Display common location in header when all assets share the same location
- Show per-asset location when locations differ using {location_if_unique}
- Location only shown when all three fields (city, state, country) are present
- Fix TypeError on NoneType length check when asset.created_at is null
- Add defensive checks for date parsing to prevent template errors

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-01 02:51:15 +03:00
7b00899903 Restructure repository: organize blueprints into folders
Each blueprint now has its own folder containing:
- blueprint.yaml: The automation code with a short header
- README.md: Detailed documentation extracted from headers

Updated CLAUDE.md with repository structure guidelines.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-01 02:38:52 +03:00
26019b1c0c Immich Album Watcher now support scheduled assets 2026-02-01 02:23:07 +03:00
2f2c242e08 Upgrade the immich automation 2026-02-01 01:16:49 +03:00
d8086e0d77 Add support for favorite and rating values for assets 2026-01-31 18:16:10 +03:00
8fd6dc5774 Add support for common and unique date templates. Add ability to fire summary event to test the feature. 2026-01-31 17:03:05 +03:00
3732055720 Fix reply to message data access 2026-01-31 16:04:48 +03:00
182e7cccfb Add album lifecycle events and fix Telegram notification service calls
- Add support for album renamed and deleted events with notification templates
- Fix missing response_variable for all telegram service calls
- Enhance debug notifications with formatted sections and Telegram diagnostics
- Add reply_to_message_id debug logging for troubleshooting
- Update version to 1.14.8

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-31 15:54:59 +03:00
40da078ba5 Attempt to use update API of immich album watcher integration to send telegram notifications 2026-01-31 14:48:27 +03:00
d1b4f23971 Now the blueprint tries to use album watcher integration service to send telegram media group 2026-01-31 04:07:29 +03:00
18204e98c1 Add timeout for rest command 2026-01-31 03:05:48 +03:00
ee290b8943 Add support for multiple media groups for Telegram 2026-01-31 02:46:21 +03:00
d30722498e Telegram media group seems to work now 2026-01-31 02:39:12 +03:00
97a6ade0a4 Add ability to disable preview URL for message 2026-01-31 02:18:16 +03:00
9a40687a87 Change default template for datetime to include UTC substring
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s
2026-01-30 19:25:26 +03:00
838eefcaba Add start hour for Immich Album Watcher blueprint
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s
2026-01-30 19:22:54 +03:00
f30ed433fd That album ids entities which also provide with required attributes. Change default datetime format.
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s
2026-01-30 16:12:33 +03:00
26583a76d2 Add customizable date-time format
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s
2026-01-30 15:36:22 +03:00
9ddfc00b03 Improve Immich Album Watcher blueprint
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 4s
2026-01-30 14:09:45 +03:00
570b0ece76 Add periodic summary functionality for Immich Album Watcher
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 2m15s
2026-01-30 13:42:05 +03:00
ad5f230689 Add ability to send telegram photos/videos for Immich Watcher
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s
2026-01-30 05:23:42 +03:00
5f1cdb6874 Improve logging for Telegram Question blueprint 2026-01-30 05:00:40 +03:00
49eddd482c Add hub tracking logic
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 4s
2026-01-30 02:50:28 +03:00
332a47312f Added flag to track images/video or not. Added separate templates for image/video.
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 4s
2026-01-30 01:55:14 +03:00
cb6256feef Add support for asset_description asset description
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 4s
2026-01-30 01:33:38 +03:00
c9dce59ba2 Update README. Add Immich Album Watcher blueprint.
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 4s
2026-01-30 00:58:09 +03:00
2305be1a06 One more fix for Washing Machine.yaml. Add better variable comments.
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s
2026-01-29 15:57:49 +03:00
b2f71eef0c Potencial fix for Washing Machine.yaml nofitications.
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 5s
2026-01-29 15:29:46 +03:00
b209b70467 Make force ON entity optional for Climate Device Controller.yaml
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s
2026-01-25 16:10:29 +03:00
51bf5f9420 Make Home Presense.yaml guest mode switch not optional
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s
2026-01-25 15:42:04 +03:00
8eaadf3e52 Make power sensor optional in Washing Machine blueprint
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s
Change power_sensor input from single entity to multiple selector with
empty list default. This allows the trigger to gracefully handle the
case when no power sensor is configured (empty list = trigger skipped).

Updated all power_sensor checks from "is not none" to "length > 0".
2026-01-25 15:37:49 +03:00
9885d3f8e9 Add hysteresis and force ON override to Climate Device Controller
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s
- Add hysteresis window to prevent rapid on/off cycling
  Device turns OFF at target, ON at (target - window)
- Add Force ON switch for manual override capability
- Restructure control logic with explicit priority checks
- Default action now maintains state in hysteresis zone
- Update documentation with hysteresis example
2026-01-25 15:31:13 +03:00
535881abee Add Thermostat Controller blueprint
- Schedule-based heating control using HA schedule helpers
- Multiple schedules support with OR logic
- Working and standby temperatures with input_number overrides
- Window/door sensor integration (disable heating when open)
- External temperature sensor support
- Force heating override switch
- Minimum on-time to prevent rapid cycling
- Configurable disabled behavior (turn off vs standby)
- Debug notifications for troubleshooting
2026-01-25 15:28:48 +03:00
4f9029acea Enhance Home Presence blueprint with unified activity sensors
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s
- Replace door_sensors + motion_sensors with unified activity_sensors
- Activity detection based on any entity state change within threshold
- Support any entity type (binary_sensor, sensor, switch, light, etc.)
- Add Bluetooth/BLE device tracker support
- Add Guest Mode override (force presence ON)
- Add Debug Notifications toggle (configurable via input)
- Add homeassistant_start trigger for startup evaluation
- Handle control_switch unavailable state gracefully
- Filter out unknown/unavailable state transitions in triggers
2026-01-25 05:04:11 +03:00
affa7cd0f9 Add advanced features to Washing Machine blueprint
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 4s
- Estimated end time in start notification (e.g., "Завершение: ~14:30")
- Pause/Resume notifications when cycle is paused or resumed
- Power consumption monitoring with energy tracking per cycle
- Energy report appended to completion notification
- Debug notifications toggle for troubleshooting
2026-01-25 04:51:58 +03:00
f6679f73e3 Add advanced features to Motion Light blueprint
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s
- Multiple lights/switches control with group and area targeting
- Smooth light transitions with configurable duration
- Time-based conditions (only active during specified hours)
- Day/Night mode with separate light settings
- Scene support (activate scenes instead of light parameters)
- Minimum on duration to prevent rapid on/off cycling
- Dim before off for visual warning
- Motion sensor debounce to filter false triggers
- Debug notifications for troubleshooting
2026-01-25 04:41:10 +03:00
c4a9db9c17 [Claude] - Add author and missing description to blueprints headers. 2026-01-22 03:26:10 +03:00
565cde77f6 [Claude] - Let's analyze Climate Device Controller.yaml blueprint. Can we somehow make it more flexible, but removing tight connection to switch entity type. What if, for example, I want to control air conditioner via smart remote. Can you offer something for that case and make appropriate changes to the blueprint? But the new logic should to control a switch as currently. 2026-01-22 03:22:07 +03:00
088c0870bd [Claude] - Analyze Telegram Commands.yaml file designed to work as automation blueprint for Home Assistant OS. Refactor it improving overall code quality, fix obvious or critical bugs/mistakes, fix spelling if required and add comments that will make the code more easy to read and understand. Let's also change notification message, so it will include friendly name of an entity instead of entity id. 2026-01-22 02:59:41 +03:00