Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tuya Camera has no video #58614

Closed
Airey001 opened this issue Oct 28, 2021 · 150 comments
Closed

Tuya Camera has no video #58614

Airey001 opened this issue Oct 28, 2021 · 150 comments

Comments

@Airey001
Copy link

The problem

I have removed the old TuyaV2 from the vendor and upgraded to the included version in the beta release. The new version with camera support pulls in my camera and the settings entries. However there is no video feed in home assistant when i log into the tuya app i can see the video.

image
image
image

What version of Home Assistant Core has the issue?

2021.11.0b0

What was the last working version of Home Assistant Core?

2021.10.6

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Tuya

Link to integration documentation on our website

https://www.home-assistant.io/integrations/tuya

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

[
{
"code": "basic_indicator",
"value": true
},
{
"code": "basic_flip",
"value": false
},
{
"code": "basic_osd",
"value": true
},
{
"code": "motion_sensitivity",
"value": "0"
},
{
"code": "basic_nightvision",
"value": "0"
},
{
"code": "sd_format",
"value": false
},
{
"code": "motion_timer_setting",
"value": ""
},
{
"code": "motion_switch",
"value": false
},
{
"code": "motion_timer_switch",
"value": false
},
{
"code": "decibel_switch",
"value": false
},
{
"code": "decibel_sensitivity",
"value": "0"
},
{
"code": "record_switch",
"value": true
},
{
"code": "record_mode",
"value": "2"
}
]

@probot-home-assistant
Copy link

tuya documentation
tuya source
(message by IssueLinks)

@probot-home-assistant
Copy link

Hey there @tuya, @zlinoliver, @METISU, @frenck, mind taking a look at this issue as it has been labeled with an integration (tuya) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)

@frenck
Copy link
Member

frenck commented Oct 28, 2021

Anything in the logs?

@Airey001
Copy link
Author

I have check and i can see nothing in the log related to this. I even restarted watch the log restart and then pulled the video feed up to the spinning screen and nothing in th elogs.

@frenck
Copy link
Member

frenck commented Oct 28, 2021

The broken image indicates that making a screenshot didn't succeed. That should be visible in the logs if that happens. Not having that, sounds a bit impossible to me to be honest :S

@frenck frenck added this to the 2021.11.0 milestone Oct 28, 2021
@frenck frenck changed the title Tuya Integration - core-2021.11.0b0 - Tuya Camera has no video Tuya Camera has no video Oct 28, 2021
@guidohaesen
Copy link

Same issue here, Preview image is shown, but stream doesn;t load

LOG:
2021-10-28 21:56:11 ERROR (stream_worker) [homeassistant.components.stream.worker] Error opening stream rtsps://:@aws-wework7.tuyaeu.com:443/v1/bf9d5b7ea61ea4c9a6rom9/c5te1kjeu3krpm4l6nn0K20rjEU5HqBz?signInfo=bCMK0OSp2K%2BakXoOMDtHMGEl49cX7t1oAJCKB%2BGu0i9QijAmRQFa32IjbznjPgSX5fvMx7VGXSRnfmnc0M1dubnduz4XHjFBKQa1IIdM63a39FBeSkjhpyoJJpZYX3Deoq011U7%2BX8QzRm%2BGsPS5jNNLXcWpUnYPDNSrcBFzt9E%3D

Screenshot_20
Screenshot_21

@frenck
Copy link
Member

frenck commented Oct 28, 2021

Same issue here, Preview image is shown, but the stream doesn't load

Hmm, we might have a different issue @ our hands in that case; Reason for that suspicion is that de preview image is actually taken/screenshotted from the stream 😬

@Airey001
Copy link
Author

so here is what my logs look like after i reboot and try to view the video there is nothing i see in them:
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
2021-10-28 16:03:16 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration zoom which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2021-10-28 16:03:16 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration mail_and_packages which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2021-10-28 16:03:16 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration wundergroundpws which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2021-10-28 16:03:16 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2021-10-28 16:03:16 WARNING (SyncWorker_4) [homeassistant.loader] We found a custom integration blueiris which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2021-10-28 16:03:16 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration nodered which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2021-10-28 16:03:16 WARNING (SyncWorker_5) [homeassistant.loader] We found a custom integration homeseer which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2021-10-28 16:03:16 WARNING (SyncWorker_6) [homeassistant.loader] We found a custom integration alexa_media which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2021-10-28 16:03:16 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration anniversaries which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2021-10-28 16:03:16 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration apple_tv which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2021-10-28 16:03:16 WARNING (SyncWorker_7) [homeassistant.loader] We found a custom integration ethermineinfo which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2021-10-28 16:03:16 WARNING (SyncWorker_8) [homeassistant.loader] We found a custom integration ecowitt which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py:1013: InsecureRequestWarning: Unverified HTTPS request is being made to host '172.16.1.210'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
warnings.warn(

The last error is pointing to the IP address of my SamsungTV so again i can't find any error

@guidohaesen
Copy link

Same issue here, Preview image is shown, but the stream doesn't load

Hmm, we might have a different issue @ our hands in that case; Reason for that suspicion is that de preview image is actually taken/screenshotted from the stream 😬

Completing my information, this afternoon, when playing with the cams, the stream worked on my laptop! setup my lovelace and showing off to my wife..... Then i was not recieving any compliments but the usual vocals in my house: you better clean the house than playing with your gadgets. It didn;t work anymore. Since then only preview picture, no stream.
So maybe a (tuya) server issue?

@Airey001
Copy link
Author

I tried added this to by config and rebooting not sure if this is correct but still nothing:

logger:
default: critical
logs:
tuya: debug

I get those comments from the wife too. Mine normally is 'Aaron you have made Turing on a light so difficult' I am like how its an easy to use button now instead of a switch! I secretly think the love the gadgets we add and don't want us to know!

@guidohaesen
Copy link

Uhh, what the heck....
Did the logger lines in yaml and rebooted... Stream works again.
I did a reboot before without working streams.. :-)
Screenshot_22

@markusg1234
Copy link

markusg1234 commented Oct 29, 2021

Hi,
having same issue with video stream not starting and just spinning circle.
No snap shot either.
Logs below when trying to start stream.

Regards,
Markus

2021-10-29 12:54:27 INFO (MainThread) [homeassistant.components.stream] Started stream: rtsps://:@aws-tractor1.tuyaeu.com:443/v1/proxy/echo_show/2b39ddbecbd2419abe3a9247c37c056e91e84374ef49d03e
2021-10-29 12:54:28 ERROR (stream_worker) [homeassistant.components.stream.worker] Error opening stream rtsps://:@aws-tractor1.tuyaeu.com:443/v1/proxy/echo_show/2b39ddbecbd2419abe3a9247c37c056e91e84374ef49d03e
2021-10-29 12:54:28 INFO (MainThread) [homeassistant.components.stream] Stopped stream: rtsps://:@aws-tractor1.tuyaeu.com:443/v1/proxy/echo_show/2b39ddbecbd2419abe3a9247c37c056e91e84374ef49d03e
2021-10-29 12:54:37 WARNING (MainThread) [haffmpeg.tools] Timeout reading image.

2021-10-29 12:57:48 INFO (MainThread) [homeassistant.components.stream] Started stream: rtsps://:@aws-tractor1.tuyaeu.com:443/v1/proxy/echo_show/2b39ddbecbd2419abe3a9247c37c056e91e84374ef49d03e
2021-10-29 12:57:49 ERROR (stream_worker) [homeassistant.components.stream.worker] Error opening stream rtsps://:@aws-tractor1.tuyaeu.com:443/v1/proxy/echo_show/2b39ddbecbd2419abe3a9247c37c056e91e84374ef49d03e
2021-10-29 12:57:49 INFO (MainThread) [homeassistant.components.stream] Stopped stream: rtsps://:@aws-tractor1.tuyaeu.com:443/v1/proxy/echo_show/2b39ddbecbd2419abe3a9247c37c056e91e84374ef49d03e
2021-10-29 12:57:59 WARNING (MainThread) [haffmpeg.tools] Timeout reading image.
2021-10-29 12:58:11 WARNING (MainThread) [haffmpeg.tools] Timeout reading image.
2021-10-29 12:58:21 WARNING (MainThread) [haffmpeg.tools] Timeout reading image.

@frenck
Copy link
Member

frenck commented Oct 29, 2021

Error opening stream

That means Tuya isn't responding to opening the stream. This is out of reach for Home Assistant. The integration reaches out to the URL provided by Tuya. If that doesn't work at that moment in time, there is not much we can do.

@markusg1234
Copy link

Error opening stream

That means Tuya isn't responding to opening the stream. This is out of reach for Home Assistant. The integration reaches out to the URL provided by Tuya. If that doesn't work at that moment in time, there is not much we can do.

Not sure why it doesn't open the stream as it works fine in the Tuya App.
Do I need to setup Home Assistant to allow a rtsps (ssl) connection?

Regards,
Markus

@frenck
Copy link
Member

frenck commented Oct 29, 2021

Do I need to setup Home Assistant to allow a rtsps (ssl) connection?

If you have blocked that, it will cause issues, yes.

@markusg1234
Copy link

I use home assistant Nabu Casa cloud. Does this do it for you?

@frenck
Copy link
Member

frenck commented Oct 29, 2021

@markusg1234 This has nothing to do with that in any way.

@markusg1234
Copy link

Ok, I will look into if ssl is blocked.

@malosaa
Copy link

malosaa commented Oct 31, 2021

Same here, I have a ptz camera from tuya, sometimes the video stream works and sometimes it keeps loading, while the screenshot actually updates(camera status)

Getting this error

Logger: homeassistant.components.stream.worker
Source: components/stream/worker.py:382
Integration: Stream (documentation, issues)
First occurred: October 30, 2021, 23:37:38 (4 occurrences)
Last logged: 13:45:35

Error opening stream rtsps://****:****@aws-wework7.tuyaeu.com:443/v1/   SOMELONGCODE

@malosaa
Copy link

malosaa commented Oct 31, 2021

Well when I press on reload the tuya plugin, the stream works again. Don't know for how long.

//UPDATE
After reloading the page it doesn't stream anymore, but when reloading tuya it works for a bit.

@gomble
Copy link

gomble commented Nov 4, 2021

I have the same Problem getting following error:

Logger: homeassistant.components.stream.worker
Source: components/stream/worker.py:409
Integration: Stream (documentation, issues)
First occurred: 3. November 2021, 23:33:31 (7 occurrences)
Last logged: 3. November 2021, 23:41:13
rtsps://:@aws-tractor1.tuyaeu.com:443/v1/proxy/echo_show/f8b30445bdb244b0a9e5e9b68bdcde614325f087--------

Logger: haffmpeg.tools
Source: /usr/local/lib/python3.9/site-packages/haffmpeg/tools.py:49
First occurred: 3. November 2021, 23:33:38 (4 occurrences)
Last logged: 3. November 2021, 23:40:58
Timeout reading image.

@berkansezer77
Copy link

Same for me too.

@Sdahl1234
Copy link
Contributor

Same for me too. I need to reload tuya plugin to get the stream back

@gomble
Copy link

gomble commented Nov 5, 2021

I dont get any stream

@wilbertverbruggen
Copy link

Same issue here. No preview image nor stream:

Logger: homeassistant.components.stream.worker
Source: components/stream/worker.py:409
Integration: Stream (documentation, issues)
First occurred: 15:00:33 (50 occurrences)
Last logged: 15:32:27

Error opening stream rtsps://:@aws-tractor1.tuyaeu.com:443/v1/proxy/echo_show/3c62b2c9cbd344c687d843fce155da66dc2d8245ffcfa
Error opening stream rtsps://:@aws-tractor1.tuyaeu.com:443/v1/proxy/echo_show/8fac305b8d354dd8bcd68dbba0f882c13ee30719dc916
Error opening stream rtsps://:@aws-tractor1.tuyaeu.com:443/v1/proxy/echo_show/de9c0a8566a049e39f12914b8bf8b37e07a64a5a5a4c3

@bartplessers
Copy link

Same here:

  • preview snapshot --> OK
  • stream --> NOK

Where can I find those logs? Running hass in docker...

@IceOnly
Copy link

IceOnly commented Dec 16, 2022

I played arround with the Tuya API.
I allocated a stream url with https://developer.tuya.com/en/docs/cloud/2ccd66883c?id=Kam7q5a9ug8b1#title-1-Request%20parameter
for RTSPS.

I open the stream with ffplay.exe under windows and it works stable. But it is not psossible to close ffplay and restart the same URL again. And this is the issue we have with HA.

So we need to update the stream source every time if the stream worker tries to access the stream again.

@IceOnly IceOnly mentioned this issue Dec 16, 2022
19 tasks
@pergolafabio
Copy link

I played arround with the Tuya API. I allocated a stream url with https://developer.tuya.com/en/docs/cloud/2ccd66883c?id=Kam7q5a9ug8b1#title-1-Request%20parameter for RTSPS.

I open the stream with ffplay.exe under windows and it works stable. But it is not psossible to close ffplay and restart the same URL again. And this is the issue we have with HA.

So we need to update the stream source every time if the stream worker tries to access the stream again.

Hi, is it possible to share the curl command you used? I have a petfeeder with camera, but for me I don't see the video, it also even tries to capture it, no error in log

@Lxxrxns
Copy link

Lxxrxns commented Dec 22, 2022

I played arround with the Tuya API. I allocated a stream url with https://developer.tuya.com/en/docs/cloud/2ccd66883c?id=Kam7q5a9ug8b1#title-1-Request%20parameter for RTSPS.

I open the stream with ffplay.exe under windows and it works stable. But it is not psossible to close ffplay and restart the same URL again. And this is the issue we have with HA.

So we need to update the stream source every time if the stream worker tries to access the stream again.

Saw the intended fix. Nice job, hope it makes the cameras at least somewhat useful!
Any idea how long it generally takes for something to get added to HA?

@Heire
Copy link

Heire commented Dec 22, 2022

I got my doorbell camera working by adding the following service in the Cloud API: IoT Video Live Stream.
When i added that, it worked in my case. Not sure if this solves for other people but had the same issue before i added that service.

@Lxxrxns
Copy link

Lxxrxns commented Dec 22, 2022

I got my doorbell camera working by adding the following service in the Cloud API: IoT Video Live Stream. When i added that, it worked in my case. Not sure if this solves for other people but had the same issue before i added that service.

Tried this with my Luvion baby monitor, doesn't work sadly...

@pergolafabio
Copy link

Same here, also activated that api, but it doesn't provide me an rtsp URL, I only get a webrtc config back

@issue-triage-workflows
Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@kasabov
Copy link

kasabov commented Jan 5, 2023

I'm on latest HA and the issue still persists.

Home Assistant 2023.1.0
Supervisor 2022.12.1
Operating System 9.4
Frontend 20230104.0 - latest

@Lxxrxns
Copy link

Lxxrxns commented Jan 5, 2023

Also on latest version, still having this issue, and I thought a fix was on the way??

@issue-triage-workflows
Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@ndm13
Copy link

ndm13 commented Jan 19, 2023

This issue has a pull request. What's the status of it being merged?

@github-actions github-actions bot removed the stale label Jan 19, 2023
@issue-triage-workflows
Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@Lxxrxns
Copy link

Lxxrxns commented Feb 2, 2023

Commenting to un-stale. This has still not been resolved.

@github-actions github-actions bot removed the stale label Feb 2, 2023
@issue-triage-workflows
Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@Lxxrxns
Copy link

Lxxrxns commented Feb 16, 2023

This is still not solved in the latest version.

@github-actions github-actions bot removed the stale label Feb 16, 2023
@issue-triage-workflows
Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@issue-triage-workflows issue-triage-workflows bot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 9, 2023
@Lxxrxns
Copy link

Lxxrxns commented Mar 9, 2023

Still no video for Tuya cameras on latest version

@ndm13
Copy link

ndm13 commented Mar 22, 2023

It looks like duplicate issue #68503 is still open. I suggest everyone following this should follow that one now. It looks like the PR is still awaiting approval: #84094

Alternatively, someone from HA could reopen this (older) issue and mark the other as dupe.

@github-actions github-actions bot locked and limited conversation to collaborators Apr 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.