homebridge-tuya-lan icon indicating copy to clipboard operation
homebridge-tuya-lan copied to clipboard

Add TUYA based Wi-Fi Valve / Leak Sensor / Door Sensor

Open mrmaximas opened this issue 5 years ago • 2 comments

IMG_7618 I bought three TUYA-based products, please add them.

  1. Valve manipulator https://www.aliexpress.com/item/4000170119421.html
  2. Leak Sensor https://www.aliexpress.com/item/4000166314162.html
  3. Door/Window Sensor https://www.aliexpress.com/item/33042579114.html I still have the tuya-based zigbee gateway like this https://www.aliexpress.com/item/33034362511.html Later I'll try to work with him. Below are the intercept results from Ucomen Home app. { name: 'Valve', id: 'хххх', key: 'хххх', def: { schema: '[{"mode":"rw","code":"switch_1","name":"\u5f00\u51731","property":{"type":"bool"},"iconname":"icon-dp_power2","id":1,"type":"obj","desc":""},{"mode":"rw","code":"countdown_1","name":"\u5f00\u51731\u5012\u8ba1\u65f6","property":{"unit":"s","min":0,"max":86400,"scale":0,"step":1,"type":"value"},"iconname":"icon-dp_time2","id":9,"type":"obj","desc":""}]', extras: '[{"id":1,"inputStyle":"","inputType":"plain"},{"id":9,"inputStyle":"","inputType":"plain"}]', },

===

{ name: 'Door Detector', id: 'yyyyy', key: 'yyyyy', def: { schema: '[{"mode":"ro","code":"doorcontact_state","name":"\u95e8\u78c1","property":{"type":"bool"},"iconname":"icon-zanting","id":1,"type":"obj","desc":"\u3010\u5fc5\u9009\u3011"},{"mode":"ro","code":"battery_state","name":"\u7535\u6c60\u7535\u91cf\u72b6\u6001","property":{"range":["low","middle","high"],"type":"enum"},"id":3,"type":"obj","desc":"\u3010\u975e\u5fc5\u9009\u3011"}]', },

=== { name: 'Water leak sensor', id: 'zzzz', key: 'zzzzz', def: { schema: '[{"mode":"ro","code":"watersensor_state","name":"\u6c34\u6d78\u68c0\u6d4b\u72b6\u6001","property":{"range":["alarm","normal"],"type":"enum"},"iconname":"icon-a_water","id":1,"type":"obj","desc":""},{"mode":"ro","code":"battery_state","name":"\u7535\u6c60\u7535\u91cf\u72b6\u6001","property":{"range":["low","middle","high"],"type":"enum"},"iconname":"icon-dianliang","id":3,"type":"obj","desc":""}]', },

Thanks!

mrmaximas avatar Feb 18 '20 19:02 mrmaximas

Also interest in this product

vitaliy-kozlov avatar Nov 23 '20 21:11 vitaliy-kozlov

Hello, I've made this specific plugin for Door Sensors if you want, https://github.com/Kakise/homebridge-tuya-door-cloud it uses the Cloud API to expose the sensor to Homebridge

Kakise avatar May 24 '21 16:05 Kakise