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,
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Gronis
Gronis / README.md
Last active October 16, 2021 21:13
Use Swedish zipcodes to get access to municipality, county, city and gps-coordinates.

Download from geonames (updated regularly)

curl https://download.geonames.org/export/zip/SE.zip > SE.zip
unzip SE.zip