telmomarques / xiaomi-360-1080p-hacks

Hacks for the Xiaomi Mi 360 1080p camera (MJSXJ02CM).
788 stars 133 forks source link

MJSXJ02CM at Hassio #72

Open Rtamagnini opened 4 years ago

Rtamagnini commented 4 years ago

hello, I was able to easily downgrade my camera's firmware and hack. via browser I put: -enable RTSP and Websocket Stream -Encoding type: H264 -Enable SSH / SFTP -created a new username / password

now I see the camera with the address: "rtsp: //192.168.1.104: 8554 / mainstream" and "rtsp://192.168.1.104:8554/substream"

can you tell me what I have to do now to be able to see the camera on Hassio (rpi3)?

do I need to open any ports on my router? what instruction to put in yaml?

something like this ? camera:

Thanks in advance Ricardo

Rtamagnini commented 4 years ago

I also noticed that if I put the encoding on the h264 I no longer have an image on the Mi home app

Vorlex commented 4 years ago

@Rtamagnini Here's configuration:

camera:
  - platform: generic
    name: Xiaomi 360
    stream_source: rtsp: //192.168.1.104: 8554/mainstream
    still_image_url: http://127.0.0.1:8123/local/camera.jpg

There is integration guide for generic camera where you can read more about it. Also, this camera doesn't provide static image. You can follow these steps to add custom image as preview on lovelace dashboard.

Rtamagnini commented 4 years ago

i don't have any video or image.

do i need to put user/pass at rtsp command ?

my config.yaml

I put a camera.jpg file in the www directory

and in the view I put a card like this:

type: picture-glance title: Oficina image: camera_image: camera.Oficina entities:

any help or any trace i can do ?

Rtamagnini commented 4 years ago

WORKS!!!!

type: picture-entity entity: camera.oficina camera_view: live

wallylee99 commented 3 years ago

WORKS!!!!

type: picture-entity entity: camera.oficina camera_view: live

I can't get the image to show on my home assistant (pi3).

My configuration.yaml:

camera:

And I add a Picture Entity Card to the dashboard with following info:

type: picture-entity entity: camera.mi camera_view: live show_state: false

Any help is appreciated!

wallylee99 commented 3 years ago

Answering my own question, I manage to resolve it by using the following in my configration.yaml:

Then re-adding a picture-entity works!

ethaniel80 commented 3 years ago

Good morning. I have the firmware version 4.0.9_0409. Can I still downgrade and then integrate the camera into the Home assistant? Does this project still work? thanks

milander commented 3 years ago

Same question as above

8999400 commented 2 years ago

РАБОТАЕТ!!! Я не могу получить изображение для показа на моем домашнем помощнике (pi3). https://github.com/AlexxIT/WebRTC

StanAmsterdam commented 2 years ago

Good morning. I have the firmware version 4.0.9_0409. Can I still downgrade and then integrate the camera into the Home assistant? Does this project still work? thanks

Same. Tried downgrading on my current SD (64GB with video on it too) but didnt do anything. Is the current FW protected/fixed and not downgradable or need to try on another empty SD as suggested?

PS. Any option to use camera as normal (no RTSP, but usage in the Mi app and video files on SD), but only enable FTP (and SSH)?