This file contains 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
blueprint: | |
name: Periodic lights | |
description: "Dim and adjust color temperature of lights progressively throughout the evening (RGB bulbs probably won't change temperature). This is indexed to the midpoint between sunset and sunrise and fit to a sin function, so the midpoint will be minimum brightness and midpoint +12hr will be maximum brightness. The midpoint can be offset by a fixed amount if lights are too dim or bright at the desired time." | |
domain: automation | |
source_url: https://gist.github.com/haberda/f17694969a6de15d75267667b7c955ac | |
input: | |
light: | |
name: Light(s) | |
description: The light(s) to control | |
selector: |
This file contains 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
blueprint: | |
name: Fan - with occupancy and temperature | |
description: Turn on a fan when occupancy is detected and temperature is above a set level. | |
domain: automation | |
input: | |
occupancy_entity: | |
name: Occupancy Sensor | |
selector: | |
entity: | |
domain: binary_sensor |
This file contains 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
blueprint: | |
name: Periodic lights RGB | |
description: "Dim and adjust color of lights progressively throughout the evening (RGB bulbs only). This is indexed to the midpoint between sunset and sunrise and fit to a sin function, so the midpoint will be minimum brightness and midpoint +12hr will be maximum brightness. The midpoint can be offset by a fixed amount if lights are too dim or bright at the desired time." | |
domain: automation | |
source_url: https://gist.github.com/haberda/a43a40d8b2e734036b1575e1e6df7a59 | |
input: | |
light: | |
name: Light(s) | |
description: The light(s) to control | |
selector: |
This file contains 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
import hassapi as hass | |
import datetime | |
class reminder(hass.Hass): | |
def initialize(self): | |
self.set_namespace("reminder") | |
self.listen_event(self.set_reminder,'set_reminder', namespace='default') | |
self.listen_event(self.remove_reminder,'remove_reminder', namespace='default') | |
domain = 'reminder' |
This file contains 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
import appdaemon.plugins.hass.hassapi as hass | |
import os | |
import imageio | |
import shutil | |
import datetime | |
import glob | |
import time | |
from stat import S_ISREG, ST_CTIME, ST_MODE | |
from PIL import Image |
This file contains 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
import hassapi as hass | |
# | |
# App to turn lights on when motion detected then off again after a delay | |
# | |
# Use with constraints to activate only for the hours of darkness | |
# | |
# Args: | |
# | |
# sensor: binary sensor to use as trigger | |
# entity_on : entity to turn on when detecting motion, can be a light, script, scene or anything else that can be turned on |
This file contains 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
blueprint: | |
name: Motion-activated Light with illuminance | |
description: Turn on a light when motion is detected and illuminance is below a set Lux level. | |
domain: automation | |
input: | |
motion_entity: | |
name: Motion Sensor | |
selector: | |
entity: | |
domain: binary_sensor |
This file contains 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
square: false | |
columns: 1 | |
type: grid | |
cards: | |
- type: entities | |
entities: | |
- entity: input_text.reminder_name | |
- entity: input_text.reminder | |
- entity: input_datetime.reminder | |
- entity: input_select.reminder_recipient |
This file contains 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
alias: Reminder - Add | |
sequence: | |
- variables: | |
fire_time: "{{ states('input_datetime.reminder') }}" | |
message: "{{ states.input_text.reminder.state }}" | |
title: "{{ states(\"input_text.reminder_name\") }}" | |
recipient: "{{ states(\"input_select.reminder_recipient\") }}" | |
name: "{{ states(\"input_text.reminder_name\") }}" | |
- event: set_reminder | |
event_data: |
This file contains 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
alias: Reminder - update reminder select | |
description: "" | |
trigger: | |
- platform: event | |
event_type: set_reminder | |
- platform: event | |
event_type: remove_reminder | |
- platform: event | |
event_type: sent_reminder | |
condition: [] |
OlderNewer