rgc99 / irrigation-unlimited-card

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

Irrigation card does not display zones or sequences anymore #10

Open Kolia56 opened 3 months ago

Kolia56 commented 3 months ago

Checklist:

Release with the issue: 2024.1.0 HAOS: 2024.2.1 Last working release (if known): 2024.1.0 Browser and Operating System: Win10, Edge, Brave, Firefox

Description of problem:

Card does not display anymore on the production machine. Exact same configuration loaded on my test machine as this screenshot shows is correctly displayed image

Javascript errors shown in the web inspector (if applicable): No specific error. I clearly see that the card content is not populated, ie card content is empty, whereas on the test machine the content is indeed populated. I tried numerous ideas, like adding the card on a newly created dashboard, restarted HA, restarted PC, cleared cache, private navigation, etc. It just happened all of a sudden. I'm just out of any idea and I'm at lost Help will be much appreciated.

evercape commented 3 months ago

Hi Kolia, I have no issues. Try update to latest version. This is mine: Core 2024.3.3 Supervisor 2024.03.1 Operating System 12.1 Frontend 20240307.0 Rgds M

Kolia56 commented 3 months ago

Thanks Martin, I just did and still the same. Just for the records, on the test machine as described above, there is no issue. I even loaded the full backup to the test machine and the companion card is displayed correctly. Both HA are running under VBox.

evercape commented 3 months ago

I use proxmox. No issue. Very weird. Maybe something else / other component causing it? Try disable everything else to test?

Kolia56 commented 3 months ago

Very strange indeed. I'm restoring the most updated backup to the test machine to see how things are going. I may restore a few days ago backup to the prod machine to see whether it has an effect.

Kolia56 commented 3 months ago

So... I uploaded a 2 days ago backup and the card is now alive. I have been using rename_entities option last day and I think without being 100% sure that it jeopardized the card. Hopefully I use VSCode on the PC, so I have a copy of everything I did and I was able to upload it. Maybe Robert could tell us if rename_entities could be detrimental to the card

Kolia56 commented 3 months ago

Renaming entity_ids of the binary sensors does impact the card. I just made the experiment by changing them manually. So I'm now quite sure that rename_entities was the culprit.

evercape commented 3 months ago

Well done for figuring it out. Did you have any funny names with white spaces or so? Maybe try no spaces and only characters and numbers. If that works a simple sanitizing function in the companion card might be required.

Kolia56 commented 3 months ago

No no, no funny names. I just replaced the last two characters by the zone id number. For instance before it was binary_sensor.irrigation_unlimited_c1_z10 and after binary_sensor.irrigation_unlimited_c1_z2. No big deal

evercape commented 3 months ago

Hm maybe try something else. In particular if zone 2 already existed. Otherwise if that does not work then it might be some other issue in the companion card. I have not looked at it.

Kolia56 commented 3 months ago

As a test I just renamed binary_sensor.irrigation_unlimited_c1_z14 to binary_sensor.irrigation_unlimited_c1_z1444. It breaks the card. Reverting to the value, card reappears.

rgc99 commented 3 months ago

The card uses well known names i.e. binary_sensor.irrigation_unlimited_c1_z1. A discovery mechanism would need to be implemented to understand the new naming structure. In the meantime I will emphasise in the documentation that the rename_entities setting will also break the card.

Kolia56 commented 3 months ago

thank you. you may have noticed that in my case the naming structure was kept, only the value attached to z has been changed

rgc99 commented 2 months ago

Any deviation from the well known names will break the card at the moment

ricardofma commented 2 weeks ago

Hello Everyone. I got the same issue as described above. I did not rename entities. It just stop being populated. I already delete the configuration file to a very basic script and it keeps not working. HACS and irrigation unlimited are all updated.

configuration yaml irr irr2 lovelace

ricardofma commented 2 weeks ago

I am getting crazy since I cannot solve this issue for many days! In the past everything is working! I don't know what made this stop working. Any help would be welcome! Many thanks!

Kolia56 commented 2 weeks ago

I am getting crazy since I cannot solve this issue for many days! In the past everything is working! I don't know what made this stop working. Any help would be welcome! Many thanks!

FWIW, and I know it is not going to be of great help, since I reverted back to the original entity IDs I did not have any issue. I run the latest versions of both extensions. Did you try to restore backup at a point in time it was working on a separate machine. It could help you to understand what happened.

ricardofma commented 2 weeks ago

Thanks for your reply! But in fact I did not renamed it. I only created a single entity just to make a test. It is no longer working for many weeks. If I make a restore backup I will make many changes I did in HA..:(

Kolia56 commented 2 weeks ago

If I make a restore backup I will make many changes I did in HA..:(

This is why I suggested to restore a backup to a test machine. If you can't, you could trigger a new backup, save it, restore an old backup, see whether your problem is still there and then restore the latest backup to resume normal operation.

ricardofma commented 2 weeks ago

Thanks for you suggestion. Give me your opinion on this: Is there an option to totally remove the irrigation-unlimited from HACS and HA and ten reinstall it from zero? What is the right way to do it?

Kolia56 commented 1 week ago

Thanks for you suggestion. Give me your opinion on this: Is there an option to totally remove the irrigation-unlimited from HACS and HA and ten reinstall it from zero? What is the right way to do it?

Fairly straightforward. Go to HACS/Irrigation Unlimited Click on the 3 vertical dots on the top right. Here you are. image For the card select Frontend to access the list of frontend extensions.

rgc99 commented 1 week ago

It appears the controller is disabled. If so use the drop down menu to the right to re-enable. Posting the log should reveal answer.