Download from geonames (updated regularly)
curl https://download.geonames.org/export/zip/SE.zip > SE.zip
unzip SE.zip
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, |
Download from geonames (updated regularly)
curl https://download.geonames.org/export/zip/SE.zip > SE.zip
unzip SE.zip