Skip to content

Instantly share code, notes, and snippets.

@Gronis
Gronis / grouped_light.py
Created January 31, 2018 17:33 — forked from jjensn/grouped_light.py
Grouped light platform for Home Assistant
import asyncio
import logging
# Import the device class from the component that you want to support
from homeassistant.core import callback
from homeassistant.components import light
from homeassistant.const import (STATE_OFF, STATE_ON, SERVICE_TURN_ON,
SERVICE_TURN_OFF, ATTR_ENTITY_ID)
from homeassistant.components.light import (SUPPORT_BRIGHTNESS,
SUPPORT_RGB_COLOR,