Skip to content

Lightwave RF custom component for Home Assistant. Requires generation 2 ("Link Plus") hub, but will control both generation 1 ("Connect Series") and generation 2 ("Smart Series") devices.

bigbadblunt/homeassistant-lightwave2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Note: This repo is receiving minimal maintenance - a new version is here

Lightwave2

Home Assistant (https://www.home-assistant.io/) component for controlling LightwaveRF (https://lightwaverf.com) devices with use of a Lightwave Link Plus hub. Controls both generation 1 ("Connect Series") and generation 2 ("Smart Series") devices. Does not work with gen1 hub.

Setup

There are two ways to set up:

1. Using HACS (preferred)

This component is available through the Home Assistant Community Store HACS (https://hacs.netlify.com/)

If you use this method, your component will always update to the latest version. But you'll need to set up HACS first.

2. Manual

Copy all files and folders from custom_components/lightwave2 to a <ha_config_dir>/custom_components/lightwave2 directory. (i.e. you should have <ha_config_dir>/custom_components/lightwave2/__init__.py, <ha_config_dir>/custom_components/lightwave2/switch.py, <ha_config_dir>/custom_components/lightwave2/translations/en.json etc)

The latest version is at https://github.com/bigbadblunt/homeassistant-lightwave2/releases/latest

If you use this method then you'll need to keep an eye on this repository to check for updates.

Configuration:

In Home Assistant:

  1. Enter configuration menu
  2. Select "Integrations"
  3. Click the "+" in the bottom right
  4. Choose "Lightwave 2"
  5. Enter username and password
  6. This should automatically find all your devices

Usage:

Once configured this should then automatically add all switches, lights, thermostats, blinds/covers, sensors and energy monitors that are configured in your Lightwave app. If you add a new device you will need to restart Home Assistant, or remove and re-add the integration.

Various sensor entities (including power consumption) and controls for the button lock and status LED are exposed within the corresponding entities.

All other attributes reported by the Lightwave devices are exposed with the names lwrf_*. These are all read-only.

For gen2 devices, the brightness can be set without turning the light on using lightwave2.set_brightness.

Firmware 5+ devices generate lightwave2.click events when the buttons are pressed. The "code" returned is the type of click:

Code Hex Meaning
257 101 Up button single press
258 102 Up button double press
259 103 Up button triple press
260 104 Up button quad press
261+ (and so on - I believe up to 20x click is supported)
512 200 Up button press and hold
768 300 Up button release after long press
4353 1101 Down button single press
4354 1102 Down button double press
4355 1103 Down button triple press
4356 1104 Down button quad press
4357+ (and so on)
4608 1200 Down button press and hold
4864 1300 Down button release after long press

For sockets the codes are the "up button" versions.

There are further service calls:

lightwave2.reconnect: Force a reconnect to the Lightwave servers (only for non-public API, has no effect on public API) lightwave2.whdelete: Delete a webhook registration (use this if you get "Received message for unregistered webhook" log messages) lightwave2.update_states: Force a read of all states of devices

Thanks

Credit to Warren Ashcroft whose code I used as a base https://github.com/washcroft/LightwaveRF-LinkPlus

About

Lightwave RF custom component for Home Assistant. Requires generation 2 ("Link Plus") hub, but will control both generation 1 ("Connect Series") and generation 2 ("Smart Series") devices.

Topics

Resources

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages