Skip to content

Instantly share code, notes, and snippets.

View misuzu's full-sized avatar

misuzu

  • Kharkiv, Ukraine
  • 18:57 (UTC +02:00)
View GitHub Profile
# Instructions: https://community.home-assistant.io/t/zha-z2m-control-light-color-hue-brightness-with-ers-dial/595002
blueprint:
name: ERS Rotary Dial - Light Control (ZHA) - COMMAND mode
description: Control light brightness, hue and color with an ERS rotary dial
source_url: https://gist.github.com/misuzu/1f1d4f4f9e8b82bda2fa4b5078cde6b7
domain: automation
@misuzu
misuzu / tornadosse.py
Last active November 8, 2017 12:14 — forked from mivade/tornadosse.py
Tornado server-sent events
"""Demonstration of server-sent events with Tornado. To see the
stream, you can either point your browser to ``http://localhost:8080``
or use ``curl`` like so::
$ curl http://localhost:8080/events
"""
import json
import signal