“Configuration error” in browser mod popup

Apologies, but I’m getting mixed and matched from multiple of your comments.

I DID try unindenting both those lines, to the same effect.

THEN I posted the Dev Tools - Actions version that was “auto” generated, and it had those indents.

1 Like

I see, your comment cleared it. Will think then.
Tomorrow will try to simulate your case. Will come back then (if someone else will not help you faster).

Just double checked the Dev Tools - action generated version, and changed the indents as you suggested…and Configuration Error again.

Ok, now we’re in “almost there” hell.

When I use this in Dev Tools -Actions it works:

action: browser_mod.popup
data:
  dismissable: true
  autoclose: false
  content:
    type: picture-entity
    entity: camera.front_porch
    name: Front Porch
    timeout: 30000
    target:
    device_id: d2ab9242428350849390ec3c451f9bc8

But when I plug that into the automation, it does not. “Configuration error.”

Here’s the automation, which I added the above to. And it errors out.

alias: Front Porch Camera Motion
description: ""
triggers:
  - type: motion
    device_id: 267e7fc35eadc83d88626913b2161f1d
    entity_id: 413296f02876d4de64d8e684e0f0eb67
    domain: binary_sensor
    metadata:
      secondary: false
    trigger: device
conditions: []
actions:
  - action: browser_mod.popup
    metadata: {}
    data:
      dismissable: true
      autoclose: false
      browser_id:
        - d2ab9242428350849390ec3c451f9bc8
      title: Front Porch Motion
      content:
        action: browser_mod.popup
        data:
          dismissable: true
          autoclose: false
          content:
            type: picture-entity
            entity: camera.front_porch
            name: Front Porch
            timeout: 30000
            target: null
            device_id: d2ab9242428350849390ec3c451f9bc8
mode: single

So now when I test the automation, this works:


alias: Front Porch Camera Motion
description: ""
triggers:
  - type: motion
    device_id: 267e7fc35eadc83d88626913b2161f1d
    entity_id: 413296f02876d4de64d8e684e0f0eb67
    domain: binary_sensor
    metadata:
      secondary: false
    trigger: device
conditions:
  - condition: state
    entity_id: media_player.bar_ipad
    state:
      - "on"
action: browser_mod.popup
data:
  content:
    type: picture-entity
    entity: camera.front_porch
    name: Front Porch
    timeout: 15000
    device_id: d2ab9242428350849390ec3c451f9bc8
mode: single

BUT. I get the dread “Message malformed. Extra keys not allowed @Data [data]” when I try to save it.

Ugh.

So, I messed with it over and over until it both saved and worked:

alias: Front Porch Camera Motion
description: prototype for all camera motion
triggers:
  - type: motion
    device_id: 267e7fc35eadc83d88626913b2161f1d
    entity_id: 413296f02876d4de64d8e684e0f0eb67
    domain: binary_sensor
    metadata:
      secondary: false
    trigger: device
conditions:
  - condition: state
    entity_id: media_player.bar_ipad
    state:
      - "on"
actions:
  - action: browser_mod.popup
    metadata: {}
    data:
      title: Front Porch Motion
      dismissable: true
      autoclose: false
      content:
        type: picture-entity
        entity: camera.front_porch
        name: Front Porch
        timeout: 30000
        target: null
        device_id: d2ab9242428350849390ec3c451f9bc8
mode: single

The line after “target” should be indented for sure.

@DifferentComputers
Got to a PC, installed browser_mod, completely filed, does not work.
The simplest example:

type: button
entity: sun.sun
tap_action:
  action: call-service
  service: browser_mod.popup
  data:
    title: xxx
    content:
      type: picture-entity
      entity: camera.demo_camera
      name: yyy
    browser_id: THIS
    user_id: THIS

Pressing on a button does nothing.
No errors, no record in Log.
So, no idea…
Docs for this plugin contain plenty of mixed info but no examples.
Sorry, could not help you.
Will uninstall this.

P.S. Docs does not contain info about a “target” option for browser_mod.
Also, “dev tools - actions” does not suggest to fill this field. Probably this option should not be here.