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

Accessing Camera #459

Open
wasserth opened this issue Feb 9, 2024 · 2 comments
Open

Accessing Camera #459

wasserth opened this issue Feb 9, 2024 · 2 comments
Labels
tuya_device Support for specific Tuya Devices

Comments

@wasserth
Copy link

wasserth commented Feb 9, 2024

Hi,
I successfully connected a camera to the Tuya Smart Life App. Now I also want to access the camera image from within python. When using tinytuya scan the camera is successfully detected. But now I am not sure how I can get the video image from the camera. Using RTSP is probably the right way to go, but for this I would need a camera url similar to:
rtsp://[username:password@]ipaddress:port/streamPath
I have the ip address but not the other information.

Any help would be highly appreciated.

This is the device information found by tinytuya scan:

{
        "name": "Woox Smart Camera",
        "id": "bfdd3651c6d0......",
        "key": "0xl2u?;^kN.....",
        "mac": "68:57:2d:0......",
        "uuid": "1474210068......",
        "sn": "BST19031.......",
        "category": "sp",
        "product_name": "Woox Smart Camera",
        "product_id": "wd1rx0z.......",
        "biz_type": 18,
        "model": "R4071",
        "sub": false,
        "icon": "https://images.tuyaeu.com/smart/icon/ay1533895021982bN2sO/1566974584b1b6ce89ffc.png",
        "mapping": {
            "101": {
                "code": "basic_indicator",
                "type": "Boolean",
                "values": {}
            },
            "103": {
                "code": "basic_flip",
                "type": "Boolean",
                "values": {}
            },
            "104": {
                "code": "basic_osd",
                "type": "Boolean",
                "values": {}
            },
            "105": {
                "code": "basic_private",
                "type": "Boolean",
                "values": {}
            },
            "106": {
                "code": "motion_sensitivity",
                "type": "Enum",
                "values": {
                    "range": [
                        "0",
                        "1",
                        "2"
                    ]
                }
            },
            "108": {
                "code": "basic_nightvision",
                "type": "Enum",
                "values": {
                    "range": [
                        "0",
                        "1",
                        "2"
                    ]
                }
            },
            "109": {
                "code": "sd_storge",
                "type": "String",
                "values": "{\"maxlen\":255}"
            },
            "110": {
                "code": "sd_status",
                "type": "Integer",
                "values": {
                    "unit": "",
                    "min": 1,
                    "max": 5,
                    "scale": 1,
                    "step": 1
                }
            },
            "111": {
                "code": "sd_format",
                "type": "Boolean",
                "values": {}
            },
            "115": {
                "code": "movement_detect_pic",
                "type": "Raw",
                "values": {}
            },
            "117": {
                "code": "sd_format_state",
                "type": "Integer",
                "values": {
                    "unit": "",
                    "min": -20000,
                    "max": 20000,
                    "scale": 1,
                    "step": 1
                }
            },
            "134": {
                "code": "motion_switch",
                "type": "Boolean",
                "values": {}
            },
            "150": {
                "code": "record_switch",
                "type": "Boolean",
                "values": {}
            },
            "151": {
                "code": "record_mode",
                "type": "Enum",
                "values": {
                    "range": [
                        "1",
                        "2"
                    ]
                }
            }
        },
        "ip": "192.168.188.108",
        "version": "3.2"
    }
@jasonacox jasonacox added the tuya_device Support for specific Tuya Devices label Feb 10, 2024
@jasonacox
Copy link
Owner

Did you try the rtsp without user/pass? You might take a look at: https://nmap.org/nsedoc/scripts/rtsp-url-brute.html

@wasserth
Copy link
Author

Thanks for your reply. Unfortunately these suggestions did not solve the problem.
It seems that a software rooting might help:
https://dazeb.dev/root-your-woox-ip-camera-for-rtsp-home-assistant/
I will try this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tuya_device Support for specific Tuya Devices
Projects
None yet
Development

No branches or pull requests

2 participants