Hello
On Tap action I am trying to call script which do few things and popup in browser_mod.
Issue I am facing, following code opens popup in all opened browser.
I tried to pass browser id / device id from tap action to script but still it opens popup to all browser.
How can I resolve this?
Tap Action Code:
type: custom:mushroom-template-card
primary: Turn off
secondary: Everything
icon: mdi:lightbulb
fill_container: false
multiline_secondary: true
layout: vertical
tap_action:
action: fire-dom-event
browser_mod:
command: call-service
service: script.activate_scene_from_ui
service_data:
scene_id: scene.scene1
device_id: this
Script code:
alias: Activate Scene from UI
description: Activate a scene and show a notification if it does not exist
fields:
scene_id:
description: The ID of the scene to activate
device_id:
description: The ID of the device to show the popup on
sequence:
- service: browser_mod.popup
data:
device_id: "{{ device_id }}"
title: Scene Not Found
content: 'Check'