Skip to content

Instantly share code, notes, and snippets.

View bruxy70's full-sized avatar

Vaclav bruxy70

View GitHub Profile
@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 January 25, 2024 19:59
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
@bruxy70
bruxy70 / lights_on_door_open.yaml
Last active August 12, 2022 07:47
Home Assistant Automation Blueprint - automate lights inside the room and the hallway, using presence information, door sensor and lights state.
blueprint:
name: Toggle lights on door open - with presence detection
description: When the door is open, toggle the inside and outside light
based on the state of both lights and presence in the room.
Works only at night based on the sun position.
source_url: https://github.com/bruxy70
domain: automation
input:
door_sensor:
name: Door sensor
@bruxy70
bruxy70 / air-quality.yaml
Last active January 1, 2024 20:27
ESPHome configuration for Vindriktning ESP32 kit https://www.laskakit.cz/laskakit-esp-vindriktning-esp-32-i2c/
substitutions:
device_name: air-quality
wifi_ssid: !secret wifi_ssid
wifi_password: !secret wifi_password
api_password: !secret api_password
ota_password: !secret ota_password
esphome:
name: ${device_name}
comment: IKEA LaskaKit ESP-VINDRIKTNING ESP-32 I2C
@bruxy70
bruxy70 / garbage-notification.yaml
Created March 8, 2022 18:53
Home Assistant automation blueprint to send a notification for garbage collection
blueprint:
name: Send notification for garbage collection
description: Check the garbage_collection schedule every day, and send the notification if the collection is tomorrow
domain: automation
input:
notify_time:
name: Notification time
description: Send the notification at this time, a day before teh collection date
selector:
time: