Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[New device VERSION! support]: Zigbee Wifi Mmwave Menselijke Aanwezigheid Motion Sensor Met Luminantie/Afstand Detectie 5/110/220V Tuya Smart leven Domotica #18434

Closed
Doctor-JaKe opened this issue Jul 26, 2023 · 11 comments
Labels
new device support New device support request

Comments

@Doctor-JaKe
Copy link

Doctor-JaKe commented Jul 26, 2023

Link

https://nl.aliexpress.com/item/1005004704966668.html?spm=a2g0o.order_detail.order_detail_item.4.75bb6d76CNuiqz&gatewayAdapt=glo2nld

Database entry

where in latest HAOS / Home Assistant 2023.7.3 / ZijBee2MQTT 1.32.1-1 / can I

Comments

this is the 3rd device of this kind I am trying to use in Zigbee2MQTT. The 1st 2 are working fine, even they are not detected/recognized completely right (because of their (icon) picture.

All 3 devices can be paired (successfully with interview completed) but only the 1st 2 are working /supported.

All are these "supported" Tuya presence sensor :

See this page : https://www.zigbee2mqtt.io/devices/TS0601_smart_human_presence_sensor_1.html

And don't bother the wrorng/different (icon) picture of my 2 1st one devices (as ceiling mounted (presence sensor) devices : they are working just perfectly.

The 1st 2 devices that work are :


Friendly name
Tuya ZY-M100 by TS601 Human Presense Sensor Z2M Nr 1
Description

Last seen
N/A
Availability
Disabled
Device type
Router
Zigbee Model
TS0601
Zigbee Manufacturer
_TZE204_ztc6ggyl
Description
Ceiling human breathe sensor
Support status

Supported

IEEE Address
0x70ac08fffef6176b
Network address
0x3CC5
Manufacturer
TuYa
Model
ZY-M100-L
Power
Interview completed
True

Friendly name
Tuya ZY-M100 by TS601 Human Presense Sensor Z2M Nr 1
Description

Last seen
N/A
Availability
Disabled
Device type
Router
Zigbee Model
TS0601
Zigbee Manufacturer
_TZE204_ztc6ggyl
Description
Ceiling human breathe sensor
Support status

Supported

IEEE Address
0x70ac08fffef6176b
Network address
0x3CC5
Manufacturer
TuYa
Model
ZY-M100-L
Power
Interview completed
True

supporteddevice2


The 3rd device that is not suppoerted gives me this info m:

riendly name
0xa4c1380679a8b7a8
Description

Last seen
N/A
Availability
Disabled
Device type
Router
Zigbee Model
TS0601
Zigbee Manufacturer
_TZE204_qasjif9e
Support status

Not supported

IEEE Address
0xa4c1380679a8b7a8
Network address
0x8027
Power
Interview completed
True

unsupported1
unsupported2

External converter

No response

Supported color modes

No response

Color temperature range

No response

@Doctor-JaKe Doctor-JaKe added the new device support New device support request label Jul 26, 2023
@DaanVT86
Copy link

DaanVT86 commented Jul 26, 2023

I have the same (according to Zigbee2MQTT, unsupported) _tze204_qasjif9e device. This seems to be the newer model of this device, that has the USB-C Connection instead of the micro-usb connector.

Bought it from: https://nl.aliexpress.com/item/1005005249827156.html?spm=a2g0o.productlist.main.1.1e2469feclbbqz&algo_pvid=7e0ec87b-0b90-4a79-92b3-b3dd38e12a18&algo_exp_id=7e0ec87b-0b90-4a79-92b3-b3dd38e12a18-0&pdp_npi=3%40dis%21EUR%2141.09%2120.95%21%21%2144.30%21%21%40210218bf16903767609661337d077b%2112000034515930057%21sea%21NL%21702494327&curPageLogUid=67xx5hexcUV7

@Doctor-JaKe
Copy link
Author

Doctor-JaKe commented Jul 26, 2023

@DaanVT86 :Mine 3rd piece of the Wall Mount Presence sensor (_tze204_qasjif9e device) has still the USB A to Micro USB cable and so a micro USB port for power on it .
Can you please maybe post some screenshots and If you know whait is meant by "database entry" ath the start post"maybe you could me/us help out..

Thank You.

@DaanVT86
Copy link

This is the database entry

{"id":6,"type":"Router","ieeeAddr":"0xa4c138049b3a1a9f","nwkAddr":57618,"manufId":4417,"manufName":"_TZE204_qasjif9e","powerSource":"Mains (single phase)","modelId":"TS0601","epList":[1,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":81,"inClusterList":[4,5,61184,0],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"stackVersion":0,"dateCode":""}}},"binds":[],"configuredReportings":[],"meta":{}},"242":{"profId":41440,"epId":242,"devId":97,"inClusterList":[],"outClusterList":[33],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":74,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"meta":{},"lastSeen":1690381712647,"defaultSendRequestWhen":"immediate"}

@DaanVT86
Copy link

DaanVT86 commented Jul 26, 2023

Here's an external convertor you can use to get it working :)

const fz = require('zigbee-herdsman-converters/converters/fromZigbee');
const tz = require('zigbee-herdsman-converters/converters/toZigbee');
const exposes = require('zigbee-herdsman-converters/lib/exposes');
const reporting = require('zigbee-herdsman-converters/lib/reporting');
const extend = require('zigbee-herdsman-converters/lib/extend');
const ota = require('zigbee-herdsman-converters/lib/ota');
const tuya = require('zigbee-herdsman-converters/lib/tuya');
const utils = require('zigbee-herdsman-converters/lib/utils');
const globalStore = require('zigbee-herdsman-converters/lib/store');
const e = exposes.presets;
const ea = exposes.access;

const definition = {
    fingerprint: tuya.fingerprint('TS0601', ['_TZE204_qasjif9e']),
    model: 'ZY-M100-S',
    vendor: 'TuYa',
    description: 'Mini Human Breathe Sensor',
    fromZigbee: [tuya.fz.datapoints],
    toZigbee: [tuya.tz.datapoints],
    exposes: [
        e.illuminance_lux(), e.presence(),
        e.numeric('target_distance', ea.STATE).withDescription('Distance to target').withUnit('m'),
        e.numeric('radar_sensitivity', ea.STATE_SET).withValueMin(0).withValueMax(9).withValueStep(1)
            .withDescription('sensitivity of the radar'),
        e.numeric('minimum_range', ea.STATE_SET).withValueMin(0).withValueMax(9.5).withValueStep(0.15)
            .withDescription('Minimum range').withUnit('m'),
        e.numeric('maximum_range', ea.STATE_SET).withValueMin(0).withValueMax(9.5).withValueStep(0.15)
            .withDescription('Maximum range').withUnit('m'),
        e.numeric('detection_delay', ea.STATE_SET).withValueMin(0).withValueMax(10).withValueStep(0.1)
            .withDescription('Detection delay').withUnit('s'),
        e.numeric('fading_time', ea.STATE_SET).withValueMin(0.5).withValueMax(1500).withValueStep(1)
            .withDescription('Fading time').withUnit('s'),
    ],
    meta: {
        tuyaDatapoints: [
            [1, 'presence', tuya.valueConverter.trueFalse1],
            [9, 'target_distance', tuya.valueConverter.divideBy100],
            [104, 'illuminance_lux', tuya.valueConverter.raw],
            [2, 'radar_sensitivity', tuya.valueConverter.raw],
            [4, 'maximum_range', tuya.valueConverter.divideBy100],
            [3, 'minimum_range', tuya.valueConverter.divideBy100],
            [102, 'fading_time', tuya.valueConverter.divideBy10],
            [101, 'detection_delay', tuya.valueConverter.divideBy10],
        ],
    },
};

module.exports = definition;

Koenkk added a commit to Koenkk/zigbee-herdsman-converters that referenced this issue Jul 26, 2023

Verified

This commit was signed with the committer’s verified signature.
scala-steward Scala Steward
…sence_sensor_1. Koenkk/zigbee2mqtt#18434
@Koenkk
Copy link
Owner

Koenkk commented Jul 26, 2023

Thanks, added!

Changes will be available in the dev branch in a few hours from now. (https://www.zigbee2mqtt.io/advanced/more/switch-to-dev-branch.html)

@Doctor-JaKe
Copy link
Author

Doctor-JaKe commented Jul 26, 2023 via email

@DaanVT86
Copy link

DaanVT86 commented Jul 26, 2023

@Koenkk Sorry if I`m not seeing everything clear (not a developer so not too familiar here), but does your change take into account that the datapoints of this device are different then the other versions?

@Koenkk
Copy link
Owner

Koenkk commented Jul 27, 2023

@Doctor-JaKe next release is on 1 Agust

@DaanVT86 no, I will merge Koenkk/zigbee-herdsman-converters#5990 instead.

@Doctor-JaKe
Copy link
Author

Doctor-JaKe commented Aug 2, 2023

After the latest update on 1st of august it seems to be working now.

But still need some days to be 100% sure everything is fine.

@DaanVT86 : How about your device ??

NowSupported

Thank You very much again !!

@wizardofozzie
Copy link

Mine does not detect properly. How can I fix? Was above suggestion regarding dev brnach?

@Doctor-JaKe
Copy link
Author

Doctor-JaKe commented Sep 13, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new device support New device support request
Projects
None yet
Development

No branches or pull requests

4 participants