home-assistant / frontend

:lollipop: Frontend for Home Assistant
https://demo.home-assistant.io
Other
3.8k stars 2.6k forks source link

Switching a group in the UI that contains valves does not work #19975

Open qbushome opened 4 months ago

qbushome commented 4 months ago

Checklist

Describe the issue you are experiencing

Switching a group in the UI, containing valves does not work when clicking on the small switch (left to right), while the group can be switched in an automation. The switch turns on for halve a second and goes off again. When clicking on the name of the entity (the group), the big switch (up-down) appears. Clicking this one does work.

Describe the behavior you expected

Same behaviour in UI as in yaml-code

Steps to reproduce the issue

  1. Create a group containing multiple valve-entities.

`zv_woonkamer: name: ZV Woonkamer entities:

  1. Create an automation that calls a service valve.open_valve to that group, just to verify this is working

`- service: valve.open_valve entity_id:

  1. Add the same group in lovelace

`- type: entities show_header_toggle: false title: Woonkamer group entities:

What version of Home Assistant Core has the issue?

2024.2.5

What was the last working version of Home Assistant Core?

No response

In which browser are you experiencing the issue with?

No response

Which operating system are you using to run this browser?

No response

State of relevant entities

No response

Problem-relevant frontend configuration

`- type: entities
    show_header_toggle: false
    title: Woonkamer group
    entities:
      - entity: group.zv_woonkamer`

Javascript errors shown in your browser console/inspector

No response

Additional information

No response

karwosts commented 4 months ago

Seems this is because when we toggle a legacy group in entities, we call homeassistant.turn_on for each entity in the group, but that service is not valid for valves.

Not sure what the right answer is yet.

qbushome commented 4 months ago

Sorry for the bad formatting, for some reason the break at the end of each line didn't work. Some time ago I created a new topic on the community forum for this with better formatting: https://community.home-assistant.io/t/switch-on-a-group-with-valve-entities/688626

About your findings, the logfile indeed shows:

The service homeassistant.turn_on does not support entities valve.zv_eetkamer_midden, valve.zv_eetkamer_raam, valve.zv_zithoek_midden, valve.zv_zithoek_raam

github-actions[bot] commented 1 month ago

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 has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.