andrey-git / home-assistant-custom-ui

Custom UI elements for https://home-assistant.io
https://home-assistant.io
MIT License
527 stars 97 forks source link

Is the custom ui working with lovelace? #176

Open fernmac2 opened 4 years ago

fernmac2 commented 4 years ago

Hello, I am using hass.io 0.100.2 with lovelace and custom ui 20190518, I am nos sure if I am doing something wrong but after installing, loading and customizing entities, nothing happens. Is it still working with latest lovelace?

rccoleman commented 4 years ago

Yes, it works for me. First, you need to call homeassistant.reload_core_config or restart home assistant to load the customizations. The value/state of the entities that you’re customizing also need to change to reflect the customization, so you either need to wait for that, or call homeassistant.update_entity.

fernmac2 commented 4 years ago

Thanks for answering. Maybe I am doing something wrong, I installed and loaded as instructions, I restarted HA, in my customize.yaml file, I wrote for testing:

cover.estores1_dinner_room: custom_ui_state_card: state-card-custom-ui state_card_mode: break-slider

but I watch my frontend with the entity in question and nothing happens. The log as no error also.

duffel90 commented 4 years ago

Sinz HA Version 100.2 this implementation don't work for me. Home Assisrant did not start because of an error in line 27 in custom state card ui.

jtitley commented 4 years ago

I've not been working on HA for almost two years. I've upgraded to 0.93.2, just after Lovelace. Nothing about CustomUI works any more. Not sure what to do. The most important one is hide_in_default_view.

Any advice on what might have changed?

Mariusthvdb commented 4 years ago

See https://github.com/Mariusthvdb/custom-ui

Btw you should really read up on the differences between Ha States and Lovelace.

Most functionality of ‘old’ custom_ui was for States. As the one you asked about.

jtitley commented 4 years ago

Looks clean, I can't wait. I must suffer through a Python 3.7 upgrade first though, considering how many versions behind I am.