Search found 52 matches

by tixi7
Monday 25 February 2019 7:49
Forum: Python
Topic: [REQUEST] Plugin for Tuya
Replies: 373
Views: 102349

Re: [REQUEST] Plugin for Tuya

Why not create those additional devices from within the plugin as well just as with the "Switch" when defining a plug? something like: Domoticz.Device(Name="Tuya SmartPlug Switch #" + str(val), Unit=val, TypeName="Switch",Image=8).Create() Domoticz.Device(Name="Tuya SmartPlug Voltage #" + str(val ...
by tixi7
Saturday 23 February 2019 23:50
Forum: Python
Topic: [REQUEST] Plugin for Tuya
Replies: 373
Views: 102349

Re: [REQUEST] Plugin for Tuya

Hello, Some ideas for the KWh: - you can create a virtual device and then update it with the json api with a curl command - This command should be inserted in line 425 - To get the needed information state['5'] should work (you may have to divide the value) 5 here correspond to the dps entry 5 ...
by tixi7
Tuesday 19 February 2019 7:52
Forum: Python
Topic: [REQUEST] Plugin for Tuya
Replies: 373
Views: 102349

Re: [REQUEST] Plugin for Tuya

For the log dps 101, you have a key error at the beginning.

I thing you need to delete the HW and device in domoticz and then create again with the new dps value.

Let me know
by tixi7
Sunday 17 February 2019 4:20
Forum: Python
Topic: [REQUEST] Plugin for Tuya
Replies: 373
Views: 102349

Re: [REQUEST] Plugin for Tuya

turbo2007 wrote: Saturday 16 February 2019 17:37 I have enable New devices but problem is in plugin when i enable it domoticz doesn't reply i must restart it from shell and its running 5 second when plugin initialize domoticz is down
Did you follow the readme for the ln -s ... with the correct paths?

Did you check the logs?
by tixi7
Saturday 16 February 2019 23:24
Forum: Python
Topic: [REQUEST] Plugin for Tuya
Replies: 373
Views: 102349

Re: [REQUEST] Plugin for Tuya

@tixi7, isn't it strange that the get_dps.py and turnOn/Off.py are working then? answering myself: no it isn't at those files aren't importing Domoticz. It looks like it's failing on import Domoticz where should I find that? Should I download it from somewhere? Thanks! This is directly in Domoticz ...
by tixi7
Saturday 16 February 2019 23:17
Forum: Python
Topic: [REQUEST] Plugin for Tuya
Replies: 373
Views: 102349

Re: [REQUEST] Plugin for Tuya

Well I don't think it is a domoticz issue as I can switch the LED with DPS 1 (off and on). However the plug switch is 101, and that is not possible. I cannot get the reason of your problem. Can you send some debug traces? An alternative to test is to use a virtual switch and to call directly turnON ...
by tixi7
Saturday 09 February 2019 23:15
Forum: Python
Topic: [REQUEST] Plugin for Tuya
Replies: 373
Views: 102349

Re: [REQUEST] Plugin for Tuya

Some update concerning the OTA update:
https://www.heise.de/ct/artikel/Tuya-Co ... 84830.html

I tried the Tasmota firmware on two different single socket and a bulb:
For the plugs it works well.
For the bulb the colour are not working at the moment.
by tixi7
Saturday 09 February 2019 23:09
Forum: Python
Topic: [REQUEST] Plugin for Tuya
Replies: 373
Views: 102349

Re: [REQUEST] Plugin for Tuya

Strange issue. Got the device ID and local ID. See the device in domoticz. But when trying to switch, only the colour of the LED goes off. Plug State Information: {'devId': '12716401807d3a7b5c6b', 'dps': {'6': '00ff0000000000', '4': 255, '106' : 2272, '101': True, '1': True, '2': 'colour', '10 ...
by tixi7
Saturday 09 February 2019 23:07
Forum: Python
Topic: [REQUEST] Plugin for Tuya
Replies: 373
Views: 102349

Re: [REQUEST] Plugin for Tuya

However, when I try to (re)install pytuya: C:\Program Files (x86)\Domoticz\plugins\Tuya SmartPlug>pip3 install pytuya Requirement already satisfied: pytuya in c:\users\hoofdgebruiker\appdata\local\programs\python\python36-32\lib\site-packages (7.0.2) Requirement already satisfied: pyaes in c:\users ...
by tixi7
Wednesday 30 January 2019 22:45
Forum: Python
Topic: [REQUEST] Plugin for Tuya
Replies: 373
Views: 102349

Re: [REQUEST] Plugin for Tuya

Some good news to avoid the limitations of tuya firmware.
OTA update is possible for alternative firmware:
https://www.heise.de/ct/artikel/Tuya-Co ... 84830.html
by tixi7
Monday 21 January 2019 10:06
Forum: Python
Topic: [REQUEST] Plugin for Tuya
Replies: 373
Views: 102349

Re: [REQUEST] Plugin for Tuya

This is a "normal" behavior at least it is expected.

Only one connection is supported by tuya devices. Meaning that you cannot use the tuya app/domoticz plugin/helper script... at the same time.
by tixi7
Thursday 17 January 2019 21:30
Forum: Python
Topic: [REQUEST] Plugin for Tuya
Replies: 373
Views: 102349

Re: [REQUEST] Plugin for Tuya

For plugs that provide wattage information and if the information is just the entry 5 of the dps. It should be possible to adapt the plugin to have it. Not sure if and when i will have time to provide a beta version for that... In case some developers want to contribute, i will be more than happy to ...
by tixi7
Saturday 12 January 2019 9:09
Forum: Python
Topic: [REQUEST] Plugin for Tuya
Replies: 373
Views: 102349

Re: [REQUEST] Plugin for Tuya

Since I updated to last beta 4.10343, I started to see Domoticz crashing after some minutes after start. I traced down the problem to the Tuya plugin. As soon as I disabled it, domoticz didn't crash any more. See below the last lines in the domoticz.log file right before crashing, in case it helps ...
by tixi7
Saturday 12 January 2019 8:42
Forum: Python
Topic: [REQUEST] Plugin for Tuya
Replies: 373
Views: 102349

Re: [REQUEST] Plugin for Tuya

I have Neo Coolcam Plug with with energy measurement. In Tuya Smart on smartphone it's works very well, but in Domoticz I use this plugin, but it have only on/off switch. This plugin don't have energy measurement. It's possibile to add energy measurement on Domoticz? I don't know. Can you post the ...
by tixi7
Saturday 12 January 2019 8:38
Forum: Python
Topic: [REQUEST] Plugin for Tuya
Replies: 373
Views: 102349

Re: [REQUEST] Plugin for Tuya

Not sure what is the DPS and how to get it. I want the dimmer to be able to dim as well ... that's why I can't use the smartplug one (it works, but doesn't allow dimming). This is the change I did in the bulb code for the dimmer to work (without colors, as it is not RGB, just dimmer): it was ...
by tixi7
Saturday 05 January 2019 16:22
Forum: Python
Topic: [REQUEST] Plugin for Tuya
Replies: 373
Views: 102349

Re: [REQUEST] Plugin for Tuya

by tixi7
Saturday 05 January 2019 9:59
Forum: Python
Topic: [REQUEST] Plugin for Tuya
Replies: 373
Views: 102349

Re: [REQUEST] Plugin for Tuya

I read your post too quickly... The bulb plugin also is using a persistent socket but it's true i worked more one the plug one since i added multisocket. Coding a new version of the bulb plugin is a good idea but for now i do not have enough spare time. For the status of the dimmer, i do not know ...
by tixi7
Sunday 30 December 2018 19:52
Forum: Python
Topic: [REQUEST] Plugin for Tuya
Replies: 373
Views: 102349

Re: [REQUEST] Plugin for Tuya

Thanks, but it is not a bug. Unfortunately this is mandatory to not disconnect the connection between the device and the plugin to avoid unexpected behavior for some tuya devices. You can have a look at this thread: https://github.com/codetheweb/tuyapi/issues/84 Moreover, have in mind that only one ...
by tixi7
Thursday 20 December 2018 21:05
Forum: Python
Topic: [REQUEST] Plugin for Tuya
Replies: 373
Views: 102349

Re: [REQUEST] Plugin for Tuya

Can you try to extract the devID with this method:
https://github.com/codetheweb/tuyapi/bl ... s/SETUP.md

To be sure you have the correct information.
by tixi7
Saturday 15 December 2018 16:14
Forum: Python
Topic: [REQUEST] Plugin for Tuya
Replies: 373
Views: 102349

Re: [REQUEST] Plugin for Tuya

Hi all, I just push a new version on github (master branch) for the smartplug plugin. Now the plugin support single and multi socket devices. For single socket plug, you have to provide the IP, devID and local key (do not change the default value of other parameters) For multi socket devices, you ...