Please check the pilight switch bugfix. This howto will not work under Windows out of the box.
-
You need to go to to the
homeassistant/components/switchfolder. If you checked out the code using git then this is easy and you should now where the code is ;-). If you installed home-assistant viapip install homeassistantorpython setup.py installyou have to search for this folder in yoursite-packagepath of your python distribution. To get the location of thesite-packagefolder type:
python -c 'from distutils.sysconfig import get_python_lib; print(get_python_lib())'
In thesite-packageyou should see thehomeassistant/components/switchfolder -
Within the
homeassistant/components/switchfolder run:
wget https://raw.githubusercontent.com/DavidLP/home-assistant/dev/homeassistant/components/switch/pilight.pyto overwrite your file with the fixed one. -
Restart hass and check if devices work. Thanks!