jugla / worldtidesinfocustom

world tides info custom component for home assistant
MIT License
27 stars 2 forks source link

How to change parameters in UI installation mode? #12

Closed sbussinger closed 2 years ago

sbussinger commented 3 years ago

I installed integration from HACS and then added integration via UI. How do I change parameters now that it's installed? For that matter, how do you set additional parameters during installation (e.g. I need to change "vertical_ref", but that's not one of the entry fields while adding the integration)?

When I click on "Configure" for the integration, it only has one setting which is "Show monitored tides on the map".

jugla commented 3 years ago

Hello, Indeed, when I've implemented UI, I've done something similar to configuration.yaml . With configuration.yaml, we cannot change parameters without "reboot". I will see, how to perform some enhancement to change parameter without re-install the integration via UI. Nevertheless, I think no all parameter can be changed online.

sbussinger commented 3 years ago

Thanks @jugla

Your documentation says the UI method is recommended, but I had much difficulty getting the UI method to install and then couldn't find a way to change any of the documented parameters (it's important in my case to set vertical_ref to CD). I switched to configuration.yaml after that and was able to get it working. But if you're going to recommend UI configuration, it really needs to support adjusting all the parameters.

jugla commented 3 years ago

Indeed I migrate configuration.yaml to UI. In fact in UI, you have 2 kind of definition upon creation of worldtidesinfo integration : image You can then select the "expert definition" : image

Then you can select the vertical ref you want i.e. CD : image

Tell me if it answers to your issue.

I keep idea of changing some parameters in online way.

sbussinger commented 3 years ago

Is there anyway to get to that UI after the integration has already been added? In other words can you change an existing integration using that UI or is it only available for initial creation. I think that's where I got confused. Thanks!

jugla commented 3 years ago

Hello, Thanks for your reply. Currently , UI has all parameters for creation. With your issue/question, I will see how to improve UI in order to change parameter once the integration has been created !

Wait a little ;-)

jugla commented 2 years ago

Hello, I've updated the custom component to update reference. (V6.x.x) I'm investigating how to change online some parameters.

jugla commented 2 years ago

Please go to V7.0.0 : I have added some options.

I close this issue as options are available. I will put more option on next release.