nielsfaber / scheduler-card

HA Lovelace card for control of scheduler entities
GNU General Public License v3.0
889 stars 112 forks source link

Entities not selected when editing existing schedule #666

Closed Masterz69 closed 1 year ago

Masterz69 commented 1 year ago

Checklist

Card Version

2.4.1

Component Version

3.2.14

Bug description

ENTITY tab while editing existing schedule does not reflect actually/previously selected entities, as well Multiple status.

Just checked - it happens in both cases: when Multiple selected and when not.

Steps to reproduce

See schedule card in lovelace: image

Press on it to edit: image

See list of entities ^^.

If I want to remove/add more entities - press ENTITY and see: image

Selector Multiple not selected, entities not selected.... Need to remember list of entities from previous screen and select them all again.

Do i do smth wrong ?

Additional info

Home Assistant 2023.1.4 Supervisor 2022.12.1 Operating System 9.0 Frontend 20230110.0 - latest

nielsfaber commented 1 year ago

Strangely for me this problem does not occur.

Clicking on this item: image

Gives the editor dialog: image

Switching to the entity tab: image

I don't really know what is different between your situation and mine, but if I cannot reproduce the issue I cannot solve it either I'm afraid. I tried also with switches, it gives the same results. Do you see this behaviour with any entity? Any clues on how to reproduce this?

Masterz69 commented 1 year ago

Recently updated Core to fresh version. See same issue - with switch, alarm and climate entities.

image

Pressing on ENTITY - see list of entities, but nothing selected.

image

Lovelace card config:

- type: entities
  show_header_toggle: false
  state_color: true
  entities:
    - entity: climate.entryr_floor
      name: 'Entry Room'
      icon: 'mdi:heating-coil'
    - entity: climate.kitchen_floor
      name: 'Kitchen'
      icon: 'mdi:heating-coil'
    - type: 'custom:scheduler-card'
      discover_existing: false
      time_step: 30
      title: false
      include:
        - climate.entryr_floor
        - climate.kitchen_floor
      display_options:
        primary_info: '{name}'
        secondary_info: '{action} - {relative-time}'

Scheduler card v3.2.7 Scheduler component v3.2.14 HA Core 2023.2.4 Browser Chrome 108.0.5359.125

What else can affect ?

P.S. It working as expected and as You described in case of following card config:

type: custom:scheduler-card
title: true
standard_configuration: true
include:
  - '*'

And it my case is when include is defined list of entities, like

include:
  - climate.entryr_floor
  - climate.kitchen_floor

or

include:
  - alarm_control_panel.xg3_s_alarm
  - alarm_control_panel.xg3_h_alarm
  - alarm_control_panel.house
  - alarm_control_panel.shed

or

include:
  - switch.lights_*
  - switch.light_*
  - sensor.slumi_overhang_illuminance_lux
  - sensor.season
  - sun.su
flegaigor commented 1 year ago

Similar problem here, have old schedule with one entity and it worked all summer right. Turn it off because don't need it until next summer. Now try to create new schedule with other entity, but there is no other entity in list and nothing change when click in this one entity (which is same as in first schedule). image

nielsfaber commented 1 year ago

To date I still haven't been able to reproduce this problem, even when including specific entities in the card. I cannot help with this issue until we can find a reproduction scenario.

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

Masterz69 commented 1 year ago

On Core 2023.3.5 see same. image

But nothing selected in Entity tab. image

BTW Multiple selector do not reflect previous choice.

jlangenaken commented 1 year ago

I can reproduce when only selecting one "Group" to base schedule on (e.g. climate), when I add another group (e.g. switch) this does not occur.

schedule set: image With both "climate" and "switch" group: image with only "climate" group: image

Masterz69 commented 1 year ago

I can reproduce when only selecting one "Group" to base schedule on (e.g. climate), when I add another group (e.g. switch) this does not occur.

Just tried to check schedule with more than one entity groups. Exactly as @jlangenaken wrote: as soon more than one entity group is in schedule - selection works fine, but not with only entity group.

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

Masterz69 commented 1 year ago

Any ideas ? Issue looks reproduced by another user.

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

patienttruth commented 6 months ago

I just came in here. Finding the same thing.

Screenshot_20240411-195656

Screenshot_20240411-195726

patienttruth commented 6 months ago

And I can confirm that I can see the correct entities selected when I edit the card to include another group.