Frontend: Error selecting scene in footer Entities Card

Created on 6 Feb 2020  路  5Comments  路  Source: home-assistant/frontend

Checklist

  • [x] I have updated to the latest available Home Assistant version.
  • [x] I have cleared the cache of my browser.
  • [x] I have tried a different browser to see if it is related to my browser.

The problem


Error slecting scene in footer Entities Card:
Failed to call service scene/turn_off.Service not found

Expected behavior


Click on icon must turn scene on!

Steps to reproduce


footer:
entities:
- scene.woonkamer_gedimd

Environment

  • Home Assistant release with the issue: 0.105.1
  • Operating system: Win 10

Problem-relevant configuration


Entities Card Configuration

entities:
  entity: light.zolder
  entity: light.woonkamer
footer:
  entities:
    scene.woonkamer_gedimd
    entity: script.1581004556664
    icon: 'mdi:weather-sunset-down'
  type: buttons
show_header_toggle: false
title: Zone
type: entities

Javascript errors shown in your browser console/inspector

Failed to call service scene/turn_off.Service not found

```

Additional information

bug stale

Most helpful comment

@BradyRosino yes I plan to add that

All 5 comments

please format your configuration using backticks

What's happening here is that we call toggleEntity, but that's not something that works for scenes.

If you don't want to mess with the default toggle behavior, could we make it so each entity button in a header or footer button could have it's own tap_action, hold_action, or double_tap_action defined, similar to picture header or footers? That way anybody could override the default behavior as they see fit?

Something like this:

entities:
  - entity: fan.downstairs_bradyoffice_ceiling
  - entity: light.downstairs_bradyoffice_ceiling
  - entity: light.downstairs_bradyoffice_desk
  - entity: light.downstairs_bradyoffice_corner
  - entity: light.downstairs_bradyoffice_bookshelf
  - entity: media_player.downstairs_bradyoffice_sonos
footer:
  entities:
    - entity: scene.brady_office_work
      icon: 'mdi:briefcase'
      tap_action:
        action: call-service
        service: scene.turn_on
        service_data:
          entity_id: scene.brady_office_work
    - entity: scene.brady_office_late_night
      icon: 'mdi:weather-night'
      tap_action:
        action: call-service
        service: scene.turn_on
        service_data:
          entity_id: scene.brady_office_late_night
  type: buttons
title: Brady's Office
type: entities

@BradyRosino yes I plan to add that

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 馃憤
This issue now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SeanPM5 picture SeanPM5  路  3Comments

aaron9060 picture aaron9060  路  3Comments

casperklein picture casperklein  路  4Comments

GauthamVarmaK picture GauthamVarmaK  路  3Comments

agneevX picture agneevX  路  3Comments