fork of smarthome.py