I’m trying to create a popup when the doorbell is ringing so that the feed of a camera is shown with the possibility to control the gates and garagedoor.
On a desktop browser, the image is really to big. (obvious due to the fullscreen browser mod option)
With the mobile app on a tablet, it’s do-able but could be better.
Most important is to get it right on a tablet and mobile phone
This is the code:
service: browser_mod.popup
data:
size: fullscreen
content:
type: vertical-stack
cards:
- square: false
columns: 3
type: grid
cards:
- type: custom:config-template-card
entities:
- switch.gate1_status
card:
type: button
tap_action:
action: none
hold_action:
action: call-service
service: script.switch_gate1
data: {}
target: {}
name: Gate 1
show_name: false
entity: switch.gate1_status
icon: >-
${ states['switch.gate1_status'].state === 'on' ?
'mdi:gate-alert' : 'mdi:gate-arrow-right' }
- type: custom:config-template-card
entities:
- switch.gate2_status
card:
type: button
tap_action:
action: none
hold_action:
action: call-service
service: script.switch_gate2
data: {}
target: {}
name: Gate 2
show_name: false
entity: switch.gate2_status
icon: >-
${ states['switch.gate2_status'].state === 'on' ?
'mdi:gate-open' : 'mdi:gate' }
- type: custom:config-template-card
entities:
- switch.garagedoor_status
card:
type: button
tap_action:
action: none
hold_action:
action: call-service
service: script.switch_garagedoor
data: {}
target: {}
name: Garage Door
show_name: false
entity: switch.garagedoor_status
icon: >-
${ states['switch.garagedoor_status'].state === 'on' ?
'mdi:garage-open-variant' : 'mdi:garage-variant' }
- camera_view: live
type: picture-glance
entities: []
camera_image: camera.door
dismissable: true
autoclose: false
Fullscreen is aesthetically nice/very clear, that’s why I use it and would prefer to stick to it.
After days of searching, failing and trying, this is the best I could come up with but I’m open for any improvements/ideas and mainly how to control the contents of that popup.
Thanks ahead for any help/advice!