Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Irrigation card does not display zones or sequences anymore #10

Closed
2 tasks done
Kolia56 opened this issue Mar 27, 2024 · 22 comments
Closed
2 tasks done

Irrigation card does not display zones or sequences anymore #10

Kolia56 opened this issue Mar 27, 2024 · 22 comments
Labels
bug Something isn't working

Comments

@Kolia56
Copy link

Kolia56 commented Mar 27, 2024

Checklist:

  • I updated to the latest version available
  • I cleared the cache of my browser

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.

@Kolia56 Kolia56 added the bug Something isn't working label Mar 27, 2024
@Kolia56 Kolia56 changed the title Card does not display anymore Irrigation card does not display anymore Mar 27, 2024
@Kolia56 Kolia56 changed the title Irrigation card does not display anymore Irrigation card does not display zones or sequences anymore Mar 27, 2024
@evercape
Copy link
Contributor

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
Copy link
Author

Kolia56 commented Mar 28, 2024

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
Copy link
Contributor

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

@Kolia56
Copy link
Author

Kolia56 commented Mar 28, 2024

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
Copy link
Author

Kolia56 commented Mar 28, 2024

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
Copy link
Author

Kolia56 commented Mar 28, 2024

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
Copy link
Contributor

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
Copy link
Author

Kolia56 commented Mar 28, 2024

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
Copy link
Contributor

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
Copy link
Author

Kolia56 commented Mar 28, 2024

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
Copy link
Owner

rgc99 commented Apr 5, 2024

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
Copy link
Author

Kolia56 commented Apr 6, 2024

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
Copy link
Owner

rgc99 commented Apr 8, 2024

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

@ricardofma
Copy link

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
Copy link

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
Copy link
Author

Kolia56 commented Jun 20, 2024

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
Copy link

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
Copy link
Author

Kolia56 commented Jun 21, 2024

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
Copy link

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
Copy link
Author

Kolia56 commented Jun 22, 2024

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
Copy link
Owner

rgc99 commented Jun 28, 2024

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.

@rgc99 rgc99 mentioned this issue Jul 18, 2024
@Kolia56
Copy link
Author

Kolia56 commented Aug 10, 2024

Thank you for this new version

@Kolia56 Kolia56 closed this as completed Aug 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants