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/switch
folder. 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 homeassistant
orpython setup.py install
you have to search for this folder in yoursite-package
path of your python distribution. To get the location of thesite-package
folder type:
python -c 'from distutils.sysconfig import get_python_lib; print(get_python_lib())'
In thesite-package
you should see thehomeassistant/components/switch
folder -
Within the
homeassistant/components/switch
folder run:
wget https://raw.githubusercontent.com/DavidLP/home-assistant/dev/homeassistant/components/switch/pilight.py
to overwrite your file with the fixed one. -
Restart hass and check if devices work. Thanks!