LIDL Occupancy & Door Switch

Hello all

I got this config and the basic functions are there !! but for sure is not the final

zigbeeModel: [‘TY0203’],
model: ‘HG0636’,
vendor: ‘Lidl’,
description: ‘SilverCrest & window contact sensor’,
supports: ‘contact’,
fromZigbee: [fz.ias_contact_alarm_1,fz.battery,fz.ias_contact_alarm_1_report],
toZigbee: [],
exposes: [e.battery(),e.tamper(),e.contact(),e.battery_low()],
},

{
zigbeeModel: [‘TY0202’],
model: ‘HG06335’,
vendor: ‘Lidl’,
description: ‘Motion sensor’,
supports: ‘occupancy’,
fromZigbee: [fz.ias_occupancy_alarm_1,fz.battery],
toZigbee: [],
exposes: [e.occupancy(), e.battery_low(), e.tamper()],
},

hello,contact is working.

motion not, thanks for puting the confs

did you manage to pair it?
Because my is working, But I had to repair it

Same here, added to devices.js, repaired it, and it worked.

Hello,

motion sensor is working.
Thanks for config!

Hello all,

i have the same motion detector now, but i do not now what i have to edit or to repair.

Could someone explain exactely what i have to put into devices.js and where ist this file located?

And how do i repair what exactely?

Many thanks for answers…

2020-11-27 16_18_19-Window

Hi…

I also boughed this device TY0202. I have a RaspberryPI with a CC2531 sniffer with Domoticz on it.
I tried to pair the device with CC2531. This worked, but the log says:

nov 28 20:40:23 raspberrypi npm[453]: zigbee2mqtt:warn 2020-11-28 20:40:23: Received message from unsupported device with Zigbee model ‘TY0202’
nov 28 20:40:23 raspberrypi npm[453]: zigbee2mqtt:warn 2020-11-28 20:40:23: Please see: https://www.zigbee2mqtt.io/how_tos/how_to_support_new_devices.html.

nov 28 20:59:04 raspberrypi npm[453]: zigbee2mqtt:info 2020-11-28 20:59:04: MQTT publish: topic ‘zigbee2mqtt/bridge/log’, payload ‘{“type”:“device_announced”,“message”:“announce”,“meta”:{“friendly_name”:“0x680ae2fffe0b6de8”}}’

What steps must I make to get this device working on my Pi?
What steps must I make after the first step, to make it work under Domoticz?

I’m a newbee, so please be patiened with me

hello
I believe that there is an oficial support.
try to update the the zigbee installation

# Stop Zigbee2MQTT and go to directory
sudo systemctl stop zigbee2mqtt
cd /opt/zigbee2mqtt

# Backup configuration
cp -R data data-backup

# Update
git checkout HEAD -- npm-shrinkwrap.json
git pull
npm ci

# Restore configuration
cp -R data-backup/* data
rm -rf data-backup

# Start Zigbee2MQTT
sudo systemctl start zigbee2mqtt

I made TY0202 (motion sensor) working today in HA
It requires to add some lines to devices.js (copy from most recent file of zigbee-herdsman repo)

In fact I was doing somthing like this for the first time. Seems it’s not always as easy as copy/paste. But in this case it was

Hi,

Device now shows up in log (Putty). When I push button on rearside, it shows:
dec 02 18:51:12 raspberrypi npm[13388]: Zigbee2MQTT:info 2020-12-02 18:51:12: MQTT publish: topic ‘zigbee2mqtt/MotionSensor_Z001’, payload ‘{“battery_low”:false,“linkquality”:0,“occupancy”:true,“tamper”:false}’
dec 02 18:51:13 raspberrypi npm[13388]: Zigbee2MQTT:info 2020-12-02 18:51:13: MQTT publish: topic ‘zigbee2mqtt/MotionSensor_Z001’, payload ‘{“battery_low”:false,“linkquality”:0,“occupancy”:true,“tamper”:true}’

So device is working…

But it still doesn’t show in Domoticz… how to fix that?