From 6e346cd5789fda1a41eb665d15e98485473e9347 Mon Sep 17 00:00:00 2001 From: Thibault Cohen Date: Fri, 23 Jun 2017 16:09:43 -0400 Subject: [PATCH] Add note in decora light (#2862) * Add note in decora light * Remove some line line from the traceback --- source/_components/light.decora.markdown | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/source/_components/light.decora.markdown b/source/_components/light.decora.markdown index d40acae2bac..349172fd0f8 100644 --- a/source/_components/light.decora.markdown +++ b/source/_components/light.decora.markdown @@ -34,3 +34,23 @@ Configuration variables: - **[mac address]** (*Required*): The bluetooth address of the switch. - **name** (*Optional*): The custom name to use in the frontend. - **api_key** (*Required*): The API key to acces the device. + +

+If you get an error looking like this: + +```bash +Jun 20 19:41:18 androlapin hass[29588]: ERROR:homeassistant.components.light:Error while setting up platform decora +[...] +Jun 20 19:41:18 androlapin hass[29588]: File "/usr/lib/python3.6/concurrent/futures/thread.py", line 55, in run +Jun 20 19:41:18 androlapin hass[29588]: result = self.fn(*self.args, **self.kwargs) +Jun 20 19:41:18 androlapin hass[29588]: File "/opt/homeassistant/custom_components/light/decora.py", line 68, in setup_platform +Jun 20 19:41:18 androlapin hass[29588]: light = DecoraLight(device) +[...] +Jun 20 19:41:18 androlapin hass[29588]: OSError: [Errno 8] Exec format error +``` + +1. Go to your `.homeassistant` folder +2. Then go to `deps/bluepy` subfolder. +3. Then run `make all` +4. Restart home assistant +