Skip to content

Instantly share code, notes, and snippets.

blueprint:
name: Smart Light Control with Switch
description: >
Control lights with a smart switch button. First press turns on the switch,
subsequent presses toggle lights with different brightness and color temperature
based on light mode (Day/Night).
domain: automation
input:
switch_device:
name: Smart Switch Device
@fpt
fpt / pykka_periodic.py
Created November 28, 2014 04:43
Pykka: periodic timer
#!/usr/bin/env python
# coding:utf-8
import pykka
import threading
import signal
import time
import sys
@ilkka
ilkka / tag_cloud_tag.rb
Created November 22, 2010 20:07
Jekyll tag cloud / tag pages plugin
module Jekyll
class TagCloudTag < Liquid::Tag
safe = true
def initialize(tag_name, text, tokens)
super
end
def render(context)
html = ""