Skip to content

Instantly share code, notes, and snippets.

View stefanroelofs's full-sized avatar

Stefan stefanroelofs

  • The Netherlands
View GitHub Profile
@WarriorRocker
WarriorRocker / hue_dimmer_switch.yaml
Last active May 24, 2022 13:14
ZHA - Philips Hue Dimmer Switch
blueprint:
name: ZHA - Philips Hue Dimmer Switch
description: |
Control lights with a Philips Hue Dimmer Switch.
The top "on" button behaviour is adjustable. By default it behaves like this:
- Press it while the light is off, and the light will turn on to the last set brightness.
- Press it again while the light is on, the light will turn to the fixed brightness setting.
Dim up/down buttons will change the brightness smoothly and can be pressed
@ironicbadger
ironicbadger / snippet-lovelace-ui.yaml
Created March 29, 2020 03:18
home assistant covid tracker
cards:
- content: >-
# Quarantine-o-meter
The gauge meters display the amount of time spend at home in the last 7
days. Where Alex left the house (on average) {{
(states("sensor.quarantine_meter_alex_times_left")|int / 7) | round(1) }}
times per day and Cat {{
(states("sensor.quarantine_meter_cat_times_left")|int / 7) | round(1) }}
times per day.