Last active
May 18, 2026 00:54
-
-
Save tamer1an/69a496663152638c7cffa02a45c23703 to your computer and use it in GitHub Desktop.
BreadBoard & HASSIO AUTOMATION
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| npm init @google-labs/breadboard ./breadboard-starter | |
| alias: AI Provider Status Monitor & Alert | |
| description: Notify when Anthropic AI provider loses connection | |
| trigger: | |
| - platform: state | |
| entity_id: sensor.ai_automation_suggester_anthropic_ai_provider_status_anthropic | |
| from: connected | |
| condition: [] | |
| action: | |
| - service: persistent_notification.create | |
| data: | |
| title: "⚠️ AI Provider Disconnected" | |
| message: >- | |
| The Anthropic AI provider has changed status from 'connected'. | |
| Current status: {{ states('sensor.ai_automation_suggester_anthropic_ai_provider_status_anthropic') }} | |
| Last attempted update: {{ state_attr('sensor.ai_automation_suggester_anthropic_ai_provider_status_anthropic', 'last_attempted_update') }} | |
| Last error: {{ state_attr('sensor.ai_automation_suggester_anthropic_ai_provider_status_anthropic', 'last_error_message') | default('None') }} | |
| notification_id: ai_provider_status_alert | |
| mode: single | |
| ---------------------------- | |
| alias: Notify on New GitHub Issues | |
| description: Send a notification when new issues are opened on tamer1an/tamer1an | |
| trigger: | |
| - platform: state | |
| entity_id: sensor.tamer1an_tamer1an_issues | |
| condition: | |
| - condition: template | |
| value_template: >- | |
| {{ trigger.to_state.state | int(0) > trigger.from_state.state | int(0) }} | |
| action: | |
| - service: persistent_notification.create | |
| data: | |
| title: "New GitHub Issue Detected" | |
| message: >- | |
| The number of open issues on tamer1an/tamer1an has increased to | |
| {{ states('sensor.tamer1an_tamer1an_issues') }} issues. | |
| notification_id: github_tamer1an_issues | |
| mode: single | |
| ------------- | |
| alias: Alert on Unknown Device Connecting to Network | |
| description: Sends a Pushbullet notification when an unknown device is detected on the network. | |
| trigger: | |
| - platform: state | |
| entity_id: | |
| - device_tracker.5c009e2paj6322a | |
| - device_tracker.tl_wa850re | |
| from: "not_home" | |
| to: "home" | |
| condition: [] | |
| action: | |
| - service: notify.pushbullet | |
| data: | |
| title: "⚠️ Unknown Device Detected" | |
| message: >- | |
| Device {{ trigger.to_state.attributes.friendly_name }} | |
| (MAC: {{ trigger.to_state.attributes.mac }}) | |
| has connected to your network. | |
| mode: queued | |
| max: 5 | |
| --------- | |
| alias: Notify When Grocy Update Is Available | |
| description: Send a notification when a new Grocy version is available. | |
| trigger: | |
| - platform: state | |
| entity_id: update.grocy_update | |
| to: "on" | |
| condition: [] | |
| action: | |
| - service: persistent_notification.create | |
| data: | |
| title: "Grocy Update Available" | |
| message: > | |
| A new version of Grocy is available! | |
| Installed: {{ state_attr('update.grocy_update', 'installed_version') }} | |
| Latest: {{ state_attr('update.grocy_update', 'latest_version') }} | |
| notification_id: grocy_update_available | |
| mode: single | |
| ------ | |
| alias: Notify on Dnsmasq Update Available | |
| description: Send a persistent notification when a Dnsmasq update is available. | |
| trigger: | |
| - platform: state | |
| entity_id: update.dnsmasq_update | |
| to: "on" | |
| condition: [] | |
| action: | |
| - service: persistent_notification.create | |
| data: | |
| title: "Dnsmasq Update Available" | |
| message: > | |
| A new version of Dnsmasq is available. | |
| Please review and install it from the Home Assistant add-on store. | |
| notification_id: dnsmasq_update_available | |
| mode: single | |
| ---------- | |
| alias: Alert if Automatic Backup Is Overdue | |
| description: Notify if the last successful backup is more than 24 hours ago | |
| trigger: | |
| - platform: time_pattern | |
| hours: "/1" | |
| condition: | |
| - condition: template | |
| value_template: > | |
| {{ (now() - states('sensor.backup_last_successful_automatic_backup') | as_datetime).total_seconds() > 86400 }} | |
| action: | |
| - service: persistent_notification.create | |
| data: | |
| title: "⚠️ Backup Overdue" | |
| message: > | |
| The last successful automatic backup was on | |
| {{ states('sensor.backup_last_successful_automatic_backup') | as_datetime | as_local }}. | |
| No backup has been completed in over 24 hours. | |
| notification_id: backup_overdue_alert | |
| mode: single | |
| ------------ | |
| alias: Welcome Home – Andrii Arrives | |
| description: Triggered when Andrii's phone reconnects to the home network. | |
| trigger: | |
| - platform: state | |
| entity_id: device_tracker.andrii_s_z_fold3_2 | |
| from: "not_home" | |
| to: "home" | |
| condition: [] | |
| action: | |
| - service: notify.notify | |
| data: | |
| message: "Welcome home, Andrii!" | |
| mode: single | |
| ------- | |
| alias: Notify on Supervisor Update Available | |
| description: Send a notification when a Home Assistant Supervisor update is available | |
| trigger: | |
| - platform: state | |
| entity_id: update.home_assistant_supervisor_update | |
| to: 'on' | |
| condition: [] | |
| action: | |
| - service: notify.persistent_notification | |
| data: | |
| title: "Home Assistant Supervisor Update Available" | |
| message: "A new Home Assistant Supervisor update is ready. Check the Updates section in Settings." | |
| mode: single | |
| ----- | |
| alias: Alert When Android Device Leaves Home | |
| description: Trigger when the Android device leaves the home network | |
| trigger: | |
| - platform: state | |
| entity_id: device_tracker.Fold | |
| from: home | |
| to: not_home | |
| action: | |
| - service: notify.persistent_notification | |
| data: | |
| title: "Device Left Home" | |
| message: "android-222c490409b44e77 has left the home network." | |
| mode: single | |
| --------- | |
| alias: Tab7 Low Battery Alert | |
| description: Notify when Tab7 battery drops below 20% | |
| trigger: | |
| - platform: numeric_state | |
| entity_id: sensor.tab7_battery_level | |
| below: 20 | |
| condition: [] | |
| action: | |
| - service: notify.persistent_notification | |
| data: | |
| title: "Tab7 Battery Low" | |
| message: >- | |
| Tab7 battery is at {{ states('sensor.tab7_battery_level') }}%. | |
| Please charge the device. | |
| mode: single | |
| --------- | |
| alias: Alert on Low Internet Download Speed | |
| description: Sends a confirmable notification when gateway download speed drops below 100 KiB/s | |
| trigger: | |
| - platform: numeric_state | |
| entity_id: sensor.hawknest_gateway_download_speed | |
| below: 100 | |
| for: | |
| minutes: 3 | |
| condition: | |
| - condition: not | |
| conditions: | |
| - condition: state | |
| entity_id: sensor.hawknest_gateway_download_speed | |
| state: "unknown" | |
| - condition: state | |
| entity_id: sensor.hawknest_gateway_download_speed | |
| state: "unavailable" | |
| action: | |
| - service: script.1697228886439 | |
| data: | |
| title: "⚠️ Low Internet Speed Detected" | |
| message: >- | |
| Gateway download speed has dropped to | |
| {{ states('sensor.hawknest_gateway_download_speed') }} KiB/s, | |
| which is below the 100 KiB/s threshold. Please check your connection. | |
| confirm_text: "Acknowledged" | |
| mode: single | |
| ------- | |
| alias: Welcome Home - SM-N950F Arrives | |
| description: Trigger actions when SM-N950F returns home | |
| trigger: | |
| - platform: state | |
| entity_id: device_tracker.bull | |
| from: not_home | |
| to: home | |
| action: | |
| - service: notify.notify | |
| data: | |
| title: "Welcome Home!" | |
| message: "SM-N950F has arrived home." | |
| mode: single |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment