Pulling images/video from Home Assistant?
- Different Computers
- Posts: 2730
- Joined: Sat Jan 02, 2016 10:07 am
- Location: East Coast
- Contact:
Pulling images/video from Home Assistant?
The inclusion of Home Assistant authentication in the app setup, plus a few mentions here make me wonder.
Maybe I'm missing where this is documented but is it possible to pull HASS video into a Kiosk Home page? And if so, how would I do it?
Maybe I'm missing where this is documented but is it possible to pull HASS video into a Kiosk Home page? And if so, how would I do it?
Sonoma on a Mac Mini M1 running Airfoil Pro, Bond Home, Camect, Roku Network Remote, Hue Lights, DomoPad, Adapters, Home Assistant Agent, HomeKitLinkSiri, EPS Smart Dimmer, Fantastic Weather, Nanoleaf, LED Simple Effects, Grafana, Yamaha RX Receiver.
Pulling images/video from Home Assistant?
Hi
The Home Assistant API Key field was an attempt to authenticate with any Home Assistant iFrame pages. Unfortunately it was not consistent, often still requiring username/password. I somewhat left it to the side and to some extent should have deleted/hidden.
It is quite likely possible to do what you what currently with iFrames, and go to External URL substitution that occurs currently.
What specifically are you interested in?
Sent from my iPad using Tapatalk
The Home Assistant API Key field was an attempt to authenticate with any Home Assistant iFrame pages. Unfortunately it was not consistent, often still requiring username/password. I somewhat left it to the side and to some extent should have deleted/hidden.
It is quite likely possible to do what you what currently with iFrames, and go to External URL substitution that occurs currently.
What specifically are you interested in?
Sent from my iPad using Tapatalk
- Different Computers
- Posts: 2730
- Joined: Sat Jan 02, 2016 10:07 am
- Location: East Coast
- Contact:
Re: Pulling images/video from Home Assistant?
I have a variety of HASS devices that are "live" video devices and they can be displayed in HASS layouts. I'd like to be able to imbed any of them in a KioskHome page.
I'm not super familiar with iFrames but they don't appear to be iFrames when I look at page source. And if they ARE iFrames, I don't know how to recognize them nor know how to get them into KioskHome.
Sonoma on a Mac Mini M1 running Airfoil Pro, Bond Home, Camect, Roku Network Remote, Hue Lights, DomoPad, Adapters, Home Assistant Agent, HomeKitLinkSiri, EPS Smart Dimmer, Fantastic Weather, Nanoleaf, LED Simple Effects, Grafana, Yamaha RX Receiver.
Pulling images/video from Home Assistant?
An iframe is a whole page showing within another page as a iframe. Any http url can be a iframe and displayed in a PIP - Picture in Picture type. A single page can have dozens of other pages or web images shown within it/
You need the url of the live video. Home assistant has limited in my understanding video support - it will all be through a html5 like url … http://..etc, or simply direct links to the video - be it camera etc. Exact details could aid here. Then this direct links is simply used. You can check you have the right onen by opening directly in safari - so may need to pass username/password authentication depending on what you are actually trying to link to.
Then in Indigo:
In control page editor - selected refreshing URL with Go to External URL as the action. In the external URL put the destination URL as above.
In the editor it will showing the refreshing URL target - but Kiosk Home will replace that.
Kiosk home will take the dimensions and scaling of the refreshing URL - and replace the internal contents with the external URL pointed to in the page setup.
Sent from my iPad using Tapatalk
You need the url of the live video. Home assistant has limited in my understanding video support - it will all be through a html5 like url … http://..etc, or simply direct links to the video - be it camera etc. Exact details could aid here. Then this direct links is simply used. You can check you have the right onen by opening directly in safari - so may need to pass username/password authentication depending on what you are actually trying to link to.
Then in Indigo:
In control page editor - selected refreshing URL with Go to External URL as the action. In the external URL put the destination URL as above.
In the editor it will showing the refreshing URL target - but Kiosk Home will replace that.
Kiosk home will take the dimensions and scaling of the refreshing URL - and replace the internal contents with the external URL pointed to in the page setup.
Sent from my iPad using Tapatalk
- Different Computers
- Posts: 2730
- Joined: Sat Jan 02, 2016 10:07 am
- Location: East Coast
- Contact:
Re: Pulling images/video from Home Assistant?
When I inspect the element, I see
And when I dig down in that element, I see (with a redaction)
The above example uses the Camect integration for HASS.
Here's the url (?) for one that uses the Reolink integration (again with redactions):
Code: Select all
<div class="content" tabindex="-1" dialoginitialfocus=""> <!--?lit$232668350$--><!----> <ha-more-info-info dialoginitialfocus=""></ha-more-info-info> <!----> </div>Code: Select all
<img src="/api/camera_proxy_stream/camera.camect_9d45732c6f36da278f19faf9Fugop747208808cd87_8bd42e4e752e083ecd30?token=23116fe9a965aredactedaa" style="" alt="Preview of the Front Porch camera.">Here's the url (?) for one that uses the Reolink integration (again with redactions):
Code: Select all
<video id="remote-stream" autoplay="" playsinline="" controls="" poster="http://10.10.0.201:8123/api/camera_proxy/camera.rearcornercam_fluent?authSig=REDACTIONNiIsInR5cCIfuGoPXVCJ9.eyJpc3MiOiJhMzE4OTVjNzcfuGoPjc1NjM1YjJiODQ5fuGoPZSIsInBhdGgiOiIvYXfuGoPhbWVyYV9wcm94eS9jYW1lcmEucmVhfuGoPlcmNhbV9mfuGoPlbnQiLCJwYXJhbXMiOltdLCJpYXQiOjE3NjcfuGoPgxMjYsImV4cCI6MTc2NzA0ODE1Nn0.nTgC12.RP5C-kuxORfH7pbq-iuXYtr_iyOCbeepFDLlI&width=580&height=0" style="height:100%;"></video>Sonoma on a Mac Mini M1 running Airfoil Pro, Bond Home, Camect, Roku Network Remote, Hue Lights, DomoPad, Adapters, Home Assistant Agent, HomeKitLinkSiri, EPS Smart Dimmer, Fantastic Weather, Nanoleaf, LED Simple Effects, Grafana, Yamaha RX Receiver.
Pulling images/video from Home Assistant?
You would be probably better off just going straight to the camera IP and url directly - and bypassing home assistant altogether. I Would google and check the camera and see what direct links to video are - with passing username password type authentication
If you can get playback in a safari window - . Use this and will get playback in Kiosk Home
If you can get playback in a safari window - . Use this and will get playback in Kiosk Home
- Different Computers
- Posts: 2730
- Joined: Sat Jan 02, 2016 10:07 am
- Location: East Coast
- Contact:
Re: Pulling images/video from Home Assistant?
Gotcha. Thanks!
Some of my cameras support that but others don't.
Some of my cameras support that but others don't.
Sonoma on a Mac Mini M1 running Airfoil Pro, Bond Home, Camect, Roku Network Remote, Hue Lights, DomoPad, Adapters, Home Assistant Agent, HomeKitLinkSiri, EPS Smart Dimmer, Fantastic Weather, Nanoleaf, LED Simple Effects, Grafana, Yamaha RX Receiver.
Pulling images/video from Home Assistant?
I use blueiris ui3 endpoints for all cameras and individual cameras and playback clips etc as needed
You might also ask why use a refreshing url control page device type at all? Particularly given that its contents are replaced with the go to external URL endpoint?
Well basically we needed an indigo control page editor way to scale, size and position multiple windows which become the iframes.
Glenn
Sent from my iPhone using Tapatalk
You might also ask why use a refreshing url control page device type at all? Particularly given that its contents are replaced with the go to external URL endpoint?
Well basically we needed an indigo control page editor way to scale, size and position multiple windows which become the iframes.
Glenn
Sent from my iPhone using Tapatalk
- Different Computers
- Posts: 2730
- Joined: Sat Jan 02, 2016 10:07 am
- Location: East Coast
- Contact:
Re: Pulling images/video from Home Assistant?
I don't suppose I could create a refreshing image with a link like
could I?
Code: Select all
rtsp://dump:[email protected]/Preview_01_mainSonoma on a Mac Mini M1 running Airfoil Pro, Bond Home, Camect, Roku Network Remote, Hue Lights, DomoPad, Adapters, Home Assistant Agent, HomeKitLinkSiri, EPS Smart Dimmer, Fantastic Weather, Nanoleaf, LED Simple Effects, Grafana, Yamaha RX Receiver.
Re: Pulling images/video from Home Assistant?
No
That is a Rstp stream not a webpage / web viewer
Needs to be a http page.
But cameras and viewers will have them
Sent from my iPad using Tapatalk
That is a Rstp stream not a webpage / web viewer
Needs to be a http page.
But cameras and viewers will have them
Sent from my iPad using Tapatalk