rgc99 / irrigation-unlimited-card

A companion card for the Irrigation Unlimited integration
MIT License
16 stars 1 forks source link

Card overhaul #14

Open rgc99 opened 2 weeks ago

rgc99 commented 2 weeks ago

The card is getting a bit of work over. Might take you up on the offer for some testing or input @evercape.

First thing is to upgrade to Irrigation Unlimited 2024.7.0 or pull the latest from the repository. The existing card should still work as before.

Next copy irrigation-unlimited-card.js from the repository which is under the dist directory. This should go in config/www/community/irrigation-unlimited-card folder on your system. Backup/delete the existing .js and .gz files. You will need to clear the browser cache.

Any problems restore the original file or reinstall from HACS.

evercape commented 1 week ago

Morning Robert. Currently sailing and will definitely test when back in 2 weeks. Thanks. M

evercape commented 2 days ago

Hi Robert, I am back now and will test.

Somehow the 2024.7.0 version did not update automatically, probably because it being a pre-release. I did however managed to update it without any issues using the update service call. HA is on all the latest version too.

I then downloaded and deleted

config/www/community/irrigation-unlimited-card/irrigation-unlimited-card.js
config/www/community/irrigation-unlimited-card/irrigation-unlimited-card.js.gz

and uploaded: https://github.com/rgc99/irrigation-unlimited-card/blob/master/dist/irrigation-unlimited-card.js

to config/www/community/irrigation-unlimited-card/irrigation-unlimited-card.js

Then I re-started Home assistant and also re-freshed the dashboard.

Logfiles show no error when searching for irrigation.

The following screenshot shows the versions: HACS_–_Home_Assistant

The card looks the same (I temporarily enabled a schedule since all were off as South Africa being in winter now: Constantia_–_Home_Assistant

Am I missing something? Could you please send a screenshot on what changes to look for?

Thanks Martin

rgc99 commented 1 day ago

That's not the new version. The menu icon to the right was changed from a switch to a menu. Perhaps clear the cache.

Screen Shot 2024-07-19 at 8 12 24 am

The card should look at the outset much the same. A lot of the changes as subtle but important. Here's some of the changes.

evercape commented 1 day ago

Thanks Robert, cache resolved it, apologise I had forgotten that.

It's perfectly working now. I like the blinking text for paused sequence as well as the browser second count down without pressure on HA - that is awesome.

A few things:

  1. Pause/resume is perfect it only shows up on zones/sequences when they are running, ie pause shows up when running and cancel when paused. however, on controller level pause/resume shows up whilst nothing is running. is that intended
  2. Sort order of timeline is descending. Would you consider to show the following: very last time zone ran (and in grey not black), then ascending blue the next timelines, and after that also greyed out descending the last zones already ran. In my mind you want the upcoming list of runs in ascending order. nice touch with the very next item to run having a different icon ;-)
  3. I also noticed that when there are no runs scheduled (like in winter now) the timeline is not shown. maybe check even if the next run is scheduled in six months or so it should show.
  4. when you mentioned the icon change, I been thinking that the mdi:sprinkler-variant icon could easily be adapted to your specific irrigation unlimited icon. See below what chat gpt came up with.

ChatGPT ChatGPT ChatGPT ChatGPT

Amazing overhaul of the card, well done and thanks! Martin