Skip to content

Instantly share code, notes, and snippets.

Avatar

Patrick D. pavax

  • schaltstelle
  • Bern, Switzerland
View GitHub Profile
View amelia_2_mailchimp_hook.php
<?php
// MAILCHIMP API KEY
define('API_KEY', 'XXXXXXXXXXX');
// MAILCHIMP SERVER (FOR EXAMPLE: https://us17.api.mailchimp.com)
define('SERVER', 'https://us17.api.mailchimp.com');
// MAILCHIMP LIST ID
define('LIST_ID', '12345abcde');
View illuminance_aware_cover_control.yaml
blueprint:
name: Illuminance aware cover control
description: >
Close cover based on a illuminance sensor.
Allow manual control to open the cover again, but reactivate the automatic control again after a defined time.
Optional defined state sensors to prevent re-opening again. For Example when a media_player is playing
domain: automation
source_url: https://gist.github.com/pavax/ed424e1d7bbb1c69b7e33e60d1415b5a
input:
cover_control:
@pavax
pavax / window_aware_lights_control.yaml
Last active August 18, 2021 12:57
Window aware light control
View window_aware_lights_control.yaml
blueprint:
name: Window aware light control
description: >
Turn off the active lights when a window is opened.
As soon as the window is closed, turn them on again.
domain: automation
source_url: https://gist.github.com/pavax/6afcd0eee7c990c456b99dd52680b4b0
input:
window_sensor_entity:
name: Window Sensor Entity
@pavax
pavax / window_aware_lights_control.yaml
Last active June 21, 2021 18:45
window_aware_lights_control.yaml
View window_aware_lights_control.yaml
blueprint:
name: Window aware Light control
description: >
Turn off the active lights when a window is opened.
As soon as the window is closed, turn them on again.
domain: automation
source_url: https://gist.github.com/pavax/TBD
input:
window_sensor_entity:
name: Window Sensor Entity
View turn_off_after_while.yaml
blueprint:
name: Turn off entity after a while
description: >
Turn off entity after a period of time
domain: automation
source_url: "https://gist.github.com/pavax/4eb086412c1e455a26da4dc64673b3b9"
input:
target_entity:
name: target_entity
description: "The entity to turn off after a while."
@pavax
pavax / z2m-ikea-remote-controls.yaml
Last active March 3, 2023 12:19
z2m-ikea-remote-controls.yaml
View z2m-ikea-remote-controls.yaml
blueprint:
name: "[Z2M] Generic Ikea Remote Control"
description: "Blueprint for Ikea Remote Controls (On/Off, 5-Button, Shortuct)"
domain: automation
source_url: https://community.home-assistant.io/t/zigbee2mqtt-ikea-on-off-switch-general-use/263895
input:
remote:
name: Remote
description: IKEA remote to use (e.g sensor.kitchen_remote_action)
selector:
View z2m-ikea-remote-controls.yaml
blueprint:
name: Ikea on/off-switch and 5-Button Toggle
description: Custom Blueprint for Ikea Remote Controls (On/Off, TRADFRI remote control) x
domain: automation
input:
remote:
name: Remote
description: IKEA remote to use
selector:
entity:
@pavax
pavax / script.vacuum_dispatch.yaml
Last active December 24, 2020 13:43
home-ssistant script: [vacuum] room dispatcher
View script.vacuum_dispatch.yaml
alias: '[vacuum] room dispatcher'
sequence:
- variables:
room_name: >-
{{room_name|lower|replace('ä','ae')|replace('ü','ue')|replace('ö','oe')
}}
room_last_trigger: 'input_datetime.vacuum_{{room_name}}_last_schedule_triggered'
room_zone: '{{ state_attr(room_last_trigger,''zone'') }}'
- condition: template
value_template: '{{ room_zone != null }}'
@pavax
pavax / scheduled_timeslot.yaml
Last active January 3, 2021 12:11
Home Assistant Scheduled Timeslot Blueprint
View scheduled_timeslot.yaml
blueprint:
name: Scheduled Timeslot
description: >
Timeslot Scheduler (e.g for vacuums) that allows to define a action to be executed within the specified timeslot and its condition.
domain: automation
input:
monday_enabled:
name: Monday
default: false
selector:
@pavax
pavax / nagging_alert_notification.yaml
Last active May 15, 2023 10:05
Home Assistant Alert Notification Blueprint
View nagging_alert_notification.yaml
blueprint:
name: Nagging Alerting Notification Automation
description: >
Trigger an alert based on the state of a given sensor.
The Alert is send to a mobile app device and repeats as long as the sensor is in the given state.
An additonal action can be specified. This might be useful to tts the message.
domain: automation
source_url: https://gist.github.com/pavax/08705e383bdd3b58ea7b75a1f01c7e54
input:
sensor_entity: