Skip to content

Instantly share code, notes, and snippets.

View qiwichupa's full-sized avatar

qiwichupa

View GitHub Profile
@qiwichupa
qiwichupa / sensor-light.yaml
Last active February 2, 2023 13:01 — forked from Blackshome/sensor-light.yaml
Home Assistant Sensor Light that can be used in Blueprints
blueprint:
name: Sensor Light (~qiwichupa)
description: >
# Sensor Light
**Version: 2.5~qiwichupa**
Bypass switch logic reversed: on - automation works, off - automation is disabled. So bypass is automation switch now.
You can find original blueprint here: : [Click Here](https://community.home-assistant.io/t/sensor-light/481048)
#!/usr/bin/env python
#Copyright (C) 2009 Allen Sanabria
#This program is free software; you can redistribute it and/or modify it under
#the terms of the GNU General Public License as published by the Free Software Foundation;
#either version 2 of the License, or (at your option) any later version.
#This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
#without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#See the GNU General Public License for more details. You should have received a copy of i