question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

browser_id: THIS not working

See original GitHub issue

My Home Assistant version: 2022.8.7

What I am doing:

I try to execute the following code : image

What I expected to happen: Pop-up on the browser where I am calling the service. The code works perfectly without the browser_id: THIS

What happened instead: Nothing

Minimal steps to reproduce:

# The least amount of code or steps possible to reproduce my error
# Put your code/steps here

service: browser_mod.popup
data:
  title: hello
  content: test
  browser_id: THIS

Error messages from the browser console:

// Select everything from the browser console and copy it

// Paste it here
none

By replacing the space in the checkboxes ([ ]) with an X below, I indicate that I:

  • Understand that this is a channel for reporting bugs, not a support forum (https://community.home-assistant.io/).

  • Have made sure I am using the latest version of the plugin.

  • Have followed the troubleshooting steps of the “Common Problems” section of https://github.com/thomasloven/hass-config/wiki/Lovelace-Plugins.

  • Understand that leaving one or more boxes unticked or failure to follow the template above may increase the time required to handle my bug-report, or cause it to be closed without further action.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
thomaslovencommented, Sep 7, 2022

Oh. That shouldn’t be there. Thanks for the heads up!

0reactions
glienartcommented, Sep 9, 2022

Hi,

here’s how I am doing it, button to call the script:

type: button
tap_action:
  action: fire-dom-event
  browser_mod:
    service: script.your_script
    data:
      browser_id: THIS

script:

data:
  browser_id: "{{browser_id}}"
  content:
    type: ...
service: browser_mod.popup

Hope this helps

If it’s for an automation I don’t see how it will know where it was initiated.

Read more comments on GitHub >

github_iconTop Results From Across the Web

BrowserID's not available after Home Assistant restart #405
What I am doing: Automation: After full restart of the Home Assistant perform a Call service: Browser mod: refresh for all devices with...
Read more >
Bug #1066177 “BrowserID widget does not work & displays ...
BrowserID widget does not work & displays no error if JavaScript is disabled. Bug #1066177 reported by Terri on 2012-10-12.
Read more >
replies - Mozilla Support
Browser ID script error/will not load the affiliate module/Script: ... 2 replies; 1 has this problem; 2 views; Last reply by camelotgypsy.
Read more >
Check the browser id ie or not - Stack Overflow
The main thing I would say is that your approach to solving the problem is fundamentally wrong. For a start, the capabilities of...
Read more >
Issues for BrowserID | Drupal.org
We want to invite you to DrupalCon Prague. The European community is back in person 20-23 September full of insights, information, and connections....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found