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.

cant use call scene.turn_on service, undefined entity error

See original GitHub issue

Unable to get scene working with a button card. I used the example in the readme but im getting an undefined error. Am I missing something or is there an issue?

                   cards:
                     - type: "custom:button-card"
                        icon: mdi:lightbulb
                        name: Office Dark
                        tap_action:
                        action: call-service
                        service: scene.turn_on
                        service_data:
                          entity_id: scene.office_dark```

```Log Details (ERROR)
Thu May 09 2019 21:46:52 GMT-0400 (Eastern Daylight Time)
https://ha.mydomain.ca/local/button-card.js?v=1:235:30 Uncaught TypeError: Cannot read property 'entity_id' of undefined```



Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
RomRidercommented, May 10, 2019

Your indentation is broken :

                   cards:
                     - type: "custom:button-card"
                       icon: mdi:lightbulb
                       name: Office Dark
                       tap_action:
                         action: call-service
                         service: scene.turn_on
                         service_data:
                           entity_id: scene.office_dark
0reactions
mkono87commented, May 10, 2019

You are not using the latest version of the card. Please upgrade. That’s a really old version!

Okay shes all working now. Il have to look into the customer updater as that is mostly the issue. Thanks for your help.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting a failed to call service not found when trying to toggle ...
I am trying to control a Lutron scene. The auto generated file has an entity toggle with the record of: type: entities entities: ......
Read more >
Error when clicking button to activate a scene. : r/homeassistant
Seems simple, but i keep getting an error when firing. just want to activate a scene (turn off several lamps) when i click...
Read more >
Blog Feed – Home Automation with Home Assistant and Node ...
In the call service node config, set Domain to persistent_notification, set Service to create, and set Data to {“message”:”This is a test notification”},...
Read more >
Oracle Policy Modeling User's Guide
A rulebase that infers the existence of service entity instances in order ... NOTE: The entity functions that cannot be used in this...
Read more >
sitemap-questions-46.xml - Stack Overflow
... /how-to-connect-java-client-to-wcf-service-using-clientcredentialtype-basic ... /questions/4787700/xml-parsing-error-undefined-entity-special-characters ...
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