[REQUEST] Plugin for Tuya

Python and python framework
Post Reply
viruscz
Posts: 3
Joined: Friday 09 March 2018 2:24
Target OS: Raspberry Pi
Domoticz version: beta
Location: Czech Republic
Contact:

[REQUEST] Plugin for Tuya

Post by viruscz » Friday 09 March 2018 2:34

Hi there,
i am not a programer :( , but i am asking if somebody is able to make or port the plugin for Tuya.
What i finded till now:

https://www.tuya.com/

the app on mible is: SmartLife and is used for Smart plugs, smart bulbs, smart swiches from alliexpress

Somebody made a api for this.
https://github.com/codetheweb/tuyapi
https://github.com/codetheweb/tuyapi/bl ... s/SETUP.md

and also was ported to other platforms:
https://github.com/codetheweb/homebridge-tuya-outlet
https://github.com/clach04/python-tuya

thnak you in advans :geek:

dxfantome1
Posts: 3
Joined: Monday 18 June 2018 12:07
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: [REQUEST] Plugin for Tuya

Post by dxfantome1 » Tuesday 19 June 2018 19:05

I would be very interested too.
This is what I found:
https://www.letscontrolit.com/forum/vie ... c&start=30
https://www.letscontrolit.com/forum/vie ... php?t=5431
https://github.com/domoticz/domoticz/issues/2216
In brief everybody if intérresse but nobody finds solution for dimmer lowcost

User avatar
fratton
Posts: 12
Joined: Tuesday 08 December 2015 18:23
Target OS: Raspberry Pi
Domoticz version: Beta
Contact:

Re: [REQUEST] Plugin for Tuya

Post by fratton » Friday 31 August 2018 11:57

you can use ifttt to control from domoticz with webhook request same :
domo.png
domo.png (84.97 KiB) Viewed 777 times
webhook.jpg
webhook.jpg (57.31 KiB) Viewed 777 times

kluczus
Posts: 25
Joined: Tuesday 12 September 2017 14:39
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: [REQUEST] Plugin for Tuya

Post by kluczus » Thursday 06 September 2018 22:14

Nice but I prefer to be a cloud independent. Any chance to use it in different way ?
........................................................................................
RPi2 + sonoff + 433MHz + Xiaomi Gateway + EQ-3 MAX!

tixi7
Posts: 5
Joined: Monday 10 September 2018 23:49
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: [REQUEST] Plugin for Tuya

Post by tixi7 » Friday 14 September 2018 10:47

Hi all,

You can find a python plugin that I developed for Tuya Smart Plug here:
https://github.com/tixi/Domoticz-Tuya-SmartPlug-Plugin

I am preparing another one for RGB Smart Bulb.
In the meanwhile this plugin should work to switch on/off a bulb.

tixi7
Posts: 5
Joined: Monday 10 September 2018 23:49
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: [REQUEST] Plugin for Tuya

Post by tixi7 » Monday 24 September 2018 18:54

I put a new version of the plugin for the plug which should work better.
Let me know for issues.

kluczus
Posts: 25
Joined: Tuesday 12 September 2017 14:39
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: [REQUEST] Plugin for Tuya

Post by kluczus » Thursday 27 September 2018 18:46

Nice job. I have a lot of errors from this plugin

Code: Select all

2018-09-27 18:21:11.638 Error: CConnection_disconnect, disconnection request from 'test1' ignored. Transport is not connecting or connected.
2018-09-27 18:21:11.640 Error: (test1) Disconnected from: 192.168.0.30:6668
........................................................................................
RPi2 + sonoff + 433MHz + Xiaomi Gateway + EQ-3 MAX!

tixi7
Posts: 5
Joined: Monday 10 September 2018 23:49
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: [REQUEST] Plugin for Tuya

Post by tixi7 » Wednesday 03 October 2018 15:33

Thanks for the feedback.
I update the plugin and these error messages should not occur anymore.

tixi7
Posts: 5
Joined: Monday 10 September 2018 23:49
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: [REQUEST] Plugin for Tuya

Post by tixi7 » Sunday 07 October 2018 9:32

Hi all,

I have just finished a first version for the bulb. You can find the plugin here:
https://github.com/tixi/Domoticz-Tuya-SmartBulb-Plugin

Let me know for issues.

dinamitemic
Posts: 2
Joined: Thursday 11 October 2018 9:11
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: [REQUEST] Plugin for Tuya

Post by dinamitemic » Thursday 11 October 2018 9:38

Hi, i've now installed your plugin and I'll test it to let you know if I notice some issues.
Thank you a lot for your work!!

dinamitemic
Posts: 2
Joined: Thursday 11 October 2018 9:11
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: [REQUEST] Plugin for Tuya

Post by dinamitemic » Friday 12 October 2018 16:27

Hi, i've done all the stuff to get the devid and the key, then i've installed all the required package and your plugin, it appear on domoticz hardware page but when i try to add my switch all the domoticz software stop working, i can't no more access the page until i disinstall the plugin.

Running Domoticz v4.10007 on a Raspberry Pi 1

tixi7
Posts: 5
Joined: Monday 10 September 2018 23:49
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: [REQUEST] Plugin for Tuya

Post by tixi7 » Saturday 13 October 2018 16:21

Can you provide more details:
- the plugin: plug or bulb?
- the version of the plugin, since the post I patch the bulb plugin to avoid a similar behavior
- some logs information
- device informations,

Can you try with the latest stable version of domoticz? I observe that some beta version causes problems: a bug report for domoticz is on my todo list.

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests