I am trying to make a popup using webrtc card and browser mod popup. and i need a way to close only the current popup via shortcuts.
type: custom:mushroom-template-badge
icon: mdi:cctv
color: "#F7A6A6"
entity: camera.192_168_29_110
tap_action:
action: fire-dom-event
browser_mod:
service: browser_mod.popup
data:
browser_id: THIS
initial_style: fullscreen
tag: entrance_camera_popup
content:
type: custom:webrtc-camera
url: cp_plus_01
poster: http://192.168.29.12:1984/api/frame.jpeg?src=cp_plus_01
muted: true
shortcuts:
- name: Close
icon: mdi:close-circle
service: fire-dom-event
browser_mod:
service: browser_mod.close_popup
data:
browser_id: THIS
- name: Close
icon: mdi:close-circle
service: browser_mod.close_popup
service_data:
tag: entrance_camera_popup
style: >-
video {aspect-ratio: 16/9; object-fit: fill;} .shortcuts {top: 16px;
display: flex; gap: 12px; right: 16px; left: unset; --mdc-icon-size:
30px;} .mode {display: none} .card {margin-top: 12px; margin-left:
3px}0
visibility:
- condition: state
entity: camera.192_168_29_110
state_not: unknown
- condition: state
entity: camera.192_168_29_110
state_not: unavailable
Currently the first close button doesnt work, so i have to use workaround. i.e. to make a tag in browser_mod popup (but that closes it on every device not just current)
I am trying to make a popup using webrtc card and browser mod popup. and i need a way to close only the current popup via shortcuts.
Currently the first close button doesnt work, so i have to use workaround. i.e. to make a tag in browser_mod popup (but that closes it on every device not just current)