This file contains hidden or 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 numpy as np | |
| import pandas as pd | |
| import rasterio | |
| from rasterio.transform import from_origin | |
| from rasterio.warp import calculate_default_transform, reproject, Resampling | |
| from pyproj import Transformer | |
| import scipy.sparse as sp | |
| from scipy.optimize import minimize, Bounds | |
| from matplotlib.path import Path | |
| from scipy.spatial import ConvexHull |
This file contains hidden or 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
| ## Requires MQTT to be configured prior to use | |
| ## UI requires custom cards: auto-entities, config-template-card, template-entity-row | |
| automation: | |
| - alias: Reminder - Send next reminder | |
| id: 'Send next reminder' | |
| description: "" | |
| trigger: | |
| - platform: time | |
| at: sensor.next_reminder | |
| condition: [] |
This file contains hidden or 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
| type: entities | |
| title: Reminders | |
| entities: | |
| - entity: input_text.reminder_description | |
| name: Message | |
| - entity: input_select.reminder_recipient | |
| - entity: input_datetime.reminder_tracker | |
| name: Reminder date and time | |
| - type: custom:config-template-card | |
| entities: |
This file contains hidden or 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
| version: '3.1' | |
| services: | |
| unifi: | |
| container_name: unifi | |
| restart: unless-stopped | |
| image: linuxserver/unifi | |
| volumes: | |
| - /srv/docker/unifi:/config | |
| environment: | |
| - PGID=0 |
This file contains hidden or 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: [] |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
NewerOlder