xiaomi-360-1080p-hacks icon indicating copy to clipboard operation
xiaomi-360-1080p-hacks copied to clipboard

MJSXJ02CM at Hassio

Open Rtamagnini opened this issue 4 years ago • 10 comments

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:

  • name: room platform: ffmpeg stream_source: "rtsp://admin:[email protected]:554/h264Preview_01_main"

Thanks in advance Ricardo

Rtamagnini avatar Nov 14 '20 11:11 Rtamagnini

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

Rtamagnini avatar Nov 14 '20 13:11 Rtamagnini

@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.

Vorlex avatar Nov 15 '20 22:11 Vorlex

i don't have any video or image.

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

my config.yaml

  • name: Oficina platform: generic stream_source: rtsp://192.168.1.104:8554/mainstream still_image_url: http://127.0.0.1:8123/local/camera.jpg

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:

  • switch.sonoff_1000889b10

any help or any trace i can do ?

Rtamagnini avatar Nov 17 '20 10:11 Rtamagnini

WORKS!!!!

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

Rtamagnini avatar Nov 17 '20 11:11 Rtamagnini

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:

  • platform: generic name: mi stream_source: rtsp://192.168.1.16:8554/mainstream still_image_url: http://192.168.1.106/cam.jpg

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 avatar Dec 30 '20 11:12 wallylee99

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

  • platform: ffmpeg name: mi input: rtsp://192.168.1.16:8554/mainstream

Then re-adding a picture-entity works!

wallylee99 avatar Dec 30 '20 15:12 wallylee99

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

ethaniel80 avatar Mar 31 '21 10:03 ethaniel80

Same question as above

milander avatar May 20 '21 09:05 milander

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

8999400 avatar Nov 29 '21 19:11 8999400

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)?

StanAmsterdam avatar Jan 02 '22 23:01 StanAmsterdam