@HarmlessSaucer from the details on the open API page, while I have not tested this, it should also work with the 2nd generation WiFi links.
But you are right, I should state this has only been tested on 1st generation WiFi links. Perhaps someone with a 2nd generation WiFi links can confirm if it works or fails for them? If it fails I would be interested in a log file to see the cause of the failure.
Cool! Ive got a Gen2 link so I’ll try and give it a go tonight and let you know. Obviously it’ll only work with Gen1 devices on that hub, which was my main concern.
@GeoffAtHome Yes, I’ve removed the files from the custom_components folder.
Here’s what shows up in the log:
2018-12-12 23:42:20 ERROR (MainThread) [homeassistant.setup] Error during setup of component lightwave
File "/usr/src/app/homeassistant/components/lightwave.py", line 44, in async_setup
2018-12-12 23:42:23 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of light.lightwave. Setup failed for dependencies: lightwave
2018-12-12 23:42:23 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform light.lightwave: Could not set up all dependencies.
2018-12-12 23:42:20 ERROR (MainThread) [homeassistant.setup] Error during setup of component lightwave
File “/usr/src/app/homeassistant/components/lightwave.py”, line 44, in async_setup
@jono, @mhaylock thanks for the info. I’ll check to see what the problem is. On the virtual python machine that I used for testing all was working. I haven’t, since it was pushed to .84, had a chance to test from within hassio. I am just pulling the update now.
I fear this is going to take time to figure out as I have as yet, not debugged in hassio and only in the virtual environment. Its going to be a learning curve for me to even understand how to update files in hassio.
@jono, @mhaylock. Update complete. I an now running 0.84.1 and the component is working as expected. Looking at the changelog between 0.84 and 0.84.1 doesn’t look like this should have changed anything.
I have not tried 0.84.
Please verify with 0.84.1.that you still have the problem.
Error during setup of component lightwave
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/homeassistant/setup.py", line 145, in _async_setup_component
hass, processed_config)
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/lightwave.py", line 44, in async_setup
switches = config[DOMAIN][CONF_SWITCHES]
KeyError: 'switches'
Fantastic work Geoff!!
Just updated to 0.84.1 and all is working well!
Edited the config file as per the instructions and removed the lightwave.py file, along with the ‘light’ and ‘switch’ folders from custom_components directory. Gave Hassio a restart, and all is working well!
ive updated to 0.84.1 and still cant get it to load
i see in the log the following, i didn’t use the custom component previously.
:/home/homeassistant/.homeassistant$ grep lightwave home-assistant.log
2018-12-14 10:48:33 INFO (MainThread) [homeassistant.loader] Loaded switch.lightwave from homeassistant.components.switch.lightwave
2018-12-14 10:48:34 INFO (MainThread) [homeassistant.loader] Loaded lightwave from homeassistant.components.lightwave
2018-12-14 10:48:34 INFO (MainThread) [homeassistant.setup] Setting up lightwave
2018-12-14 10:48:34 ERROR (MainThread) [homeassistant.setup] Error during setup of component lightwave
File “/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/lightwave.py”, line 36, in async_setup
KeyError: ‘lightwave’
2018-12-14 10:48:34 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of switch.lightwave. Setup failed for dependencies: lightwave
2018-12-14 10:48:34 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform switch.lightwave: Could not set up all dependencies.
hi Martin can you help with some info what generation of lightwave is the new component meant for cant seem to find it in the docs, its for a friend (im his tec surpport) think he has early gen 1 hub has no lcd screen.
thanks
i solved my issue, as i only have switches, i only declared config for switches however it looks like the component requires both lights and switches to be declared. After adding a dummy light it all works correctly. I updated to 0.84.3 at the same time.
grep lightwave home-assistant.log
2018-12-18 10:37:52 INFO (MainThread) [homeassistant.loader] Loaded lightwave from homeassistant.components.lightwave
2018-12-18 10:37:52 INFO (MainThread) [homeassistant.setup] Setting up lightwave
2018-12-18 10:37:52 INFO (MainThread) [homeassistant.setup] Setup of domain lightwave took 0.0 seconds.
2018-12-18 10:37:54 INFO (MainThread) [homeassistant.loader] Loaded switch.lightwave from homeassistant.components.switch.lightwave
2018-12-18 10:37:54 INFO (MainThread) [homeassistant.components.switch] Setting up switch.lightwave
2018-12-18 10:37:59 INFO (MainThread) [homeassistant.loader] Loaded light.lightwave from homeassistant.components.light.lightwave
2018-12-18 10:37:59 INFO (MainThread) [homeassistant.components.light] Setting up light.lightwave
2018-12-18 10:38:46 INFO (Thread-5) [lightwave.lightwave] LW broker OK!
2018-12-18 10:38:58 INFO (Thread-6) [lightwave.lightwave] LW broker OK!