rospogrigio / localtuya

local handling for Tuya devices
GNU General Public License v3.0
2.93k stars 563 forks source link

Support for camera's #250

Open hreedijk opened 3 years ago

hreedijk commented 3 years ago

Hello,

I'm considering to use Local Tuya when the climate part will be released (willing to test if needed). Are there plans to implement camera's as well? I cannot retrieve the feed url from the camera , even the tool ispyconnect cannot find it either, hence the question.

Kind regards, Harold

postlund commented 3 years ago

Would be cool to add if it's possible, not sure if it is though as I think they you sent everything through the cloud and don't expose the stream locally. But please provide a DPS dump so we can take a look.

https://github.com/rospogrigio/localtuya/wiki/HOWTO-get-a-DPs-dump

hreedijk commented 3 years ago

Tried to make a DPS dump by following the link, get the error below. Using Windows 10 with python 3.9 installed:

image

postlund commented 3 years ago

You need to install cryptography, e.g. pip3 install cryptography

solidssss commented 3 years ago

Yes, please add ths feature if it is possible! I got two tuya cameras that I would love to stream on LAN.

hreedijk commented 3 years ago

Ok, installed Ubuntu on virtual machine, works better than windows.

From all my devices I get an DPS dump, for the camera I get a error: image

I can ping the IP-Address of the camera, but the script cannot connect it seems.

postlund commented 3 years ago

Can you try version 3.1 as well?

hreedijk commented 3 years ago

I'll give it a shot, will post the results ....

hreedijk commented 3 years ago

Hmm, I'm clearly a newbie :-|

Running Ubuntu with no HA installed. Downloaded the tuyadebug.tgz file (which is 1.0.0), but when I replace the localtuya folder with the files from https://github.com/rospogrigio/localtuya/tree/master/custom_components/localtuya, the error is that it cannot find home assistant . Guess I'm doing something wrong here.

itkfilelor commented 3 years ago

You could try here =) https://github.com/guino/BazzDoorbell

Sam-Whitaker commented 2 years ago

I would also be interested in camera support! I have a Hey! indoor camera looking over my door and would love to see this in home assistant. Currently got the camera in the smart life app for ease, so that I don't have too many different apps on my phone, but don't really like that it's open to the cloud.

Enjoy-Combi commented 2 years ago

Hello,

I tried as well to get the dump. Same issue: INFO:localtuya:localtuya version 1.0.0 INFO:localtuya:Python 3.9.2 (default, Feb 28 2021, 17:03:44) [GCC 10.2.1 20210110] on linux INFO:localtuya:Using pytuya version '8.1.0' INFO:localtuya:Detecting list of available DPS of device xxxxx [10.0.1.99], protocol 3.3. DEBUG:localtuya.pytuya:Sending command status (device type: type_0a) DEBUG:localtuya.pytuya:paylod=b'{"gwId":"xxxx","devId":"xxxxxx"}' WARNING:localtuya.pytuya:Failed to get status: timed out INFO:localtuya:Detecting list of available DPS of device xxxxxxx [10.0.1.99], protocol 3.3. DEBUG:localtuya.pytuya:Sending command status (device type: type_0a) DEBUG:localtuya.pytuya:paylod=b'{"gwId":"xxxxxx","devId":"xxxxxxx"}' WARNING:localtuya.pytuya:Failed to get status: timed out INFO:localtuya:Detecting list of available DPS of device xxxxxxx [10.0.1.99], protocol 3.3. DEBUG:localtuya.pytuya:Sending command status (device type: type_0a) DEBUG:localtuya.pytuya:paylod=b'{"gwId":"xxxxxx","devId":"xxxxxx"}' WARNING:localtuya.pytuya:Failed to get status: timed out INFO:localtuya:TIMEOUT: No response from device xxxxx [10.0.1.99] after 2 attempts.

same issue with protocol 3.1: INFO:localtuya:localtuya version 1.0.0 INFO:localtuya:Python 3.9.2 (default, Feb 28 2021, 17:03:44) [GCC 10.2.1 20210110] on linux INFO:localtuya:Using pytuya version '8.1.0' INFO:localtuya:Detecting list of available DPS of device xxxxx [10.0.1.99], protocol 3.1. DEBUG:localtuya.pytuya:Sending command status (device type: type_0a) DEBUG:localtuya.pytuya:paylod=b'{"gwId":"xxxxx","devId":"xxxxxx"}' WARNING:localtuya.pytuya:Failed to get status: timed out INFO:localtuya:Detecting list of available DPS of device xxxxxx [10.0.1.99], protocol 3.1. DEBUG:localtuya.pytuya:Sending command status (device type: type_0a) DEBUG:localtuya.pytuya:paylod=b'{"gwId":"xxxxx","devId":"xxxx"}' WARNING:localtuya.pytuya:Failed to get status: timed out INFO:localtuya:Detecting list of available DPS of device xxxxxxxx [10.0.1.99], protocol 3.1. DEBUG:localtuya.pytuya:Sending command status (device type: type_0a) DEBUG:localtuya.pytuya:paylod=b'{"gwId":"xxxxxx","devId":"xxxxxx"}' WARNING:localtuya.pytuya:Failed to get status: timed out INFO:localtuya:TIMEOUT: No response from device xxxxx [10.0.1.99] after 2 attempts.

Any idea what to try ?