I’m new to Home Assistant/ymal so please be patient with me. I have a floor plan dashboard that uses state_image to overlay images of the lit rooms when those lights are on. I recently installed browser_mod to open a popup window of my security camera feed when I tap the camera on my floorplan. It works perfectly, but I’m trying to use state_image and an input Boolean to overlay an image on the floorplan when the popup service is called. Is it possible to toggle a Boolean inside of the service? I’ve read that scripts can be used, but it’s my understanding that the browser_mod popup service cannot be called within a script. (I’ve tried and it doesn’t work)
Here is the yaml for the popup:
- type: state-icon
entity: camera.192_168_xxx_xxx
icon: mdi:battery
tap_action:
action: call-service
service: browser_mod.popup
target:
device_id:
- dca871f7fdf91fa857bfc99d535bdae0
data:
dismissable: true
autoclose: false
title: Driveway Camera 1
content:
show_state: false
show_name: false
camera_view: live
type: picture-entity
entity: camera.192_168_xxx_xxx
style:
top: 54%
left: 8%
rotate: '-51deg'
opacity: 0.1
'--mdc-icon-size': 65px
'--paper-item-icon-color': white
This code overlays the image based on the Boolean input state:
- type: image
entity: input_boolean.driveway_camera_1_toggle
style:
top: 50%
left: 50%
width: 100%
pointer-events: none
tap_action: none
hold_action: none
z-index: 1
state_image:
'on': \local\camera_driveway1_on.png
'off': \local\transparent.png
My endgame is for the camera on the floorplan to show a little red light when the popup service is called and active: