tixi / Domoticz-Tuya-SmartPlug-Plugin

Domoticz Python Plugin for Tuya Smart Plug
MIT License
23 stars 24 forks source link

Can this be made to work an a Tuya PIR? #2

Open hansjeu opened 5 years ago

hansjeu commented 5 years ago

This is really a "issue", but can this plugin also be adapted to work with a PIR or a door sensor? https://www.ebay.com/itm/Smart-WiFi-PIR-Motion-Door-Window-Water-Detector-Siren-Sound-Alarm-Sensor-APP-F1/113229000213?_trkparms=aid%3D555018%26algo%3DPL.SIM%26ao%3D1%26asc%3D20140106155344%26meid%3D94e08c21a7344254adcfce348b2513a8%26pid%3D100005%26rk%3D2%26rkt%3D2%26sd%3D263910373860%26itm%3D113229000213&_trksid=p2047675.c100005.m1851

tixi commented 5 years ago

This is not an issue for the plugin, A new one may be done for that, if pytuya library is able to manage it. The first thing is to know if you can connect to the device. Use get_dps.py for that.

hansjeu commented 5 years ago

Hello Tixi,

Thank jou for the answer. I am new to this so maybe I am doing this totaly wrong. Sorry if so. Could it be posible that the wifi PIR motion sensor had no Local Key?

hikey commented 5 years ago

Hi Tixi, i am using a BW-SHP6, works perfectly. ON/OFF But do you think there is a way to get the kwh meter working with this ? Thanks

tixi commented 5 years ago

Hello Tixi,

Thank jou for the answer. I am new to this so maybe I am doing this totaly wrong. Sorry if so. Could it be posible that the wifi PIR motion sensor had no Local Key?

I have no idea. unfortunately, I will not be able to manage for all the possible devices. Hope some developers can take the lead for other devices.