# LightwaveRF Smart Dimmer control

**URL:** <https://discourse.nodered.org/t/lightwaverf-smart-dimmer-control/24632>\
**Category:** Hardware\
**Created:** [11 April 2020 09:25 UTC](https://discourse.nodered.org/t/lightwaverf-smart-dimmer-control/24632 "2020-04-11T09:25:50Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brew](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/brew/32/19776_2.png) [@Brew](https://discourse.nodered.org/u/Brew)\
**Post date:** [11 April 2020 09:25 UTC](https://discourse.nodered.org/t/lightwaverf-smart-dimmer-control/24632/1 "2020-04-11T09:25:50Z")

</div>

Has anyone had any success with integrating LightwaveRF devices into Node-Red?

My apologies if this has been covered elsewhere and I've just missed it, equally please forgive me if the solution is blatantly obvious and I've just overlooked it.

I've got some LightwaveRF Smart Dimmers, 2x2 gang, 1x1gang and I'm tying to work out how I can control them via Node-Red. While I'm ultimately looking into adding a RF module to my Pi and controlling them directly via OOK, however in the immediate term I had hoped there would be someway to talk directly to the Link Plus unit or even the API but I'm stumped.

There is some very mediocre control via IFTTT and they are compatible with Apple HomeKit so looping via there is an option.

What I want to be able to do is send on/off and level control from dashboard but also then schedule some commands as well.

Has anyone had any success with this already?

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [11 April 2020 10:14 UTC](https://discourse.nodered.org/t/lightwaverf-smart-dimmer-control/24632/2 "2020-04-11T10:14:31Z")

</div>

Looking at their documentation, you need to create a token on:

[https://my.lightwaverf.com/](https://my.lightwaverf.com/)

Then you should be able to use their API, but indeed that will require some effort to digest.

---

<div class="post-metadata">

**Author:** ![Brew](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/brew/32/19776_2.png) [@Brew](https://discourse.nodered.org/u/Brew)\
**Post date:** [15 April 2020 06:12 UTC](https://discourse.nodered.org/t/lightwaverf-smart-dimmer-control/24632/3 "2020-04-15T06:12:22Z")

</div>

It appears there is more to it or I'm missing a trick,

So I got me a api client token, dropped it into my http request node as bearer authentication and tried the following

> GET [https://publicapi.lightwaverf.com/v1/structures](https://publicapi.lightwaverf.com/v1/structures)

and

> GET [https://publicapi.lightwaverf.com/v2/structures](https://publicapi.lightwaverf.com/v2/structures)

But sadly I keep getting a

> payload: "{"message":"Unauthorized"}"  
> statusCode: 401

Response. Am I doing something wrong within Node-Red or am I just not handling the api correctly?

---

<div class="post-metadata">

**Author:** ![Brew](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/brew/32/19776_2.png) [@Brew](https://discourse.nodered.org/u/Brew)\
**Post date:** [18 April 2020 21:06 UTC](https://discourse.nodered.org/t/lightwaverf-smart-dimmer-control/24632/4 "2020-04-18T21:06:49Z")

</div>

Update you need to take the API Key and the Refresh Key and get a Bearer Key, however the Bearer Key is only valid for 10 hours.

..... my tinkering continues.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [19 April 2020 16:14 UTC](https://discourse.nodered.org/t/lightwaverf-smart-dimmer-control/24632/5 "2020-04-19T16:14:09Z")

</div>

> [@Brew](#):
>
> Has anyone had any success with integrating LightwaveRF devices into Node-Red?

Sorry, I've been busy and missed this.

Yes, I use them extensively and have done for years. Though I have a local 433MHz transceiver (RFXtrx433-E) so certainly don't (and would never) use a cloud service.

Probably won't buy any more though as they are relatively expensive for what they do & they don't include any feedback. I mainly use the plug-in sockets and you can never be certain that they have responded to a command (they sometimes don't).

---

<div class="post-metadata">

**Author:** ![Brew](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/brew/32/19776_2.png) [@Brew](https://discourse.nodered.org/u/Brew)\
**Post date:** [19 April 2020 20:21 UTC](https://discourse.nodered.org/t/lightwaverf-smart-dimmer-control/24632/6 "2020-04-19T20:21:13Z")

</div>

Hi Thanks for the steer, I had been thinking of trying to do a similar thing with these TX / RX units  
[Quasar QAM-TX3 RF Transmitter Module 433.92 MHz](https://uk.rs-online.com/web/p/rf-modules/6171811/)  
[RF Solutions QAM-RX10-433 Module](https://uk.rs-online.com/web/p/products/1258208/)

Are you controlling your RFXtrx433-E directly from Node-Red or through an intermediary solution?

The API would deliver feedback but there is something nice about having a 'off-grid' solution.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [19 April 2020 20:30 UTC](https://discourse.nodered.org/t/lightwaverf-smart-dimmer-control/24632/7 "2020-04-19T20:30:48Z")

</div>

No problem. There weren't so many options when I started 🙂

Yes, I'm controlling direct from Node-RED. Using Max's excellent node for the RFX units.

There is no feedback because the protocol doesn't support it. You send a signal to the unit but you don't get anything back. This is a common problem with 433MHz based units of all kinds.

That is why most people are switching to WiFi, Zigbee, etc. all of which have the bandwidth and the protocols to be able to deliver 2-way comms in reasonable timeframes.

---

<div class="post-metadata">

**Author:** ![Brew](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/brew/32/19776_2.png) [@Brew](https://discourse.nodered.org/u/Brew)\
**Post date:** [19 April 2020 20:42 UTC](https://discourse.nodered.org/t/lightwaverf-smart-dimmer-control/24632/8 "2020-04-19T20:42:56Z")

</div>

Cool thank you I'll keep tinkering.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [18 June 2020 20:44 UTC](https://discourse.nodered.org/t/lightwaverf-smart-dimmer-control/24632/9 "2020-06-18T20:44:37Z")

</div>

Closed on 18 June 2020 20:44 UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
