dwains-dashboard-blueprints icon indicating copy to clipboard operation
dwains-dashboard-blueprints copied to clipboard

Blueprint : Problem with the entity picker.

Open MichelJourdain opened this issue 2 years ago • 11 comments

There is a problem with the entity picker. The field is no longer available to select an entity.

42181926-4A93-422C-AC39-F793F2D00A12

MichelJourdain avatar Dec 16 '22 23:12 MichelJourdain

I was able to work around this issue by changing the blueprint yaml and replacing the lines containing: type: entity-picker with selector: entity:

See example: screenshot

As you can see in the screenshot the "Entity of the card one" was changed in the blueprint and the "Entity of the card two" was left "as-is".

GoTTi74 avatar Dec 20 '22 02:12 GoTTi74

Restarting fixed it but if you try to add it comes back.

Medic97 avatar Dec 23 '22 08:12 Medic97

I was able to work around by replacing entity-picker to entity_picker and manually entering the entity values (no list available)

cybrain29 avatar Jan 04 '23 11:01 cybrain29

So, I accidentally discovered a workaround (and a potential clue to the issue here). If you navigate to a page where an entity picker is used elsewhere (I went to Dev tools->States - there's an entity picker under set state), and then navigate back to this page, the entity pickers get filled in correctly. If you refresh, they go away again. I'm guessing the object isn't loaded by this config page, so you need another page to load it.

xtraorange avatar Jan 23 '23 02:01 xtraorange

any update on this? none of the above solutions work for me...

emkab avatar Feb 05 '23 06:02 emkab

You can add the Blueprint even if you cannot complete the fields. Then you go to the /config/dwains-dashboard/configs/more_pages/your-file-name.yaml/ directory and complete the Data section manually in the page.yaml file.

51005826-3658-4321-B3F4-D97CF962008A

MichelJourdain avatar Feb 05 '23 12:02 MichelJourdain

You can add the Blueprint even if you cannot complete the fields. Then you go to the /config/dwains-dashboard/configs/more_pages/your-file-name.yaml/ directory and complete the Data section manually in the page.yaml file.

51005826-3658-4321-B3F4-D97CF962008A

Cool, but isn't this more of a bandaid? It would be awesome to have this bug fixed as this makes the set-up very long...

emkab avatar Feb 07 '23 07:02 emkab

same issue is effecting multiple pages.

computermaster0101 avatar Mar 31 '23 00:03 computermaster0101

I was able to work around this issue by changing the blueprint Yaml and replacing the lines containing: type: entity-picker with selector: entity:

See example: screenshot

As you can see in the screenshot the "Entity of the card one" was changed in the blueprint and the "Entity of the card two" was left "as-is".

it sounds great but I don't understand how you integrate this into your code can you show us a snippet of you code please?

ithaqua974 avatar Jul 12 '24 06:07 ithaqua974

Hi Tristan

Let’s take the blueprint “TheeCardGraphics“ as an example. This blueprint should let you select 3 entities and the original code is: image

You can see the code I was referring to on line 17, 30 & 43.What I did is to change the code to: image

As you can see, I replaced the original code with the one I suggested and for me it worked. Hope this helps!?

GoTTi74 avatar Jul 12 '24 08:07 GoTTi74

I think i have done something wrong i came from this image to image and as you can see image nothing really change

Hi Tristan Let’s take the blueprint “TheeCardGraphics“ as an example. This blueprint should let you select 3 entities and the original code is: image You can see the code I was referring to on line 17, 30 & 43.What I did is to change the code to: image As you can see, I replaced the original code with the one I suggested and for me it worked. Hope this helps!?

ithaqua974 avatar Jul 12 '24 09:07 ithaqua974