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

Lovelace state-button picture element card, service call not working #2057

Closed
ghost opened this issue Nov 15, 2018 · 6 comments · Fixed by #2343
Closed

Lovelace state-button picture element card, service call not working #2057

ghost opened this issue Nov 15, 2018 · 6 comments · Fixed by #2343

Comments

@ghost
Copy link

ghost commented Nov 15, 2018

@mike6460 commented on Nov 15, 2018, 3:41 AM UTC:

Home Assistant release with the issue: 0.82

Last working Home Assistant release (if known): 0.81.6

Operating environment (Hass.io/Docker/Windows/etc.): Ubuntu - Hass.io

Component/platform: Picture Element Service-button service call

Description of problem: Picture element card Service-button homeassistant.turn_off service call returns a "cannot be called without entity_id" error, was working in 0.81.6

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

          - type: service-button
            title: LIGHTS OFF
            style:
              top: 98%
              left: 10%
              color: red
              font-weight: bold
            service: homeassistant.turn_off
            service_data:
              entity_id: group.all_lights

Traceback (if applicable):

homeassistant/turn_off cannot be called without entity_id

Additional information:
Works under Dev Tools

Service
homeassistant.turn_off
Entity
group.all_lights
Service Data (JSON, optional)
{
"entity_id": "group.all_lights"
}

This issue was moved by fabaff from home-assistant/home-assistant#18476.

@tim-devel
Copy link

tim-devel commented Nov 30, 2018

Hi, i am having this issue too with a climate service call:

- type: service-button
  title: 21°C
  service: climate.set_temperature
  service_data:
     temperature: 21
     entity_id: climate.front_room

2018-11-30 08:38:46 ERROR (MainThread) [homeassistant.core] Invalid service data for climate.set_temperature: must contain one of temperature, target_temp_high, target_temp_low.. Got {}

This worked perfectly until 0.82

@tim-devel
Copy link

Hi. Just wanted to add this is still an issue with 0.83.3

@iantrich
Copy link
Member

iantrich commented Dec 6, 2018

This should be resolved in the next beta

@ukmgranger
Copy link

I think I'm having a similar issue here. I'm trying to toggle a single automation, but it toggles all automations when clicked.

                  - type: service-button
                    title: Guest Mode
                    service: automation.toggle
                    service_data:
                      entity_id: automation.wifi_away_mart
                    style:
                      top: 75%
                      left: 50%

@boced66
Copy link

boced66 commented Dec 13, 2018

Same here

          - type: service-button
            title: Poweer off
            style:
              top: 91%
              left: 87%
              padding: 0px
            service: homeassistant.turn_off
            service_data:
              entity_id: group.light_test

Still not work in 0.84.1

Error : homeassistant/turn_off cannot be called without entity_id

@tim-devel
Copy link

Thanks @iantrich but still not working on 0.84.2

@github-actions github-actions bot locked and limited conversation to collaborators Jul 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants