Skip to content

Instantly share code, notes, and snippets.

@mbarcia
mbarcia / motion_controlled_scenes_enhanced.yaml
Last active August 10, 2022 01:48 — forked from quallenbezwinger/motion_controlled_scenes_enhanced.yaml
Homeassistant blueprint for motion-activated light scene with surrounding light level check
blueprint:
name: Motion-activated light scene with surrounding light level check and optional ambient scene
description: Turn on a light scene when motion is detected. Three different scenes can be defined depending on time of day. Furthermore a source for checking sourrounding light can be defined to enable light only if it is dark enough.
domain: automation
source_url: https://gist.github.com/dirkk1980/3e5c23acb05fb639bafdc5036b91aae6
input:
motion_entity:
name: Motion Sensor
selector:
entity:
@mbarcia
mbarcia / warmly.sh
Last active August 29, 2015 14:23 — forked from thomasfr/warmly.sh
#!/bin/bash
# warmly.sh
# A wget based, easy, poor man`s cache warmer script
# Originally forked from
# https://gist.github.com/thomasfr/7926314
# No trailing slash
WARMLY_START_URL="${1}"