Home-AssistantConfig icon indicating copy to clipboard operation
Home-AssistantConfig copied to clipboard

is an invalid entity ID for dictionary value @ data['snapshot_entities']

Open Bluehawk83 opened this issue 3 years ago • 13 comments

When trying to create an automation i keep receiving this error:

SmartSelect_20221117_020552_Chrome

The yaml code for this automatisation is: `alias: Telenet Test pauze description: "" trigger:

  • platform: state entity_id:
    • media_player.telenettvbox
    • media_player.tvliving from: playing to: paused condition: [] action:
  • service: scene.create data: scene_id: voorpauze snapshot_entities: light.spots_keuken light.lichtbak_keuken
  • delay: hours: 0 minutes: 0 seconds: 2 milliseconds: 0
  • service: scene.turn_on target: entity_id: scene.tv_pauze metadata: {}
  • wait_for_trigger:
    • platform: state entity_id:
      • media_player.telenettvbox
      • media_player.tvliving from: paused to: playing
  • service: scene.turn_on target: entity_id: scene.voorpauze metadata: {} mode: single ` I am using: SmartSelect_20221117_021829_Chrome

Logbook errors: SmartSelect_20221117_022239_Chrome SmartSelect_20221117_022215_Chrome

Can anyone help me with this please?

Thanks in advance!

Bluehawk83 avatar Nov 17 '22 01:11 Bluehawk83

I don't use this myself, but checked https://www.home-assistant.io/integrations/scene/ and see another formatting of the " snapshot_entities:" key, like so

      scene_id: before
      snapshot_entities:
      - climate.ecobee
      - light.ceiling_lights

Could you try that formatting?

raoulteeuwenPE avatar Nov 18 '22 10:11 raoulteeuwenPE

Hi there,

Thx for your answer. I tried several settings, the format that i am now using is the formatting that was auto created by the GUI for setting automations, but i will try the formatting you suggested by editting the yaml for the automation. I ve tried so many things, that i cant remember if i allready tried this format as you suggest. The page you suggest, with info about the scenes i allready saw. And many hours googling. :) but thank you very much for your answer, i will try this! It would be very nice if a find a way to use the "snapshot entity" feature as it should.

I was able to use it with 1 zigbee light, but now with my general lighting that is knx based, i can not take snapshots so i hope there is a solution/fix for this.

Kind regards!

Outlook voor Androidhttps://aka.ms/AAb9ysg downloaden


From: RaoulTeeuwen - Pure Energie @.> Sent: Friday, November 18, 2022 11:47:36 AM To: notoriousbdg/Home-AssistantConfig @.> Cc: Bluehawk83 @.>; Author @.> Subject: Re: [notoriousbdg/Home-AssistantConfig] is an invalid entity ID for dictionary value @ data['snapshot_entities'] (Issue #38)

I don't use this myself, but checked https://www.home-assistant.io/integrations/scene/https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.home-assistant.io%2Fintegrations%2Fscene%2F&data=05%7C01%7C%7C17fc85993ee04e4295c708dac9524ea1%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638043652589643751%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=xy66mTECJUvvMgapF3VMiZQiq5UtnrRfjn7AeGzDrek%3D&reserved=0 and see another formatting of the " snapshot_entities:" key, like so

scene_id: before snapshot_entities: - climate.ecobee - light.ceiling_lights

Could you try that formatting?

— Reply to this email directly, view it on GitHubhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotoriousbdg%2FHome-AssistantConfig%2Fissues%2F38%23issuecomment-1319832847&data=05%7C01%7C%7C17fc85993ee04e4295c708dac9524ea1%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638043652589643751%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CSb1TGAT3Q8T41DiJXHjjakrJIlGg57zEoOTdyWlG2M%3D&reserved=0, or unsubscribehttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FA3US676X7K7GORBZYOPYDFTWI5NERANCNFSM6AAAAAASC25RLM&data=05%7C01%7C%7C17fc85993ee04e4295c708dac9524ea1%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638043652589643751%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=pNu%2FI6UOEiHbaxMOSGkp%2B3mp7KE4I1Cr%2FTFmlvVU0UE%3D&reserved=0. You are receiving this because you authored the thread.Message ID: @.***>

Bluehawk83 avatar Nov 18 '22 11:11 Bluehawk83

Hi,

Here some feedback. I have tried with the format you suggested, and i receive no more errors so thats a good point.

it doesnt give an error but also it is not restoring the state of the entities (lights).

I can see the created scene in the settings/scenes. But cannot edit this and when the scene is activated, the light settings are not correct.

Outlook voor Androidhttps://aka.ms/AAb9ysg downloaden


From: Kevin De Saeger @.> Sent: Friday, November 18, 2022 12:00:59 PM To: notoriousbdg/Home-AssistantConfig @.>; notoriousbdg/Home-AssistantConfig @.> Cc: Author @.> Subject: Re: [notoriousbdg/Home-AssistantConfig] is an invalid entity ID for dictionary value @ data['snapshot_entities'] (Issue #38)

Hi there,

Thx for your answer. I tried several settings, the format that i am now using is the formatting that was auto created by the GUI for setting automations, but i will try the formatting you suggested by editting the yaml for the automation. I ve tried so many things, that i cant remember if i allready tried this format as you suggest. The page you suggest, with info about the scenes i allready saw. And many hours googling. :) but thank you very much for your answer, i will try this! It would be very nice if a find a way to use the "snapshot entity" feature as it should.

I was able to use it with 1 zigbee light, but now with my general lighting that is knx based, i can not take snapshots so i hope there is a solution/fix for this.

Kind regards!

Outlook voor Androidhttps://aka.ms/AAb9ysg downloaden


From: RaoulTeeuwen - Pure Energie @.> Sent: Friday, November 18, 2022 11:47:36 AM To: notoriousbdg/Home-AssistantConfig @.> Cc: Bluehawk83 @.>; Author @.> Subject: Re: [notoriousbdg/Home-AssistantConfig] is an invalid entity ID for dictionary value @ data['snapshot_entities'] (Issue #38)

I don't use this myself, but checked https://www.home-assistant.io/integrations/scene/https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.home-assistant.io%2Fintegrations%2Fscene%2F&data=05%7C01%7C%7C17fc85993ee04e4295c708dac9524ea1%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638043652589643751%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=xy66mTECJUvvMgapF3VMiZQiq5UtnrRfjn7AeGzDrek%3D&reserved=0 and see another formatting of the " snapshot_entities:" key, like so

scene_id: before snapshot_entities: - climate.ecobee - light.ceiling_lights

Could you try that formatting?

— Reply to this email directly, view it on GitHubhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotoriousbdg%2FHome-AssistantConfig%2Fissues%2F38%23issuecomment-1319832847&data=05%7C01%7C%7C17fc85993ee04e4295c708dac9524ea1%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638043652589643751%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CSb1TGAT3Q8T41DiJXHjjakrJIlGg57zEoOTdyWlG2M%3D&reserved=0, or unsubscribehttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FA3US676X7K7GORBZYOPYDFTWI5NERANCNFSM6AAAAAASC25RLM&data=05%7C01%7C%7C17fc85993ee04e4295c708dac9524ea1%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638043652589643751%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=pNu%2FI6UOEiHbaxMOSGkp%2B3mp7KE4I1Cr%2FTFmlvVU0UE%3D&reserved=0. You are receiving this because you authored the thread.Message ID: @.***>

Bluehawk83 avatar Nov 18 '22 20:11 Bluehawk83

What does the trace now show?

raoulteeuwenPE avatar Nov 18 '22 20:11 raoulteeuwenPE

I don't see anything here in your last reply?

raoulteeuwenPE avatar Nov 21 '22 17:11 raoulteeuwenPE

Hi there,

I have send some screenshots :)

Thank you for your answer!

Outlook voor Androidhttps://aka.ms/AAb9ysg downloaden


From: RaoulTeeuwen - Pure Energie @.> Sent: Monday, November 21, 2022 6:35:49 PM To: notoriousbdg/Home-AssistantConfig @.> Cc: Bluehawk83 @.>; Author @.> Subject: Re: [notoriousbdg/Home-AssistantConfig] is an invalid entity ID for dictionary value @ data['snapshot_entities'] (Issue #38)

I don't see anything here in your last reply?

— Reply to this email directly, view it on GitHubhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotoriousbdg%2FHome-AssistantConfig%2Fissues%2F38%23issuecomment-1322421900&data=05%7C01%7C%7C5c815df1fa5a43fb1e4208dacbe6d54c%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638046489517914698%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=sP0cpPkXxKAzlOXIxuFZiZU3sXmmqzdfJwdxPo4SZQg%3D&reserved=0, or unsubscribehttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FA3US674WF2QOULIID3U4YTLWJOXHLANCNFSM6AAAAAASC25RLM&data=05%7C01%7C%7C5c815df1fa5a43fb1e4208dacbe6d54c%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638046489517914698%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=DLqEYOGFOfLITlxCrj5cOKY%2BRUwyj2E7x6dORErPx%2BI%3D&reserved=0. You are receiving this because you authored the thread.Message ID: @.***>

Bluehawk83 avatar Nov 21 '22 17:11 Bluehawk83

Whereto :-)? Haven't seen any, not sure where to look...

raoulteeuwenPE avatar Nov 21 '22 18:11 raoulteeuwenPE

Did you receive them now? They are copied again in this mail.

Thx

Outlook voor Androidhttps://aka.ms/AAb9ysg downloaden


From: RaoulTeeuwen - Pure Energie @.> Sent: Monday, November 21, 2022 7:28:17 PM To: notoriousbdg/Home-AssistantConfig @.> Cc: Bluehawk83 @.>; Author @.> Subject: Re: [notoriousbdg/Home-AssistantConfig] is an invalid entity ID for dictionary value @ data['snapshot_entities'] (Issue #38)

Whereto :-)? Haven't seen any, not sure where to look...

— Reply to this email directly, view it on GitHubhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotoriousbdg%2FHome-AssistantConfig%2Fissues%2F38%23issuecomment-1322480474&data=05%7C01%7C%7C28c58a35565642537cbe08dacbee2989%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638046520995341238%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=qZhPmRbY%2FaOgNLj%2Byqp9HG1GqTnSh6B4JUSUX7ZzqL0%3D&reserved=0, or unsubscribehttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FA3US67YKQGD22VLOYH7UEUDWJO5MDANCNFSM6AAAAAASC25RLM&data=05%7C01%7C%7C28c58a35565642537cbe08dacbee2989%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638046520995341238%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=fOnXGAqZph87IydFT%2Ff4BpYWvExaKmPbEGkRQIDI7DM%3D&reserved=0. You are receiving this because you authored the thread.Message ID: @.***>

Bluehawk83 avatar Nov 21 '22 18:11 Bluehawk83

No, not seeing them. Not sure if you do, but please check online at https://github.com/notoriousbdg/Home-AssistantConfig/issues/38#issuecomment-1322505680 .

raoulteeuwenPE avatar Nov 21 '22 19:11 raoulteeuwenPE

processed-271241ea-8774-4aa6-b3c7-23c3890b47ec_GJHzfX7T processed-2f199443-e10a-41da-bb35-5dbf334dfa05_IGXpZIM3 processed-45340b20-b3c2-4caa-b50b-c61808c6ea44_JzwxJiLk processed-32d70d3a-ea88-4f95-b679-b6034d907477_l0h3ACHl

I am very sorry for this mistake. I was replying by email instead of replying by this website. And thats where it did go wrong. Sorry for the unconvenience!

I think i know where to look for the problem. Probably it will be a misconfiguration in my knx installation in stead of with this script/automation. Will first try to fix some ETS settings for the KNX, when my electrician comes by, and will let you know how that did work out.. thank you very much for your time and effort!!

Bluehawk83 avatar Nov 21 '22 19:11 Bluehawk83

No problem! Looking forward to learn what the problem was/is :-).

raoulteeuwenPE avatar Nov 21 '22 19:11 raoulteeuwenPE

I suspect that it has something to do with the knx, read flag that is missing on some group adressess and maybe for the lights, there is no brightness-address, only a state address. So i think thats why the scene does know if a light was on or off, but not what his setting was.. only guessing from my side.. will figure this out first and will come back to you! Problem is i am a noob in HA, so it is a lot trial and error.. but i love the concept and project, and i think it is an amazing community with a lot of knowledge and people willing to help other people!

Outlook voor Androidhttps://aka.ms/AAb9ysg downloaden


From: RaoulTeeuwen - Pure Energie @.> Sent: Monday, November 21, 2022 8:26:22 PM To: notoriousbdg/Home-AssistantConfig @.> Cc: Bluehawk83 @.>; Author @.> Subject: Re: [notoriousbdg/Home-AssistantConfig] is an invalid entity ID for dictionary value @ data['snapshot_entities'] (Issue #38)

No problem! Looking forward to learn what the problem was/is :-).

— Reply to this email directly, view it on GitHubhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotoriousbdg%2FHome-AssistantConfig%2Fissues%2F38%23issuecomment-1322542968&data=05%7C01%7C%7Cb1ccdbb7825a42b875e008dacbf6469c%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638046555841558365%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=gEuVO%2BI5olYOz%2BhUYDVGQAdqm%2BDBXrweNYIBJp8TVFU%3D&reserved=0, or unsubscribehttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FA3US672ZFH2GW37OY5G6KW3WJPEF5ANCNFSM6AAAAAASC25RLM&data=05%7C01%7C%7Cb1ccdbb7825a42b875e008dacbf6469c%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638046555841558365%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=kzbaiKLKE7TOh2DwvHTMEIjKSYpiL1AUvJEs14Gk8e0%3D&reserved=0. You are receiving this because you authored the thread.Message ID: @.***>

Bluehawk83 avatar Nov 21 '22 19:11 Bluehawk83