Hi @bigbadblunt! Sorry for the late reply! You are spot on correct…I could have sworn that I had the Link Plus but turns out when I double checked it that I was wrong and it’s actually the LW930…Doh!
Thanks again for your help though and apologies for the wild goose chase!
Hi, Thanks for your work, this module has been working great except for some small issues.
I’m currently getting the following error on startup
Setup of lightwave2 is taking over 10 seconds.
And when I use the official HomeKit module to expose my thermostat I’m getting the following
climate.thermostat: HVAC modes not yet available. Please disable auto start for homekit.
The impact of this is more HVAC modes exposed to HomeKit than my thermostat is capable of (such as cool) and also that state changes don’t track to HomeKit correctly as a result.
I’ve disabled the autostart of HomeKit for over 10 minutes and it still gives me the same error. Is this because the lightwave2 module is using custom attributes (lwrf_) instead of the usual HomeAssistant ones for climate HVAC modes?
When dimmers are connected I assume these can be controlled as dimmers in the HA app? Does the app report the state of the device if say another app was used (LightWave or if the button is used on the switch)?
The setup taking over 10 seconds is going to remain - it takes that long to establish a connection with the LW servers and download the hierarchy.
On the Homekit/HVAC modes, I’ll have to take a look. The component exposes the correct modes to Homeassistant, so I’m not sure why it has weird behaviour with Homekit. The error message you provided suggests it’s more to do with the generic behaviour of thermostats, but I’ll have a look and see what I can work out (but to set your expectations, I don’t have Homekit, so am limited in what I can do!).
The app will report state accurately for generation 2 devices - these have two way communication and are tracked properly. It’s using the same functionality as the official app, so will be as accurate as that is.
Great! Thank you. I’ve just updated and will try it out over the next couple of days.
Edit:
This has thrown some new errors,
2019-12-21 22:22:15 ERROR (SyncWorker_15) [pyhap.characteristic] TargetHeatingCoolingState: value=0 is an invalid value.
2019-12-21 22:22:15 ERROR (MainThread) [homeassistant.core] Error doing job: Future exception was never retrieved
Traceback (most recent call last):
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/homekit/type_thermostats.py", line 332, in update_state
self.char_target_heat_cool.set_value(HC_HASS_TO_HOMEKIT[hvac_mode])
File "/usr/local/lib/python3.7/site-packages/pyhap/characteristic.py", line 198, in set_value
value = self.to_valid_value(value)
File "/usr/local/lib/python3.7/site-packages/pyhap/characteristic.py", line 137, in to_valid_value
raise ValueError(error_msg)
ValueError: TargetHeatingCoolingState: value=0 is an invalid value.
Yes, if it’s just an isolated instance then safe to ignore the message. If you start getting lots of them, or something’s not working then let me know.
FYI, if you edit your posts, then I don’t get a notification. Safer to add a new post.
I got some Lightwave stuff over Christmas so will do some testing shortly. However I don’t think I will yet go all out with this as I am not keen on it being cloud based.
I already have some Zigbee switches that I use and I’ve ordered an AOne Smart 13a Double Socket to test out so that may be the route I go down as it maintains local control.
Would it be possible to implement the ability to lock or unlock the switch via HA? And adjust the LED brightness? not sure about the light switches but with sockets you can lock the physical switch so it can’t be used, would be great if I could do this via HA so as to try and keep everything within one system?
Just had the Link Plus starter kit (Gen 2) with power socket. I have also had Gen1 kit for years, and over the Christmas period I have tasked myself to getting Gen2 up and running. Everything is working with your component, however, I cannot seem to get scripts to run for switching lights and sockets when using the Google Home app. All works in HA.
I did have Google Home (using Hey Google) for the Gen 1 lightwave component. For example, I had a script in HA call Lounge Lamps On, and I said in Google Home ‘hey google lounge lamps on’ and the script was executed. if i try that now with the Gen2 component google says that the device has not been setup yet.