connect smart life camera?

Moderator: leecollings

Post Reply
edgarhildering
Posts: 31
Joined: Thursday 11 June 2015 22:36
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Contact:

connect smart life camera?

Post by edgarhildering »

Hello everyone,

Santa has been generous to me: a (tuya based) Smart Camera. The camera works fine with my smart phone. The quality of the image is not bad at all... But I want more :D and for that I need some help: I want to connect it ot Domoticz. For an IP camera it is clear how to do that. But this is IoT... :roll: and it will most likely need 'extra attention'.

Anyone been able to connect it and willing to share the recipe?

kind regards, --Edgar
RaspberryPi running Domoticz 2023.2
PIRs + lightswitches
thermometers + heating control
hygrometers + dehumifiers
TUYA switches
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: connect smart life camera?

Post by waltervl »

Unless further details about your camera it will be guessing

Check if the snapshot link (http://192.168.x.x:8080) from below is working.
From https://www.gadgetvictims.com/2019/10/t ... -yt08.html

RTSP Streaming
The RTSP port is 6554

MediaProfile_000: 1920x1080@10fps + PCM Audio
rtsp://192.168.x.x:6554/stream_0 (or just rtsp://192.168.x.x:6554)

MediaProfile_001: 640x360@10fps + PCM Audio
rtsp://192.168.x.x:6554/stream_1

Live streaming via HTTP:
http://192.168.x.x:9527/live.htm
http://192.168.x.x:9527/videostream.cgi

Visiting this page from any browser will show a snapshot
http://192.168.x.x:8080
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
edgarhildering
Posts: 31
Joined: Thursday 11 June 2015 22:36
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Contact:

Re: connect smart life camera?

Post by edgarhildering »

Smart Life Camera's are Internet Of Things camera's. This camera is tuya-based, which means:
- it sends its 'stream' to the cloud.
- my phone picks up the 'stream' from the cloud.

Furthermore: TUYA devices have an id, an IP-address and... an encryption key. I know all three but I don't know the algorithms (probably AES) and how to turn camera on and off. This all needs to be done to get the camera working.
It is obvious that the stream into the cloud is encrypted, for security reasons.
The info I need is how to
- turn the camera 'on'
- decrypt the stream

Tuya devices are very affordable and getting more common these days. As an example (I do NOT have shares and NOT promoting anything) see: https://www.aliexpress.com/item/1005002 ... mainSearch

I have managed to get switches working by applying Domoticz -> MQTT -> TinyTuya (Python) and v.v.

Next is the IP camera...

Hopefully this is enough background.
RaspberryPi running Domoticz 2023.2
PIRs + lightswitches
thermometers + heating control
hygrometers + dehumifiers
TUYA switches
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: connect smart life camera?

Post by waltervl »

you did not send a link and/or type number for your type of camera.
Most IP cameras have an URL where they can be accessed directly. going to the cloud is a very bad idea (my opinion) especially for a camera.

so searching for your brand and type of camera will also give you possibilities to change the firmware and get rid of that cloud access.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
edgarhildering
Posts: 31
Joined: Thursday 11 June 2015 22:36
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Contact:

Re: connect smart life camera?

Post by edgarhildering »

https://www.kruidvat.nl/kruidvat-smart- ... /p/5314114

This is the camera I am talking about. It is called a Smart Life camera, which you operate through the smart life app... Since all works through the app (which is handy if you are not into programming, no offence!) there is no URL involved.
going to the cloud is a very bad idea
I agree and I don't.
I agree because
- it makes it slow (upstream and downstream)
- Making a node in the middle comes close to 'the middle man' that can manipulate both up- and downstream
I don't agree because
- It allows you to have (full) control of all your devices wherever you are

so far so good...
RaspberryPi running Domoticz 2023.2
PIRs + lightswitches
thermometers + heating control
hygrometers + dehumifiers
TUYA switches
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: connect smart life camera?

Post by waltervl »

I do not think it is possible to get it working in Domoticz as it is not possible to get a proper url to get a stream or snapshot from the camera.

If you really want to get it to work with Domoticz (and probably not working anymore in the app) you have to find a hack solution like https://github.com/guino/Merkury1080P
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
EddyG
Posts: 1042
Joined: Monday 02 November 2015 5:54
Target OS: -
Domoticz version:

Re: connect smart life camera?

Post by EddyG »

edgarhildering wrote: Monday 27 December 2021 17:48 Smart Life Camera's are Internet Of Things camera's. This camera is tuya-based, which means:
- it sends its 'stream' to the cloud.
- my phone picks up the 'stream' from the cloud.
It is just an IP camera. It does not stream to the "cloud" and back to your device.
It connects to your internal network and to the app on your phone.
For outside connection it uses some sort of DDNS mostly on port 80.
You could use WireShark to find out more of how the connection is made.
Best to search the Internet if somebody with the right skills already found the way to connect directly.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest