Skip to content

Instantly share code, notes, and snippets.

View bruxy70's full-sized avatar

Vaclav bruxy70

View GitHub Profile
alias: Check cameras at sunset
description: ""
triggers:
- trigger: sun
event: sunset
conditions: []
actions:
- alias: Check bio-waste container
if:
- condition: state
alias: Handle doorbell
description: ""
triggers:
- trigger: state
entity_id: binary_sensor.zvonek
to: "on"
actions:
- parallel:
- action: frigate.create_event
metadata: {}
@bruxy70
bruxy70 / gist:2c7ac1dfadfc5c0ad81965410fa11190
Created May 15, 2025 19:41
Lights on when security alarm
alias: Lights on when security alarm
triggers:
- trigger: state
entity_id: alarm_control_panel.home
to: triggered
actions:
- action: frigate.create_event
metadata: {}
data:
label: Alarm
@bruxy70
bruxy70 / gist:e0ddec541494117e40075345ef834463
Created May 15, 2025 19:40
Alert person outside, nobody home or at night
alias: Alert person outside, nobody home or at night
description: ""
triggers:
- alias: Movement back
id: back
trigger: state
entity_id:
- binary_sensor.back_person_occupancy
to: "on"
- alias: Movement front
@bruxy70
bruxy70 / EMS - EV set wallbox power.yaml
Created July 2, 2024 19:20
Home Assistant script setting the wallbox and smart switch combination for the target charging power
alias: EMS - EV set wallbox power 🚗
fields:
new_value:
name: Watts
required: true
description: |
Watts (0-1400 = off, 1400-3840 = 1f, 4320-11520+ = 3f)
example: 2400
selector:
number:
@bruxy70
bruxy70 / garbage.yaml
Created March 6, 2024 16:52
Local calendar sensors example
template:
- trigger:
- platform: time_pattern
hours: "0"
minutes: "1"
- platform: homeassistant
event: start
sensor:
- name: Směs days
unique_id: 33328b5a-ef3e-4811-bf59-2527165b168c
@bruxy70
bruxy70 / calendar_check_public_holidays_collistions.yaml
Last active August 3, 2023 14:21
Check a local calendar for events (in the next 365 days) colliding with a public holiday. Create a persistent notification with the list of colliding holidays.
blueprint:
name: Create Calendar Events with Offset Holidays in Week
description: >-
Check a local calendar for events (in the next 365 days) colliding
with a public holiday. Create a persistent notification
with the list of colliding holidays.
domain: script
source_url: https://gist.github.com/bruxy70/ea10d440117abe90009769268effe90c
fields:
source_calendar:
blueprint:
name: Create Calendar Events with Offset Holidays in Week
description: Copy Events (in the next 365 days) from one local calendar to another. Look
in the holidays calendar and shift events for each public holiday in the week
before the event.
domain: script
source_url: https://gist.github.com/bruxy70/b55acd9d69de4b8d8880f63e6dcb44cd
input: {}
fields:
source_calendar:
@bruxy70
bruxy70 / calendar_copy_offset_holidays.yaml
Last active August 3, 2023 14:21
Create Calendar Events with Offset Holidays
blueprint:
name: Create Calendar Events with Offset Holidays
description: >-
Copy Events (in the next 365 days) from one local calendar to another.
Look in the holidays calendar and shift events colliding with a public
holiday forward.
domain: script
source_url: https://gist.github.com/bruxy70/fc31c7695541e94d0215a075aaa49521
fields:
source_calendar:
@bruxy70
bruxy70 / Energy Management Automations.yaml
Last active February 16, 2025 19:30
Energy Management Automations
automation:
- id: '1676462307275'
alias: "EMS - Control EV Charging \U0001F697"
description: 'Control charging in 3 charging modes (FAST/SCHEDULED/AVAILABLE)
Automatically set the more based on the car location and day of the week.
Control maximum charging current based on sun power output.'
trigger:
- platform: time_pattern