Skip to content

Instantly share code, notes, and snippets.

View rattletat's full-sized avatar

Michael Brauweiler rattletat

View GitHub Profile
blueprint:
name: Daily Conversation agent Agenda Notification
description:
Conversation agent generates a personalized notification based on the
upcoming calendar agenda, location, and weather information in your language.
domain: automation
input:
language:
name: Language
description: Language of Assistant Response
blueprint:
name: Conversation agent Agenda Notification - Multiple Calendars
description:
Conversation agent generates a notification based on the upcoming agendas
from multiple calendars, location, and weather.
domain: automation
input:
notify_time:
name: Notification time
description: Time the automation is triggered to send the notification.
@rattletat
rattletat / motion-activated-light-and-switches-with-conditions_blueprint.yaml
Last active November 28, 2023 15:01
Motion-activated light/switches with added condtions.
blueprint:
name: Motion-activated Light/Switch with Conditions
description: Turn on a light or switch when motion is detected and conditions are fulfilled.
homeassistant:
min_version: 2023.8.0
domain: automation
source_url: https://community.home-assistant.io/t/presence-sensor-light-automation/564590
input:
motion_entity:
name: Motion Sensor
@rattletat
rattletat / motion-activated-light-with-conditions.yaml
Last active November 28, 2023 15:31
Motion-activated light with added contions.
blueprint:
name: Motion-activated Light with Conditions
description: Turn on a light when motion is detected and conditions are fulfilled.
homeassistant:
min_version: 2023.8.0
domain: automation
source_url: https://community.home-assistant.io/t/presence-sensor-light-automation/564590
input:
motion_entity:
name: Motion Sensor
blueprint:
name: Presence-activated Light
description: Turn on a light when presence is detected.
homeassistant:
min_version: 2023.8.0
domain: automation
source_url: https://community.home-assistant.io/t/presence-sensor-light-automation/564590
input:
presence_entity:
name: Presence Sensor
PORTCFG=/usr/local/apache2/conf/extra/ports.conf
sed -i 's# 80^# 8080#' ${PORTCFG}
sed -i 's# 443 https# 8443 https#' ${PORTCFG}
kill -HUP $(pidof httpd)
#!/bin/bash
# This is heavily based on this code here:
# https://gist.github.com/maikeldotuk/54a91c21ed9623705fdce7bab2989742
# Which is heavily based on this code here:
# https://gist.github.com/enpassant/0496e3db19e32e110edca03647c36541
# Special thank you to the user enpassant for starting it https://github.com/enpassant
# ARGUMENT PARSING
# Do not overwrite (0) or overwrite (1)