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

Problem to call scene turn_on #800

Open
Truble187 opened this issue Nov 12, 2023 Discussed in #799 · 6 comments
Open

Problem to call scene turn_on #800

Truble187 opened this issue Nov 12, 2023 Discussed in #799 · 6 comments

Comments

@Truble187
Copy link

Truble187 commented Nov 12, 2023

Discussed in #799

Originally posted by Truble187 November 12, 2023
Hey guys,
if I want to call a scene turn on service, I get alway an error and I don't know why.

tap_action:
action: call-service
service: scene.turn_on
target:
  entity_id: scene.diningroom_scene2

Error:
image

The scene works, if I call it over the developer setting.

@Mariusthvdb
Copy link
Contributor

you are using the incorrect syntax:

use:

  tap_action:
    action: call-service
    service: scene.turn_on
    data:
      entity_id: entity

if your button-card holds a scene as entity, or replace entity in the entity_id line with your actual scene entity_id

@Truble187
Copy link
Author

you are using the incorrect syntax:

use:

  tap_action:
    action: call-service
    service: scene.turn_on
    data:
      entity_id: entity

if your button-card holds a scene as entity, or replace entity in the entity_id line with your actual scene entity_id

Thanks but the error is the same ;(

@Mariusthvdb
Copy link
Contributor

Mariusthvdb commented Nov 12, 2023

Please post full button-card yaml and format correctly using the code ticks

@Truble187
Copy link
Author

Truble187 commented Nov 12, 2023

Hey,
here is the yaml:

type: custom:button-card
entity: scene.diningroom_scene1
name: Pandemonium
show_name: false
layout: name_state
tap_action:
  action: call-service
  service: scene.turn_on
  data:
    entity_id: scene.diningroom_scene1
styles:
  card:
    - background-image: url("/local/img/scene/scene1.png")
    - background-size: cover

@Mariusthvdb
Copy link
Contributor

Mariusthvdb commented Nov 13, 2023

just tested this:

type: custom:button-card
entity: scene.dining_table_gedimd
tap_action:
  action: call-service
  service: scene.turn_on
  data:
    entity_id: entity

and it works as expected.

are you sure your scene has the correct entity_id there?

fwiw, I also tested the HA syntax, which IS supported with the latest button-card version (sorry, it wasnt before)

type: custom:button-card
entity: sun.sun
name: scene concentreren
tap_action:
  action: call-service
  service: scene.turn_on
  data: {}
  target:
    entity_id: scene.dining_table_concentreren

and works perfectly.

@torbenan
Copy link

I'm experience the same issue. The sceen is not activated
My yaml
`
type: custom:button-card
icon: mdi:lightbulb-outline
size: 30%
color: grey
show_entity_picture: true
name: Køkken 0
entity: input_number.koekken_scene
state:

  • value: 0
    color: orange
    tap_action:
    action: call-service
    service: scene.turn_on
    data:
    entity_id: scene.kokken_0
    `

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

3 participants