PiotrMachowski / Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor

This custom integration provides a way to present a live view of a map for Xiaomi (Roborock/Viomi/Roidmi/Dreame) vacuums without a need for rooting.
MIT License
1.12k stars 121 forks source link

Map Camera and Amazon Alexa Echo Show #112

Open ManuBoss55 opened 3 years ago

ManuBoss55 commented 3 years ago

Hi,

I'm a fan of your work, I wanted to know if it is possible with some particular configuration to view the map on alexa echo show, it would be very cool (at the moment alexa indicates that "live view is not supported").

Best Regards :D

PiotrMachowski commented 3 years ago

Hi,

I have no idea what is required to show a camera view on Alexa Echo. Additionally I don't own it, so it's hard for me to implement it. Can you provide some additional information: does generic camera work (with/without stream_source)?

ManuBoss55 commented 3 years ago

Hi PiotrMachowski,

This morning I did a series of tests, in some cases it worked in others it didn't.

Working cases:

   - platform: generic
     name: camer_di_prova_7
     still_image_url: https://DOMAIN/local/avatar/luoghi/university.jpg
     stream_source: rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov
     verify_ssl: false
   - platform: generic
     name: camer_di_prova_8
     still_image_url: https://DOMAIN/local/avatar/luoghi/university.jpg
     stream_source: rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov
     verify_ssl: true

From the Amazon Alexa Smart Home Skill FAQ: CAMERA View a camera stream on an Amazon echo device.

“Alexa, show the front door camera.” The stream integration is required to stream cameras to Amazon echo devices.

The Amazon echo device will request the camera stream from Home Assistant. The Home Assistant URL must be accessible from the network the Amazon echo device is connected to and must support HTTPS on port 443 with a certificate signed by an Amazon approved certificate authority. These requirements can be satisfied with Home Assistant Cloud, or LetsEncrypt/DuckDNS.

Enable preload stream option for cameras used with echo devices to reduce response time, and prevent timing out before the 6 second limit.

PiotrMachowski commented 3 years ago

Thank you for your research! It seems that I would have to create a rtsp stream. I'm not sure if it's possible to do it within HA, but I can check it out. Please bear in mind that it isn't a top priority feature.

ManuBoss55 commented 3 years ago

Obviously bugs and new vacuum have priority, but it would be an interesting feature. If you have news write it here so I will receive the notification :D