Koenkk / zigbee2mqtt

Zigbee šŸ to MQTT bridge šŸŒ‰, get rid of your proprietary Zigbee bridges šŸ”Ø
https://www.zigbee2mqtt.io
GNU General Public License v3.0
11.84k stars 1.65k forks source link

[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 closed 1 year ago

Doctor-JaKe commented 1 year ago

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

DaanVT86 commented 1 year ago

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 commented 1 year ago

@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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

Ok. Thanx everybody.

But how long will it take estimated until its supported by the normal/regular branch of Zigbee2MQTT (for Home Assistant) ??

Verzonden vanuit Outlook voor iOShttps://aka.ms/o0ukef


Van: Koen Kanters @.> Verzonden: Wednesday, July 26, 2023 7:00:18 PM Aan: Koenkk/zigbee2mqtt @.> CC: Doctor-JaKe @.>; Author @.> Onderwerp: Re: [Koenkk/zigbee2mqtt] [New device VERSION! support]: Zigbee Wifi Mmwave Menselijke Aanwezigheid Motion Sensor Met Luminantie/Afstand Detectie 5/110/220V Tuya Smart leven Domotica (Issue #18434)

Closed #18434https://github.com/Koenkk/zigbee2mqtt/issues/18434 as completed.

ā€” Reply to this email directly, view it on GitHubhttps://github.com/Koenkk/zigbee2mqtt/issues/18434#event-9926657214, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AZ4DYBUFBZVSR4ZGPJSUVATXSFEKFANCNFSM6AAAAAA2YNBSUA. You are receiving this because you authored the thread.Message ID: @.***>

DaanVT86 commented 1 year ago

@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 commented 1 year ago

@Doctor-JaKe next release is on 1 Agust

@DaanVT86 no, I will merge https://github.com/Koenkk/zigbee-herdsman-converters/pull/5990 instead.

Doctor-JaKe commented 1 year ago

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 commented 1 year ago

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

Doctor-JaKe commented 1 year ago

Restart your Zigbee hub/device and try again. Maybe even power it off for at least 15 minutes so your Zigbee network will reset/reconfigure their mesh connection and then power on your main Zigbee hub/controller (running Zigbee2MQTT).

That worked for me.

Verzonden vanuit Outlook voor iOShttps://aka.ms/o0ukef


Van: WizardOfOzzie @.> Verzonden: Wednesday, September 13, 2023 11:02:18 AM Aan: Koenkk/zigbee2mqtt @.> CC: Doctor-JaKe @.>; Mention @.> Onderwerp: Re: [Koenkk/zigbee2mqtt] [New device VERSION! support]: Zigbee Wifi Mmwave Menselijke Aanwezigheid Motion Sensor Met Luminantie/Afstand Detectie 5/110/220V Tuya Smart leven Domotica (Issue #18434)

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

ā€” Reply to this email directly, view it on GitHubhttps://github.com/Koenkk/zigbee2mqtt/issues/18434#issuecomment-1717232738, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AZ4DYBQQ6MJ6R7UORTJ4NHLX2FZBVANCNFSM6AAAAAA2YNBSUA. You are receiving this because you were mentioned.Message ID: @.***>