Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/core.py”, line 1010, in _event_to_service_call
yield from service_handler.func(service_call)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/switch/init.py”, line 115, in async_handle_switch_service
yield from switch.async_turn_off()
File “/usr/lib/python3.5/asyncio/futures.py”, line 380, in iter
yield self # This tells Task to wait for completion.
File “/usr/lib/python3.5/asyncio/tasks.py”, line 304, in _wakeup
future.result()
File “/usr/lib/python3.5/asyncio/futures.py”, line 293, in result
raise self._exception
File “/usr/lib/python3.5/concurrent/futures/thread.py”, line 55, in run
result = self.fn(*self.args, **self.kwargs)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/switch/rpi_gpio.py”, line 84, in turn_off
rpi_gpio.write_output(self._port, 1 if self._invert_logic else 0)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/rpi_gpio.py”, line 54, in write_output
GPIO.output(port, value)
RuntimeError: The GPIO channel has not been set up as an OUTPUT
i get this error when i turn on my GPIO switch… can anyone help me trouble shoot?