n.setConfig is not a function

See original GitHub issue

I am using HomeAssistant rev 0.76.2

I have seen the FAQ regarding an errotr with n.setConfig but mine is different. I am using plan-coordinates and when I load the view I get this error in red

n.setConfig is not a function

{
 "type": "custom:plan-coordinates"
}

The coordinate box doesn’t display.

Here the code I use in ui-lovelace.yaml

  - title: FloorPlan
    icon: mdi:home-heart
    panel: true
    cards:
      - type: vertical-stack
        cards:
          - type: custom:plan-coordinates
          - type: picture-elements
            image: /local/floorplan.png
            elements:
              - type: state-icon
                tap_action: toggle
                entity: light.sofa_lamp
                style:
                  top: 75%
                  left: 32%
              - type: state-icon
                tap_action: toggle
                entity: light.tv_lamp
                icon: mdi:lamp
                style:
                  top: 37%
                  left: 29%

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ppmtcommented, Aug 29, 2018

in the Chromium Dev Tool I can see this error:

create-card-element.js:53 plan-coordinates TypeError: n.setConfig is not a function
    at dn (create-card-element.js:50)
    at bn (create-card-element.js:75)
    at hui-vertical-stack-card.js:77
    at Array.forEach (<anonymous>)
    at HTMLElement.value (hui-vertical-stack-card.js:76)
    at HTMLElement.value (hui-vertical-stack-card.js:45)
    at HTMLElement.value (properties-changed.js:315)
    at HTMLElement.value (properties-mixin.js:203)
    at HTMLElement.value (element-mixin.js:538)
    at HTMLElement.value (hui-root.js:239)
0reactions
ciotlosmcommented, Sep 12, 2018

No worries. It was in the docs under Warning, but probably not as explicit.

Read more comments on GitHub >

github_iconTop Results From Across the Web

HA 2021.12 -> hui-error-card TypeError: n.setConfig is not a ...
Since I updated to HA 2021.12.0 (core-2021.12.0) the user interface, which contains lots of button cards, no longer loads or takes hours to...
Read more >
Creating a card that draws cards... setConfig is not a function?
setConfig is not a function ? I'm trying to create a card that renders cards but am running into an error where the...
Read more >
Set Config is not a function - javascript - Stack Overflow
I have some store, which is formed data. On panel it looks how "fieldName" and text field (in depension from invoked form).
Read more >
Component Reference - Apache JMeter - User's Manual
Several test elements use JMeter properties to control their behaviour. These properties are normally resolved when the class is loaded.
Read more >
rs.reconfig() — MongoDB Manual
To reconfigure an existing replica set, first retrieve the current configuration with rs.conf() , modify the configuration document as needed, and then pass ......
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