AMoo-Miki / homebridge-tuya-lan

Homebridge plugin for IoT devices that use Tuya Smart's platform
MIT License
196 stars 50 forks source link

WiFi Smart Timer and Meter (remote switch for switchboard) #261

Open Polluxkywalker opened 2 years ago

Polluxkywalker commented 2 years ago

Hi team,

First of all, thanks for developing this brigde ! Howesome work. Note that I use it through HOOBS hosted on raspberry, and all my peripherals are working great (with on/off abilities only) declared as Outlet or CustomMultiOutlet, even this one. I'm posting this request because this Wifi Smart Timer and Meter can do a lot more, and I need your help for that.

https://doowifi.fr/fr/module-rail-din/208-module-timer-rail-din-DWF-0315TM-3760332970354.html (french) https://www.aultop.com.cn/WiFi-Smart-Timer/ATMS1602-WiFi-SmartTimer--Electricity-Meter-2668.html (english)

Product Name: WiFi Smart Timer and Meter Category: cz Category Name : Socket Manufacturer: Doowifi Model: DWF-0315TM (discover by Tuya app as ATMS1602)

I've obtained id and key through Tuya IOT Platform and following information as well (I didn't succeed using tuya-lan-find), I hope this will be sufficient.

{ "category": "cz", "functions": [ { "code": "switch_1", "desc": "{}", "name": "开关1", "type": "Boolean", "values": "{}" }, { "code": "countdown_1", "desc": "{\"unit\":\"s\",\"min\":0,\"max\":86400,\"scale\":0,\"step\":1}", "name": "开关1倒计时", "type": "Integer", "values": "{\"unit\":\"s\",\"min\":0,\"max\":86400,\"scale\":0,\"step\":1}" } ], "status": [ { "code": "switch_1", "name": "开关1", "type": "Boolean", "values": "{}" }, { "code": "countdown_1", "name": "开关1倒计时", "type": "Integer", "values": "{\"unit\":\"s\",\"min\":0,\"max\":86400,\"scale\":0,\"step\":1}" }, { "code": "add_ele", "name": "增加电量", "type": "Integer", "values": "{\"unit\":\"\",\"min\":0,\"max\":50000,\"scale\":3,\"step\":100}" }, { "code": "cur_current", "name": "当前电流", "type": "Integer", "values": "{\"unit\":\"mA\",\"min\":0,\"max\":30000,\"scale\":0,\"step\":1}" }, { "code": "cur_power", "name": "当前功率", "type": "Integer", "values": "{\"unit\":\"W\",\"min\":0,\"max\":50000,\"scale\":1,\"step\":1}" }, { "code": "cur_voltage", "name": "当前电压", "type": "Integer", "values": "{\"unit\":\"V\",\"min\":0,\"max\":5000,\"scale\":1,\"step\":1}" } ] }

Don't hesitate if you have questions. As I said, it already works great as a simple outlet

Regards