# LIDL 3 outlet zigbee power strip

**URL:** https://discourse.nodered.org/t/lidl-3-outlet-zigbee-power-strip/66964
**Category:** General
**Created:** [26 August 2022 11:17 UTC](https://discourse.nodered.org/t/lidl-3-outlet-zigbee-power-strip/66964 "2022-08-26T11:17:03Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![bobbles](https://avatars.discourse-cdn.com/v4/letter/b/6a8cbe/32.png) [@bobbles](https://discourse.nodered.org/u/bobbles)
#### Post date: [26 August 2022 11:17 UTC](https://discourse.nodered.org/t/lidl-3-outlet-zigbee-power-strip/66964/1 "2022-08-26T11:17:03Z")

</div>

Hi all.  
I'm new to NR and just getting started.  
I have a LIDL 3 outlet strip that I am trying to control via NR.  
I have created a simple flow to test the turning on of the outlets.

![image](https://sea2.discourse-cdn.com/flex016/images/transparent.png)  
Unfortunately the screenshot is not showing up.  
I have had to move the strip back on to HE using webCoRE as I need it functional so cannot post the flow with all the attributes defined.  
He is a description of the various nodes. If I leave “state\_l2”: “ON” to just on, I can turn o/l1 on and off but that's all. I need to control all 3.  
Timestamp - just a trigger to turn it on.  
O/L 2 State - Payload O/P - the second ‘state’ in the list if memory serves me.  
OFF - Just testing if device is OFF.  
Turn On - SET msg.payload to the value of “state\_l2”: “ON”  
O/L 2-Lights- Just selected the strip and using on|off|toggle.  
Any thoughts?  
I have read the paragraph below and it points to using “state\_l2”: “ON”.  
 ![image](https://sea2.discourse-cdn.com/flex016/images/transparent.png)

Any thoughts on how to get this working?  
Maybe you have one. How are you controlling it.

Thanks in advance from a complete newbie.

---

<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: [26 August 2022 11:51 UTC](https://discourse.nodered.org/t/lidl-3-outlet-zigbee-power-strip/66964/2 "2022-08-26T11:51:26Z")

</div>

Most of us tend to use Zigbee2MQTT with a suitable Zigbee dongle. We then do everything via MQTT which is nice and easy.

---

<div class="post-metadata">

### Author: ![bobbles](https://avatars.discourse-cdn.com/v4/letter/b/6a8cbe/32.png) [@bobbles](https://discourse.nodered.org/u/bobbles)
#### Post date: [26 August 2022 12:36 UTC](https://discourse.nodered.org/t/lidl-3-outlet-zigbee-power-strip/66964/3 "2022-08-26T12:36:47Z")

</div>

> [@TotallyInformation](#):
>
> Most of us tend to use Zigbee2MQTT with a suitable Zigbee dongle. We then do everything via MQTT which is nice and easy.

That is what I am using.  
Unfortunately I cannot post a screenshot to show the setup I'm trying.

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [26 August 2022 12:55 UTC](https://discourse.nodered.org/t/lidl-3-outlet-zigbee-power-strip/66964/4 "2022-08-26T12:55:25Z")

</div>

You should just be able to paste a screenshot here. But it probably isn't necessary. Tell us what MQTT topic you are publishing to and exactly what you are publishing that does not work. To show use what you are publishing feed it into a debug node. Then in the debug node hover over the payload top level object and it will show a couple of little buttons to the right. One of those is Copy Value. Click on that one and paste it here.

Also, in the zigbee2mqtt dashboard (which is usually at [http://localhost:8080](http://localhost:8080)) tell us what the device shows in the Model column.

---

<div class="post-metadata">

### Author: ![bobbles](https://avatars.discourse-cdn.com/v4/letter/b/6a8cbe/32.png) [@bobbles](https://discourse.nodered.org/u/bobbles)
#### Post date: [26 August 2022 13:05 UTC](https://discourse.nodered.org/t/lidl-3-outlet-zigbee-power-strip/66964/5 "2022-08-26T13:05:15Z")

</div>

Here is the flow.

```auto
[{"id":"4f384ad12c9218d1","type":"zigbee2mqtt-out","z":"4cf696c943cefac1","name":"O/L2-Lights","server":"62c0f8d0e8f20125","friendly_name":"Garage Strip (HG06338)","device_id":"0xbc33acfffe4f5cac","command":"state","commandType":"z2m_cmd","payload":"payload","payloadType":"msg","optionsValue":"","optionsType":"nothing","x":410,"y":920,"wires":[]},{"id":"3853665ef8baa570","type":"change","z":"4cf696c943cefac1","name":"Turn ON","rules":[{"t":"set","p":"payload","pt":"msg","to":"\"state_l2\":\"ON\"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":240,"y":920,"wires":[["4f384ad12c9218d1"]]},{"id":"a496c897315cb5b8","type":"switch","z":"4cf696c943cefac1","name":"OFF","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"OFF","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":90,"y":920,"wires":[["3853665ef8baa570"]]},{"id":"46db5e13b05a3c7e","type":"zigbee2mqtt-get","z":"4cf696c943cefac1","name":"O/L 2 State","server":"62c0f8d0e8f20125","friendly_name":"Garage Strip (HG06338)","device_id":"0xbc33acfffe4f5cac","state":"state_l2","enableMultiple":false,"x":270,"y":860,"wires":[["a496c897315cb5b8"]]},{"id":"2692d3324e5f6c86","type":"inject","z":"4cf696c943cefac1","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"60","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":110,"y":860,"wires":[["46db5e13b05a3c7e"]]},{"id":"62c0f8d0e8f20125","type":"zigbee2mqtt-server","name":"CORE","host":"10.10.2.1","mqtt_port":"1883","mqtt_username":"","mqtt_password":"","mqtt_qos":"0","tls":"","usetls":false,"base_topic":"zigbee2mqtt"}]

```

---

<div class="post-metadata">

### Author: ![bobbles](https://avatars.discourse-cdn.com/v4/letter/b/6a8cbe/32.png) [@bobbles](https://discourse.nodered.org/u/bobbles)
#### Post date: [26 August 2022 13:21 UTC](https://discourse.nodered.org/t/lidl-3-outlet-zigbee-power-strip/66964/6 "2022-08-26T13:21:17Z")

</div>

I'm new to this so I hope I'm going to give you the correct info here.

> [@Colin](#):
>
> Tell us what MQTT topic you are publishing to

Sending the message to an mqtt 'out'.

> [@Colin](#):
>
> exactly what you are publishing that does not work.

In a 'switch' node I'm publishing "Set - msg.payload - to the value - a-z - "state\_l2":"ON".

> [@Colin](#):
>
> tell us what the device shows in the Model column.

This?

Zigbee Model - TS011F  
Manufacturer - \_TZ3000\_vmpbygs5  
Description - Silvercrest 3 gang switch, with 4 USB (EU, FR, CZ, BS)

In the debug I'm seeing -  
"state\_l2":"ON" not allowed. Try State (on|off|toggle). Throuble with this is if I just use 'ON' I can only control the first O/L.

In the notes for the LiDL HG06338 it says the following:-

### Switch (l1 endpoint)

The current state of this switch is in the published state under the `state_l1` property (value is `ON` or `OFF`). To control this switch publish a message to topic `zigbee2mqtt/FRIENDLY_NAME/set` with payload `{"state_l1": "ON"}`, `{"state_l1": "OFF"}` or `{"state_l1": "TOGGLE"}`. To read the current state of this switch publish a message to topic `zigbee2mqtt/FRIENDLY_NAME/get` with payload `{"state_l1": ""}`.

### [#](https://www.zigbee2mqtt.io/devices/HG06338.html#switch-l2-endpoint)Switch (l2 endpoint)

The current state of this switch is in the published state under the `state_l2` property (value is `ON` or `OFF`). To control this switch publish a message to topic `zigbee2mqtt/FRIENDLY_NAME/set` with payload `{"state_l2": "ON"}`, `{"state_l2": "OFF"}` or `{"state_l2": "TOGGLE"}`. To read the current state of this switch publish a message to topic `zigbee2mqtt/FRIENDLY_NAME/get` with payload `{"state_l2": ""}`

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [26 August 2022 13:27 UTC](https://discourse.nodered.org/t/lidl-3-outlet-zigbee-power-strip/66964/7 "2022-08-26T13:27:51Z")

</div>

When posting flows or code please surround it with with triple backticks on a separate line, rather than single backtick on the same line. That works better with the forum, making it easier to copy.

In the Change node youi need to create a javascript object, not a string, so something like

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/d/fd58cee828c280adc79942d683b98ba0b700881b.png)

> [@bobbles](#):
>
> Sending the message to an mqtt 'out'.

No you aren't. You are sending to a zigbee2mqtt node. I don't use those, they just made life complicated for me. I just use MQTT In and Out nodes directly.  
In fact that means the answer to what you need in the change node may also be wrong. You will have to look at the help text for the zigbee node to see what it wants (or switch to MQTT nodes).

---

<div class="post-metadata">

### Author: ![bobbles](https://avatars.discourse-cdn.com/v4/letter/b/6a8cbe/32.png) [@bobbles](https://discourse.nodered.org/u/bobbles)
#### Post date: [26 August 2022 13:33 UTC](https://discourse.nodered.org/t/lidl-3-outlet-zigbee-power-strip/66964/8 "2022-08-26T13:33:14Z")

</div>

> [@Colin](#):
>
> No you aren't. You are sending to a zigbee2mqtt node.

Told you I was a novice. 😉  
Well I changed it to how you have it above and BINGO we have a winner.

Thankyou so much for this. I've been scratching around and getting nowhere.

---

<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: [26 August 2022 15:20 UTC](https://discourse.nodered.org/t/lidl-3-outlet-zigbee-power-strip/66964/9 "2022-08-26T15:20:40Z")

</div>

Also, I noted that you appear to be sending `ON` or `OFF` but the error tells you to use `on` and `off`. Details matter when talking to computers I'm afraid.

---

<div class="post-metadata">

### Author: ![bobbles](https://avatars.discourse-cdn.com/v4/letter/b/6a8cbe/32.png) [@bobbles](https://discourse.nodered.org/u/bobbles)
#### Post date: [26 August 2022 15:36 UTC](https://discourse.nodered.org/t/lidl-3-outlet-zigbee-power-strip/66964/10 "2022-08-26T15:36:52Z")

</div>

Thanks for the info but ON OFF is working. I will change to on off though and see if it is still OK.  
Thanks again.

---

<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: [26 August 2022 15:41 UTC](https://discourse.nodered.org/t/lidl-3-outlet-zigbee-power-strip/66964/11 "2022-08-26T15:41:52Z")

</div>

> [@bobbles](#):
>
> Thanks for the info but ON OFF is working.

> [@bobbles](#):
>
> In the debug I'm seeing -  
> "state\_l2":"ON" not allowed. Try State (on|off|toggle). Throuble with this is if I just use 'ON' I can only control the first O/L.

I was going by this info that you shared.

---

<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: [9 September 2022 15:42 UTC](https://discourse.nodered.org/t/lidl-3-outlet-zigbee-power-strip/66964/12 "2022-09-09T15:42:54Z")

</div>

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