Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to "Displaying a popup via a script" if i use "this" as the deviceID in the scrip, but it is working fine if i use the browser's deviceID directly. #30

Closed
horacecar opened this issue Oct 13, 2019 · 1 comment

Comments

@horacecar
Copy link

horacecar commented Oct 13, 2019

i use the same sample in the Cookbook.

i was unable to "Displaying a popup via a script" if i use "deviceID: this" as the deviceID in the script, even i run the script directly. But it is working fine if i use the browser's deviceID directly ,
for example" deviceID: 3ads72oj-3jf87rdm"

May be HA cannot recognize "this" of the deviceID in the script???

test_popup:
sequence:
- service: browser_mod.popup
data_template:
deviceID: this <<<< cannot
deviceID: 3ads72oj-3jf87rdm <<<< can
title: Testing script
card:
type: entities
entities:
- light.bed_light

@thomasloven
Copy link
Owner

The script runs on your server and can't know which browser you are currently using.
https://github.com/thomasloven/hass-browser_mod/wiki/Cookbook#displaying-a-popup-via-a-script

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants