Koenkk / zigbee2mqtt

Zigbee 🐝 to MQTT bridge 🌉, get rid of your proprietary Zigbee bridges 🔨
https://www.zigbee2mqtt.io
GNU General Public License v3.0
11.94k stars 1.66k forks source link

[New device support]: Zigbee Smart Plants Watering Timer #12153

Closed MoonshineSG closed 2 years ago

MoonshineSG commented 2 years ago

Link

https://www.aliexpress.com/item/1005004073061424.html

Database entry

{"id":4,"type":"EndDevice","ieeeAddr":"0xXXXX","nwkAddr":22628,"manufId":4417,"manufName":"_TZE200_arge1ptm","powerSource":"Battery","modelId":"TS0601","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":81,"inClusterList":[4,5,61184,0],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"65503":"\u0018X�)f\u0019X�)\u0012","65506":54,"65508":1,"stackVersion":0,"dateCode":"","appVersion":70}}},"binds":[{"cluster":0,"type":"endpoint","deviceIeeeAddress":"0x00212effff07df2e","endpointID":1}],"configuredReportings":[],"meta":{}}},"appVersion":70,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"meta":{"configured":821693351},"lastSeen":1649755156956,"defaultSendRequestWhen":"immediate"}

Comments

Hi managed to make it "supported" by adding a basic external converter, and got all the Data Points from Tuya website, but I kinda failed at what's next... I read the "how to", but got lost...

Some of the DP are in Chinese and I did a google translate. Kinda makes sense ...

1 - Switch
2 - Regulating water volume
3 - Flow state
10 - Weather Delay
11 - Irrigation time

101 - 倒计时剩余时间  countdown time remaining
102 - 倒计时剩余时间设置 countdown remaining time setting
103 - 开到底状态 open to the end
104 - 故障告警 fault alarm
105 - 默认倒计时开启 by default countdown is on
106 - 默认倒计时设置 default countdown settings
107 - 月使用时长 monthly usage time
108 - 月使用水容量 monthly water capacity
109 - 定时灌溉 regular irrigation
110 - 电池电量 battery power

Also this info is available on the Tuya site

switch | Boolean | "{true,false}"
percent_control | Integer | {   "unit": "%",   "min": 0,   "max": 100,   "scale": 0,   "step": 5 }
weather_delay | Enum | {   "range": [     "cancel",     "24h",     "48h",     "72h"   ] }
countdown | Integer | {   "unit": "s",   "min": 0,   "max": 86400,   "scale": 0,   "step": 1

Any help will be appreciated.

External converter

fingerprint: [
        {
            modelID: 'TS0601',
            manufacturerName: '_TZE200_arge1ptm'
        },
    ],
    model: 'QT-05M',
    vendor: 'Moes',
    description: 'Smart Water Timer',

Supported color modes

No response

Color temperature range

No response

zamog commented 2 years ago

@MoonshineSG Did you manage to get it work ?

MoonshineSG commented 2 years ago

I managed a partial support of the main functions and settings. I tried to contact the manufacturer but they are not very forth coming with info, so I'll just leave it as it is, since it is in very usable state.

balistof commented 2 years ago

I managed a partial support of the main functions and settings. I tried to contact the manufacturer but they are not very forth coming with info, so I'll just leave it as it is, since it is in very usable state.

Hi @MoonshineSG is the external converter somewhere available? Would be great if you can share it

zamog commented 2 years ago

+1 I just got one, will be great to add zigbee2mqtt support base on it

MoonshineSG commented 2 years ago

I am almost done with moving to a new place, so I'll find some time to publish the codes. Do note that it is my first draft, and for now works for the specific model.

I'll allow contributors, so maybe it will get polished in time...

MoonshineSG commented 2 years ago

@balistof, @zamog, you can get the codes from https://github.com/MoonshineSG/zigbee2mqtt-custom/

Add the QT-05M.js to your config/zigbee2mqtt/folder and load it in the UI...

Please not that this is a first working draft, and I had no time to polish it too much... Hope it does the work for now.

Send me feedback... .

balistof commented 2 years ago

first tests and it works perfect. tested manual, automatic with timer and homeassistant integration. all good!

zamog commented 2 years ago

@MoonshineSG - Works, thanks! Two notes:

  1. Can you reopen this issue so it will be add to the next release
  2. I hit an error when running an automation with timer value > 100 - i think we need to add .withValueMax(14400) to exposes.numeric('timer', ea.STATE_SET) - WDYT ?
Hedgehog57 commented 2 years ago

I have this device too. With Your QT-05M.js it works. Thank You!!

Koenkk commented 2 years ago

@MoonshineSG if you are interested, please create a pr for zigbee-heredsman-converters to add support for this device out-of-the-box.

abuhabeeb commented 2 years ago

Its work like Sharm with QT-05M.js. Thank You.

I hope it can support for this device out-of-the-box.

github-actions[bot] commented 2 years ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days