tuya / tuya-home-assistant

Home Assistant integration for controlling Powered by Tuya (PBT) devices using Tuya Open API, maintained by the Home Assistant Community and Tuya Developer Team.
MIT License
869 stars 206 forks source link

Tuya - cameras in idle mode, no preview #763

Open teemukom opened 2 years ago

teemukom commented 2 years ago

Describe the bug Cameras (device id prefix bfa) are visible in Tuya portal and work fine in the App. Via integration those devices are added to HA but show status as Idle and no stream/snapshot appear. All other options like flip and siren are visible.

Expected behavior Stream would be available

Screenshots image

Home Assistant Version 2022.2.0.dev20220104 (same thin was in 2021.11)

Device specifications (please complete the following information, which can be found in log): 2022-01-10 13:35:38 DEBUG (SyncWorker_3) [tuya_iot] Request: method = POST, url = https://openapi.tuyaeu.com/v1.0/devices/bfda3151c4114dc85d11wf/stream/actions/allocate, params = None, body = {'type': 'rtsp'}, t = 1641814538097 2022-01-10 13:35:38 DEBUG (SyncWorker_0) [tuya_iot] Request: method = POST, url = https://openapi.tuyaeu.com/v1.0/devices/bfa0593df57ff726b6j1ro/stream/actions/allocate, params = None, body = {'type': 'rtsp'}, t = 1641814538111 2022-01-10 13:35:38 DEBUG (SyncWorker_0) [tuya_iot] Response: { "url": "rtsps://aabfa0593df57ff726b6j1ro:aaUEZSG2S4H3XA6TWK@aws-tractor1.tuyaeu.com:443/v1/proxy/echo_show/275abb903742456ea2961d2380930efaaa030a4b4953cfc3" 2022-01-10 13:35:38 DEBUG (MainThread) [haffmpeg.core] Start FFmpeg with ['ffmpeg', '-i', 'rtsps://aabfa0593df57ff726b6j1ro:aaUEZSG2S4H3XA6TWK@aws-tractor1.tuyaeu.com:443/v1/proxy/echo_show/275abb903742456ea2961d2380930efaaa030a4b4953cfc3', '-an', '-frames:v', '1', '-c:v', 'mjpeg', '-s', '984x554', '-f', 'image2pipe', '-'] 2022-01-10 13:35:38 DEBUG (SyncWorker_3) [tuya_iot] Response: { "url": "rtsps://bbbfda3151c4114dc85d11wf:bbZ1UTEYM7IHKOSUPB@aws-tractor1.tuyaeu.com:443/v1/proxy/echo_show/58a17390012e4a0882e42b5ff6b61a19203b36d68628361c" 2022-01-10 13:35:38 DEBUG (MainThread) [haffmpeg.core] Start FFmpeg with ['ffmpeg', '-i', 'rtsps://bbbfda3151c4114dc85d11wf:bbZ1UTEYM7IHKOSUPB@aws-tractor1.tuyaeu.com:443/v1/proxy/echo_show/58a17390012e4a0882e42b5ff6b61a19203b36d68628361c', '-an', '-frames:v', '1', '-c:v', 'mjpeg', '-s', '984x554', '-f', 'image2pipe', '-']

Additional context Add any other context or logs about the problem here.

jocamane commented 2 years ago

any news about this error ?

leoguerran commented 1 year ago

same problem.

applegeeks commented 7 months ago

It appears alot of the issues mentioned here, like sensors not updating and cameras not loading have been fixed for me since updating to 2024.02 and updating the tuya integration to use the latest authentication method.

leoguerran commented 6 months ago

It appears alot of the issues mentioned here, like sensors not updating and cameras not loading have been fixed for me since updating to 2024.02 and updating the tuya integration to use the latest authentication method.

The same problem with new authentication method :( image

jocamane commented 3 months ago

Can we help the team with anything to resolve this issue?