For those using the Lidl motion sensor(SOLVED)
Moderator: leecollings
- Bospieper
- Posts: 166
- Joined: Thursday 07 November 2019 10:26
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2022.1
- Location: NL
- Contact:
For those using the Lidl motion sensor(SOLVED)
Hi,
I have the following problem. In my house I have several Lidl motion sensors mainly to switch lights for a period of time.
Regularly some sensors stay's in a "On" situation in the domoticz enviroment. I can see it in the app list where the icon of the sensor stays red.
The only thing that works to get the sensor in de normal state is to remove the device in the app list and then reset the sensor. In domoticz the sensor then added as a new device with the state "Off". You can imagine that when this happens often your device counter in the app list is running up in nummers. For example I have a 100 devices and the counter is currently at 315 all becouse off sensors witch are deleted and then new added.
My question is: is there another way to reset manualy or by script, in domoticz, the device?
I think that the problem is that the reset from the device somehow not in domoticz is processed. The consequence for scripting is that once in the "On "state other future movements are not detected.
I have the following problem. In my house I have several Lidl motion sensors mainly to switch lights for a period of time.
Regularly some sensors stay's in a "On" situation in the domoticz enviroment. I can see it in the app list where the icon of the sensor stays red.
The only thing that works to get the sensor in de normal state is to remove the device in the app list and then reset the sensor. In domoticz the sensor then added as a new device with the state "Off". You can imagine that when this happens often your device counter in the app list is running up in nummers. For example I have a 100 devices and the counter is currently at 315 all becouse off sensors witch are deleted and then new added.
My question is: is there another way to reset manualy or by script, in domoticz, the device?
I think that the problem is that the reset from the device somehow not in domoticz is processed. The consequence for scripting is that once in the "On "state other future movements are not detected.
Last edited by Bospieper on Sunday 31 July 2022 18:26, edited 1 time in total.
- waltervl
- Posts: 5859
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: For those using the Lidl motion sensor
Check the gateway user interface (probably zigbee2mqtt?). Is it there still updated? The gateway is communicating with the device so there the reconnect should be executed. Domoticz will follow automatically.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
- Bospieper
- Posts: 166
- Joined: Thursday 07 November 2019 10:26
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2022.1
- Location: NL
- Contact:
Re: For those using the Lidl motion sensor
Hi Waltervl,
If the Gateway is causing the problem then all my sensors should showing the same behavior. I have several Zigbee devices but only the motion sensors are showing this behavior.
If the Gateway is causing the problem then all my sensors should showing the same behavior. I have several Zigbee devices but only the motion sensors are showing this behavior.
- waltervl
- Posts: 5859
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: For those using the Lidl motion sensor
Losing connection or not being updated is mostly caused by the gateway. So first to check the gateway if the sensor is updated there. If not then it is a gateway or zigbee network issue. If it is updating in Gateway UI but not in Domoticz then it is a communication issue or Domoticz issue.
What is the gateway? Zigate, Deconz, Zigbee2MQTT (plugin or AutoDiscover)?
What is the gateway? Zigate, Deconz, Zigbee2MQTT (plugin or AutoDiscover)?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
- Bospieper
- Posts: 166
- Joined: Thursday 07 November 2019 10:26
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2022.1
- Location: NL
- Contact:
Re: For those using the Lidl motion sensor
Hi Waltervl,
The gateway is updated by sensor movement, domoticz not. I am using Zigbee2mqtt Plugin v 3.1.0-beta.
Grtz. Piet
The gateway is updated by sensor movement, domoticz not. I am using Zigbee2mqtt Plugin v 3.1.0-beta.
Grtz. Piet
- waltervl
- Posts: 5859
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: For those using the Lidl motion sensor
Then you should check with the plugin forum topic viewtopic.php?t=23607 or make a github issue in the plugin repository https://github.com/stas-demydiuk/domoti ... gin/issues
You can also consider using the MQTT Autodiscover gateway instead of the plugin https://www.domoticz.com/wiki/Zigbee2MQ ... todiscover
You can also consider using the MQTT Autodiscover gateway instead of the plugin https://www.domoticz.com/wiki/Zigbee2MQ ... todiscover
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
- Bospieper
- Posts: 166
- Joined: Thursday 07 November 2019 10:26
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2022.1
- Location: NL
- Contact:
Re: For those using the Lidl motion sensor
Hi Waltervl,
I'll give it a try
I'll give it a try

- Bospieper
- Posts: 166
- Joined: Thursday 07 November 2019 10:26
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2022.1
- Location: NL
- Contact:
Re: For those using the Lidl motion sensor(SOLVED)
Solved the problem by manually editing the domoticz database.
- waltervl
- Posts: 5859
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: For those using the Lidl motion sensor(SOLVED)
?? What did you change then?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
- Bospieper
- Posts: 166
- Joined: Thursday 07 November 2019 10:26
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2022.1
- Location: NL
- Contact:
Re: For those using the Lidl motion sensor(SOLVED)
Hi Walterv,
I've changed the Nvalue and Svalue from 1 to 0. I compare these values with the ones with the motion sensors normally working.
I've changed the Nvalue and Svalue from 1 to 0. I compare these values with the ones with the motion sensors normally working.
-
- Posts: 13
- Joined: Friday 13 May 2022 7:57
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: For those using the Lidl motion sensor(SOLVED)
What is the model of the sensors you are using ? I just bought one, it appears as a TY0202, and is recognized as a Door Unit by default, which obviously seems wrong.
I just can't get it to work correctly, even after having reconfigured it to a motion sensor, the input value stays at « Off », and nothing appears in domoticz log.
Note: i'm using Domoticz-Zigbee plugin with a Zigate.
I just can't get it to work correctly, even after having reconfigured it to a motion sensor, the input value stays at « Off », and nothing appears in domoticz log.
Note: i'm using Domoticz-Zigbee plugin with a Zigate.
-
- Posts: 9
- Joined: Friday 09 September 2022 16:54
- Target OS: Linux
- Domoticz version: 2023-2
- Location: France
- Contact:
Re: For those using the Lidl motion sensor(SOLVED)
Hi,
I have just installed one today and it took several attemps to get it working in Domoticz. This is with version 6.2.145 of the ZigBeeforDomoticZ plugin.
The sensor did appear in DZ as a motion sensor after I enabled 'Accept new Hardware Devices' in DZ setup and started pairing in the plugin gui,
but the state stayed always off in DZ even after the red led on the sensor switched on and off as expected.
Below the messages found in the plugin log, resulting in no change in DZ:
I ended up cleaning the device from DZ and retried the pairing (2 times) to finally see the sensor reported on or off in DZ.
When everything is OK you should see messages as below when the sensor detects movements :
Hope this helps.
I have just installed one today and it took several attemps to get it working in Domoticz. This is with version 6.2.145 of the ZigBeeforDomoticZ plugin.
The sensor did appear in DZ as a motion sensor after I enabled 'Accept new Hardware Devices' in DZ setup and started pairing in the plugin gui,
but the state stayed always off in DZ even after the red led on the sensor switched on and off as expected.
Below the messages found in the plugin log, resulting in no change in DZ:
Code: Select all
Decode004D V2 - Device Annoucement: NwkId: ef14 Ieee: 2c1165fffe819cc0 MacCap: 80 ReJoin: None LQI: 6b NewDevice: False
------------ > Existing device ShortId New: ef14 ShortId Old: ef14
device_annoucementv2 - Nwkid: ef14 Status: inDB
------------ > No Rejoin Flag seen, droping
When everything is OK you should see messages as below when the sensor detects movements :
Code: Select all
Zigate: UpdateDevice - (Zigate - TY0202_Motion-2c1165fffe819cc0-01) 1:On
Zigate: UpdateDevice - (Zigate - TY0202_Tamper-2c1165fffe819cc0-01) 1:Tamper
-
- Posts: 13
- Joined: Friday 13 May 2022 7:57
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: For those using the Lidl motion sensor(SOLVED)
Thanks. So i probably need to switch to the beta6 branch. I looked for TY0202 in the rc-6.3 branch without finding anything, but it seems it is indeed supported by the beta branch.
-
- Posts: 13
- Joined: Friday 13 May 2022 7:57
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: For those using the Lidl motion sensor(SOLVED)
Ok, so i got it working by just cherry picking the two relevant commits from beta branch. Detected and working fine.
One more question: I'm trying to use it as an automatic light (presence -> light on, no presence -> light off). The problem is that even if i stay in the room, i get an "off" event after around 30 seconds, and then another one about 30 seconds later. And during that period, no movement can wake the light on again (it does not trigger the red light of the detector). So that makes it quite unusable as an automatic light detection.
How do you configure them so that you don't have this issue ?
One more question: I'm trying to use it as an automatic light (presence -> light on, no presence -> light off). The problem is that even if i stay in the room, i get an "off" event after around 30 seconds, and then another one about 30 seconds later. And during that period, no movement can wake the light on again (it does not trigger the red light of the detector). So that makes it quite unusable as an automatic light detection.
How do you configure them so that you don't have this issue ?
-
- Posts: 9
- Joined: Friday 09 September 2022 16:54
- Target OS: Linux
- Domoticz version: 2023-2
- Location: France
- Contact:
Re: For those using the Lidl motion sensor(SOLVED)
I see the same behavior with 2 'Off' states reported in Domoticz. I guess this is the difference between a motion sensor (this sensor) and an occupancy sensor.
The only parameter I found is for controlling the time the 'on' status last after a motion is detected.
This can be set in Domoticz in the 'off delay' field (per device) or in the zigate gui with parameter 'Delay in sec to reset motion detection' (global for all motion sensors).
After this timer expires the sensor reports an Off state. The Off state stays until there is no more motion detected. If so, a 2nd Off state is reported 50-60s after the first one.
Further On state will only be reported after the 2nd Off state. Kind of strange behaviour but all my researches on internet tell the same story.
So bottom line the motion sensor works with one-minute intervals at best.
The only parameter I found is for controlling the time the 'on' status last after a motion is detected.
This can be set in Domoticz in the 'off delay' field (per device) or in the zigate gui with parameter 'Delay in sec to reset motion detection' (global for all motion sensors).
After this timer expires the sensor reports an Off state. The Off state stays until there is no more motion detected. If so, a 2nd Off state is reported 50-60s after the first one.
Further On state will only be reported after the 2nd Off state. Kind of strange behaviour but all my researches on internet tell the same story.
So bottom line the motion sensor works with one-minute intervals at best.
-
- Posts: 13
- Joined: Friday 13 May 2022 7:57
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: For those using the Lidl motion sensor(SOLVED)
Ok, so it seems that « ON » can be used to trigger events, but obviously « OFF » is not a reliable event. Thanks for the confirmation.
-
- Posts: 744
- Joined: Saturday 30 May 2015 22:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Contact:
Re: For those using the Lidl motion sensor(SOLVED)
I have a virutal motion sensor added that I can keep 'on' for a much longer time. The advantage is that the actual motion sensor can be set to a short reaction time, which makes it useful for other purposes than just keeping the light on. This is the dzvents script that I used to control that 2nd, virtual sensor:julienb wrote: ↑Sunday 11 September 2022 17:19 Ok, so i got it working by just cherry picking the two relevant commits from beta branch. Detected and working fine.
One more question: I'm trying to use it as an automatic light (presence -> light on, no presence -> light off). The problem is that even if i stay in the room, i get an "off" event after around 30 seconds, and then another one about 30 seconds later. And during that period, no movement can wake the light on again (it does not trigger the red light of the detector). So that makes it quite unusable as an automatic light detection.
How do you configure them so that you don't have this issue ?
Code: Select all
return {
active = true,
on = {
devices = {'Woonkamer Motion'}
},
execute = function(domoticz, device)
local motionWoonkamerDetected = domoticz.devices('Motion_Woonkamer_detected')
if device.state == 'On' then
if motionWoonkamerDetected.state == 'On' then
motionWoonkamerDetected.cancelQueuedCommands()
else
motionWoonkamerDetected.switchOn()
end
domoticz.log ('Motioned detected switch is switched ON by woonkamer motion')
elseif device.state == 'Off' then
motionWoonkamerDetected.switchOn().checkFirst().forMin(30)
motionWoonkamerDetected.switchOff().checkFirst().afterMin(30)
end
end
}
Who is online
Users browsing this forum: Google [Bot] and 1 guest