smarthomej / addons

SmartHome/J addons for openHAB
Eclipse Public License 2.0
59 stars 23 forks source link

Switchbot Pan/Tilt Camera no Camera Stream #383

Closed BangerTech closed 1 year ago

BangerTech commented 2 years ago

Hi and first of all thanks for the Binding! Great job! I got a Switchbot Pan/Tilt Camera the other day and it works like other Tuya Cams too. I connected it in the SmartLife App and with your Binding i can add it to openHAB3. The only Problem is there is no Camera Stream Channel. On HomeAssistant there is no Problem with the Tuya integration i get a camera Stream right away. I´ve tried to setup a manual channel but this didn´t work as well. Do you have any idea what i can do?

Thanks again and kindest regards.

J-N-K commented 2 years ago

I don't have such a camera. What channels are added?

BangerTech commented 2 years ago

thanks for the reply. ok i´m just wondering why there is no stream channel or something. here is the full list

Screenshot 2022-07-05 185339
J-N-K commented 2 years ago

I guess that's because the schema does not provide such a channel. Is it this model

https://www.amazon.de/SwitchBot-Überwachungskamera-Sichtfeldabdeckung-Bewegungserkennung-Bewegungsverfolgung/dp/B09WCQP14H

?

BangerTech commented 2 years ago

yes exactly thats the camera. integrated it in HomeAssistant and had almost the same channels (entities) but there was one more streaming channel :-( maybe i need to create a channel manually?

J-N-K commented 2 years ago

If I'm not mistaken HomeAssistant uses the Tuya Cloud for connecting the devices. It's possible that some functionality is not available for local control. Which category is the device? If you log-in to iot.tuya.com and go to

do you see something that looks like a value that could provide the stream URL? Unfortunately I don't have a use-case for another indoor cam, otherwise I would have ordered one to check out myself.

BangerTech commented 2 years ago

so in device debugging i don´t see any stream url or something only one thing called movement_detect_pic RAW nothing else which let me think there is a stream url. Product Category is: sp for the api explorer stuff i couldn´t find anything too but i´m not a pro on the tuya iot platform ;-) i thought homeassistant uses kinda the same method with the iot platform, because i use the same cloud project as with openhab.

J-N-K commented 2 years ago

Yes and no. They use the same project, but with cloud access, while we use local access. I also found out why they can show the video stream: You have to add the "IoT Video Live Stream" API to your project. But this is a paid API. I'll check if I can add something so you can use it.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.