dwainscheeren / dwains-dashboard-blueprints

Dwains Dashboard Blueprints
130 stars 163 forks source link

Blueprint : Problem with the entity picker. #109

Open MicJour opened 1 year ago

MicJour commented 1 year ago

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

42181926-4A93-422C-AC39-F793F2D00A12

GoTTi74 commented 1 year ago

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".

Medic97 commented 1 year ago

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

cybrain29 commented 1 year ago

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

xtraorange commented 1 year ago

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.

emkab commented 1 year ago

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

MicJour commented 1 year ago

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

emkab commented 1 year ago

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...

computermaster0101 commented 1 year ago

same issue is effecting multiple pages.

ithaqua974 commented 4 months ago

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?

GoTTi74 commented 4 months ago

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 commented 4 months ago

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!?