core: Invalid config for [scene] HA 0.101.0

Hi, after upgrade to version 0.101.0 I got this errors on notifications:

Invalid config for [scene]: State for cover.tapparella_cucina should be a string for dictionary value @ data[‘states’][0][‘entities’]. Got None. (See /home/homeassistant/.homeassistant/configuration.yaml, line 163). Please check the docs at https://home-assistant.io/integrations/scene/ Invalid config for [scene]: State for cover.tapparella_cucina should be a string for dictionary value @ data[‘states’][0][‘entities’]. Got None. (See /home/homeassistant/.homeassistant/configuration.yaml, line 163). Please check the docs at https://home-assistant.io/integrations/scene/ Invalid config for [scene]: State for cover.tapparella_sogg_divano should be a string for dictionary value @ data[‘states’][0][‘entities’]. Got None. (See /home/homeassistant/.homeassistant/configuration.yaml, line 163). Please check the docs at https://home-assistant.io/integrations/scene/

Here is full scene.yml file; this file is imported in config.yml

- name: Apri tapparelle
  entities:
    cover.tapparella_cucina:
      position: 100
    cover.tapparella_sogg_tavolo:
      position: 100
    cover.tapparella_sogg_divano:
      position: 100
    cover.tapparella_bagno_1:
      position: 100
    cover.tapparella_bagno_2:
      position: 100

- name: Mezza apertura tapparelle
  entities:
    cover.tapparella_cucina:
      position: 100
    cover.tapparella_sogg_tavolo:
      position: 30
    cover.tapparella_sogg_divano:
      position: 50
    cover.tapparella_bagno_1:
      position: 55
    cover.tapparella_bagno_2:
      position: 55

- name: Chiudi tapparelle
  entities:
    cover.tapparella_cucina:
      state: "closed"
    cover.tapparella_sogg_tavolo:
      state: "closed"
    cover.tapparella_sogg_divano:
      state: "closed"
    cover.tapparella_bagno_1:
      state: "closed"
    cover.tapparella_bagno_2:
      state: "closed"

- name: Tapparelle aperte a righe
  entities:
    cover.tapparella_sogg_divano:
      position: 18

Cannot find any trace for changes on that… any idea?

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 16 (8 by maintainers)

Most upvoted comments

@sr-as2 please add a state to media_player.salon. I’ll clearify this behavior in the docs asap.

why there’s state needed? I’ve got scenes based on daytime, and they not only set my lighting, but also set volume on sonos devices and google home’s - so for example when I play something at evening/night it won’t blow up my house with too high volume etc. something like “default starting point”. if I must set the state within scene - that mean, that I’ll have to force stop media_player if I set “state: off”, right? or there’s any “neutral” state that could be set without interrupting current state of media_player and I am not aware of?

For scenes with covers, you also have to change “position” to “current_position” - additional to adding a state (which should be “open” for every current_position > 0)

Ok, adding state attribute make scenes work. It definitely need clarification in docs, if I can, I would also suggest to clarify the exception raised, it’s a bit misleading. A clearer exception would make configuration debugging easier.

Thanks again.

@sr-as2 please add a state to media_player.salon. I’ll clearify this behavior in the docs asap.

Hey there. It is kind of related. With reproducing state every scene entity needs a state. That’s what your errors are saying, too. Just add state: (insert state here) to the configuration where no state is specified and tell us if that helps.

if you define the state and position does it work? might be related to #27914 but not sure.

Also make sure not to delete the issue template…all requested info is important.