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

Nothing works after the V2025.01 update #103

Closed
omenukas opened this issue Jan 6, 2025 · 107 comments
Closed

Nothing works after the V2025.01 update #103

omenukas opened this issue Jan 6, 2025 · 107 comments

Comments

@omenukas
Copy link

omenukas commented Jan 6, 2025

After updating to V2025.01, all Irrigation cards disappeared. So impressive that it made the entire contents of the Lovelace dashboard invisible.
After uninstalling and reinstalling the integration, I tried to create a new Irrigation card, but the card only shows the following error:
this.lastChild.setConfig is not a function
this.lastChild.setConfig is not a function

@greentux
Copy link

greentux commented Jan 6, 2025

While adding the card I cant choose the program. The error is
"Cannot read properties of undefined (reading 'attributes')"

@omenukas
Copy link
Author

omenukas commented Jan 6, 2025

While adding the card I cant choose the program. The error is "Cannot read properties of undefined (reading 'attributes')"

Now it's the same with me

@omenukas
Copy link
Author

omenukas commented Jan 6, 2025

2025-01-06 21:30:20.894 ERROR (MainThread) [frontend.js.modern.202501030] Uncaught error from Edge 131.0.0.0 on Windows 10
TypeError: this.lastChild.setConfig is not a function
set hass (/irrigationprogram/www/irrigation-card.js:296:20)
ev.stopPropagation (src/panels/lovelace/cards/hui-card.ts:142:32)
dispatchEvent (src/common/dom/fire_event.ts:75:7)
customElements.get (src/panels/lovelace/create-element/create-element-base.ts:217:16)
image

@patfelst
Copy link

patfelst commented Jan 7, 2025

Should we delete the helpers we manually created before this release, and then do the update?

@petergridge
Copy link
Owner

Should we delete the helpers we manually created before this release, and then do the update?

No, you will get a persistent notification letting you know what you can delete as part of the upgrade

@Crums30
Copy link
Contributor

Crums30 commented Jan 7, 2025

After updating to V2025.01, all Irrigation cards disappeared. So impressive that it made the entire contents of the Lovelace dashboard invisible. After uninstalling and reinstalling the integration, I tried to create a new Irrigation card, but the card only shows the following error: this.lastChild.setConfig is not a function this.lastChild.setConfig is not a function

Same here.
I'm having the same message when trying to re-create the card.
The card appears briefly (1-2 seconds) when saving and then disappears to show this message.
Also, not sure how to add the adjustment factor. It does not seem to be created automatically like other helpers.

@petergridge
Copy link
Owner

2025-01-06 21:30:20.894 ERROR (MainThread) [frontend.js.modern.202501030] Uncaught error from Edge 131.0.0.0 on Windows 10
TypeError: this.lastChild.setConfig is not a function
set hass (/irrigationprogram/www/irrigation-card.js:296:20)
ev.stopPropagation (src/panels/lovelace/cards/hui-card.ts:142:32)
dispatchEvent (src/common/dom/fire_event.ts:75:7)
customElements.get (src/panels/lovelace/create-element/create-element-base.ts:217:16)
image

Hi, Can you send me the Diagnostics file. The help shows how to download it.

@patfelst
Copy link

patfelst commented Jan 7, 2025

Should we delete the helpers we manually created before this release, and then do the update?

No, you will get a persistent notification letting you know what you can delete as part of the upgrade

ok I will try upgrading soon

@petergridge
Copy link
Owner

2025-01-06 21:30:20.894 ERROR (MainThread) [frontend.js.modern.202501030] Uncaught error from Edge 131.0.0.0 on Windows 10
TypeError: this.lastChild.setConfig is not a function
set hass (/irrigationprogram/www/irrigation-card.js:296:20)
ev.stopPropagation (src/panels/lovelace/cards/hui-card.ts:142:32)
dispatchEvent (src/common/dom/fire_event.ts:75:7)
customElements.get (src/panels/lovelace/create-element/create-element-base.ts:217:16)
image

Can you send me the diagnostic file, instructions are in the help file

@petergridge
Copy link
Owner

After updating to V2025.01, all Irrigation cards disappeared. So impressive that it made the entire contents of the Lovelace dashboard invisible.
After uninstalling and reinstalling the integration, I tried to create a new Irrigation card, but the card only shows the following error:
this.lastChild.setConfig is not a function
this.lastChild.setConfig is not a function

Hi, Can you send me the diagnostic file.

Have you previously installed the standalone version of the card? You can see this from the resources page it will have two references to the card

@omenukas
Copy link
Author

omenukas commented Jan 7, 2025

I have already deleted the integration, custom card from HACS and all old helpers. Then I reinstalled the integration with one program.
Now when I want to create a card, I see an empty card:
image

@Crums30
Copy link
Contributor

Crums30 commented Jan 7, 2025

After updating to V2025.01, all Irrigation cards disappeared. So impressive that it made the entire contents of the Lovelace dashboard invisible.
After uninstalling and reinstalling the integration, I tried to create a new Irrigation card, but the card only shows the following error:
this.lastChild.setConfig is not a function
this.lastChild.setConfig is not a function

Hi, Can you send me the diagnostic file.

Have you previously installed the standalone version of the card? You can see this from the resources page it will have two references to the card

Here is my diagnostics file.
config_entry-irrigationprogram-01JGYT3XE4ZBKJN7SR76F3GV2A-4.json

@omenukas
Copy link
Author

omenukas commented Jan 7, 2025

and here is my diagnostic file:
config_entry-irrigationprogram-01JGZNA583J4M23YCC9X6WXWH8 (2).json

@petergridge
Copy link
Owner

Can you try clearing the cache in your browser.

@greentux
Copy link

greentux commented Jan 7, 2025

@petergridge
Copy link
Owner

The card should look like this:
image
it no longer has the translation label data entry fields.

@Crums30
Copy link
Contributor

Crums30 commented Jan 7, 2025

Can you try clearing the cache in your browser.

Done. Still same behaviour. I can add the card, but it appears briefly and the disappears with the same message this.lastChild.setConfig is not a function

@greentux
Copy link

greentux commented Jan 7, 2025

and screenshot
Bildschirmfoto zu 2025-01-07 07-55-07

it is the extra card ( I tried after having the same problem with the integration only)

@petergridge
Copy link
Owner

can you screenshot the resources data for me:
image
System/dashboard then the hamburger and select resources

@petergridge
Copy link
Owner

Try this process:

To remove this card and revert to the auto installed version follow this process.

  • Delete the custom card and the HACS repository from your installation.
  • Ensure the hacsfiles/irrigation-card/... resource is removed, delete it if required
  • Upgrade to the latest version of the component V2024.10.01 or newer
  • Restart HA
  • Refresh the browser (you may need to clear the browser cache)
  • Add the card to your HA Dashboard
  • The card will be upgraded with each install of the component.

@Crums30
Copy link
Contributor

Crums30 commented Jan 7, 2025

can you screenshot the resources data for me: image System/dashboard then the hamburger and select resources

Screenshot_2025-01-07-07-59-07-79_c3a231c25ed346e59462e84656a70e50

@greentux
Copy link

greentux commented Jan 7, 2025

my ressources
Bildschirmfoto zu 2025-01-07 08-00-39

@greentux
Copy link

greentux commented Jan 7, 2025

Try this process:

To remove this card and revert to the auto installed version follow this process.

  • Delete the custom card and the HACS repository from your installation.
  • Ensure the hacsfiles/irrigation-card/... resource is removed, delete it if required
  • Upgrade to the latest version of the component V2024.10.01 or newer
  • Restart HA
  • Refresh the browser (you may need to clear the browser cache)
  • Add the card to your HA Dashboard
  • The card will be upgraded with each install of the component.

What do You mean with "latest version of component"? the extra card or the irrigation controller only?

@omenukas
Copy link
Author

omenukas commented Jan 7, 2025

Try this process:

To remove this card and revert to the auto installed version follow this process.

  • Delete the custom card and the HACS repository from your installation.
  • Ensure the hacsfiles/irrigation-card/... resource is removed, delete it if required
  • Upgrade to the latest version of the component V2024.10.01 or newer
  • Restart HA
  • Refresh the browser (you may need to clear the browser cache)
  • Add the card to your HA Dashboard
  • The card will be upgraded with each install of the component.

That's how I did everything, but you didn't check for resources. I will try later as I have work now

@greentux
Copy link

greentux commented Jan 7, 2025

Try this process:

To remove this card and revert to the auto installed version follow this process.

  • Delete the custom card and the HACS repository from your installation.
  • Ensure the hacsfiles/irrigation-card/... resource is removed, delete it if required
  • Upgrade to the latest version of the component V2024.10.01 or newer
  • Restart HA
  • Refresh the browser (you may need to clear the browser cache)
  • Add the card to your HA Dashboard
  • The card will be upgraded with each install of the component.

What do You mean with "latest version of component"? the extra card or the irrigation controller only?

Did all that. Same ressources, same problem.

@greentux
Copy link

greentux commented Jan 7, 2025

From the system protocoll

`Logger: frontend.js.modern.202411278
Quelle: components/system_log/init.py:331
Erstmals aufgetreten: 08:06:23 (2 Vorkommnisse)
Zuletzt protokolliert: 08:07:18

Uncaught error from Chrome 131.0.0.0 on Linux x86_64 TypeError: Cannot read properties of undefined (reading 'attributes') set hass (/irrigationprogram/www/irrigation-card.js:36:45) createCardElement (src/panels/lovelace/cards/hui-card.ts:126:27) ev.stopPropagation (src/panels/lovelace/cards/hui-card.ts:152:13) dispatchEvent (src/common/dom/fire_event.ts:76:7) tag.includes (src/panels/lovelace/create-element/create-element-base.ts:198:14)`

@omenukas
Copy link
Author

omenukas commented Jan 7, 2025

I checked on my mobile phone, the program appeared, the card is new, but it shows the same error again.
Screenshot_20250107_090835_Home Assistant

@Crums30
Copy link
Contributor

Crums30 commented Jan 7, 2025

Try this process:

To remove this card and revert to the auto installed version follow this process.

  • Delete the custom card and the HACS repository from your installation.
  • Ensure the hacsfiles/irrigation-card/... resource is removed, delete it if required
  • Upgrade to the latest version of the component V2024.10.01 or newer
  • Restart HA
  • Refresh the browser (you may need to clear the browser cache)
  • Add the card to your HA Dashboard
  • The card will be upgraded with each install of the component.

Did a fresh reinstall like you mentionned. Still same.
Below two screenshots when creating the card. First is right after I select the program, second is a couple of seconds later. The card seems OK, but this error then block the display.
Screenshot_2025-01-07-08-01-35-78_c3a231c25ed346e59462e84656a70e50

Screenshot_2025-01-07-08-01-38-87_c3a231c25ed346e59462e84656a70e50

@petergridge
Copy link
Owner

Try this process:

To remove this card and revert to the auto installed version follow this process.

  • Delete the custom card and the HACS repository from your installation.
  • Ensure the hacsfiles/irrigation-card/... resource is removed, delete it if required
  • Upgrade to the latest version of the component V2024.10.01 or newer
  • Restart HA
  • Refresh the browser (you may need to clear the browser cache)
  • Add the card to your HA Dashboard
  • The card will be upgraded with each install of the component.

What do You mean with "latest version of component"? the extra card or the irrigation controller only?

Did all that. Same ressources, same problem.

Irrigation component only, the card is deployed with the component automatically

@patfelst
Copy link

patfelst commented Jan 7, 2025

Worked first time for me. Installed the update, restarted HA, deleted the old helpers as per the persistent notification. Added new cards. All seems to be working! Looks much cleaner too.

When I reconfigured the programs, by default the start time options was blank. Had to select Time selector. Then when I applied I got an error. Not sure if this was becuase I had a couple of "Zone frequency replaces program frequency
", but I've decided to remove those overrides for now. After playing around repeating the config a few times, I eventually got the success message.

I'm using Rainbird so will let you know how it goes.

@omenukas
Copy link
Author

omenukas commented Jan 9, 2025

works for me too

@patfelst
Copy link

patfelst commented Jan 9, 2025

FYI I wasn't having card problems, but tried the yaml from the notification so I could try and adjust the "time remaining" entity display format. So I've got both versions of the cards running in two separate HA tabs.

So the new manual card appears ok, but when I turn on a zone, a few things don't seem to be working (see screen shot below):

  • zone status says it's off
  • The icon changes to a water drop (doesn't do the stopwatch for a brief moment, then change to a sprinkler)
  • The time remaining doesn't appear

Note that the actual sprinker valve physically does turn on.

image

@patfelst
Copy link

patfelst commented Jan 9, 2025

Just noticed if I run the program as opposed to a zone within the program like my post above, I get a slightly different result

image

@omenukas
Copy link
Author

omenukas commented Jan 9, 2025

Maybe you can explain me how to add the rain sensor. I have an Ecowitt rain sensor and in the old version I had added an input boolean sensor. And what to do now?

@petergridge
Copy link
Owner

Maybe you can explain me how to add the rain sensor. I have an Ecowitt rain sensor and in the old version I had added an input boolean sensor. And what to do now?

Hi omenuka, can you start a new issue, this one is getting to many variations and it is hard to keep track.

@omenukas
Copy link
Author

omenukas commented Jan 9, 2025

Maybe you can explain me how to add the rain sensor. I have an Ecowitt rain sensor and in the old version I had added an input boolean sensor. And what to do now?

Hi omenuka, can you start a new issue, this one is getting to many variations and it is hard to keep track.

ok
Close this issue or will you still try to solve the card problem?

@petergridge
Copy link
Owner

I will leave this issue active for a little while, I am fixing some related problems with the yaml.

@petergridge
Copy link
Owner

V2025.01.03b2 is released

  • fixed a few inconsistencies between the yaml and the custom card
  • added config flow option in the advanced menu to enable/disable the yaml generation.

@patfelst
Copy link

patfelst commented Jan 9, 2025

thanks Peter, that's fixed the zone time remaining stuff, but I notice the first row of the program is now missing:
image
i.e. there's no program on/off button, or the "settings" show/hide.
Thanks

@petergridge
Copy link
Owner

V2025.01.03.b3 released, fix one break one, just trying to keep myself busy 😃

@patfelst
Copy link

patfelst commented Jan 9, 2025

I think what's happening is the very first notifications after downloading the update work ok, but subsequent notifications are still missing the first row :(

@patfelst
Copy link

patfelst commented Jan 9, 2025

oh hang on, just saw it looks like I'm still on V2025.01.03b1

@patfelst
Copy link

patfelst commented Jan 9, 2025

actually I am on the right version, its just the label hasn't been updated
image
but in HACS I see I'm on the latest
image

@omenukas
Copy link
Author

omenukas commented Jan 9, 2025

V2025.01.03.b3, seems to be fine
image

@patfelst
Copy link

patfelst commented Jan 9, 2025

can you try generating and pasting the yaml again? Like I said it works the first time. subsequent times for me, miss the first row of each card.

@omenukas
Copy link
Author

omenukas commented Jan 9, 2025

Yes, the top row really disappears. But the question is, is it necessary to generate the yaml a second time? As far as I have tried now, if I change the settings in "Configure", it also changes in the existing card
image

@patfelst
Copy link

patfelst commented Jan 9, 2025

thanks for confirming. Peter has added an advanced option to generate the yaml each time you reconfigure a program, so yes I think it should work properly, for example, what if you wanted to move a zone from one program to another? You need to regenerate.

@petergridge
Copy link
Owner

Just noting I did not update the manifest on this so the HA version will be out of sync with the HACS version. Until I go to the full release with V2025.01.03.

Are there any remaining issues with the latest version that need to be addressed before I move this version off BETA

@omenukas
Copy link
Author

omenukas commented Jan 9, 2025

Just noting I did not update the manifest on this so the HA version will be out of sync with the HACS version. Until I go to the full release with V2025.01.03.

Are there any remaining issues with the latest version that need to be addressed before I move this version off BETA

since my programs are completely basic and I only use one rain sensor, and it's winter at the moment, I don't see any problems at the moment.

@patfelst
Copy link

patfelst commented Jan 9, 2025

HA version will be out of sync with the HACS version

Is there a HA version? I thought HACS was the only way to install. Or do you mean the HACS released vs beta are out of sync?

And no other issues, it seems to be working fine for me for the last few days, and it's hot here in Adelaide South Australia.

@omenukas
Copy link
Author

omenukas commented Jan 9, 2025

HA version will be out of sync with the HACS version

Is there a HA version? I thought HACS was the only way to install. Or do you mean the HACS released vs beta are out of sync?

And no other issues, it seems to be working fine for me for the last few days, and it's hot here in Adelaide South Australia.

Need to come to your house to check how the watering works :D :D

@petergridge
Copy link
Owner

The manifest file version number is used here
image
and the GITHUB version is used in HACS

It's wet in Sydney, I am not missing the 47 degrees we had while in Perth though.

Thanks for the confirmation I will finalise the release.

@petergridge
Copy link
Owner

I have a simple system, just four zones. ECO feature for pots, openweathermaphistory for managing the wet days. I built my controller based on an ESP an IO expander and some solid state relays, it cost more for the box it is in than the parts.

I don't use most of the features these have grown as a result of requests over the years. Every time I think there is no more possible requirements people find one and the use cases make sense so I extend the functionality. Every year or so I have done a big release implementing some new skills I have learnt along the way. There are users all over, Europe and North America appear to be the most active. What I really need are people to help with the translations.

@omenukas
Copy link
Author

omenukas commented Jan 9, 2025

I have a simple system, just four zones. ECO feature for pots, openweathermaphistory for managing the wet days. I built my controller based on an ESP an IO expander and some solid state relays, it cost more for the box it is in than the parts.

I don't use most of the features these have grown as a result of requests over the years. Every time I think there is no more possible requirements people find one and the use cases make sense so I extend the functionality. Every year or so I have done a big release implementing some new skills I have learnt along the way. There are users all over, Europe and North America appear to be the most active. What I really need are people to help with the translations.

My native language is Lithuanian, HA is also Lithuanian, but we have already come to terms with the fact that there are no normal translations:)

@omenukas
Copy link
Author

omenukas commented Jan 9, 2025

in terms of functionality, the old version was better for me because I could use the input boolean sensor for the rain sensor. With Node Red, I made the on/off connection of this sensor according to the rain sensor's day and current situation values. Now I can only add one and will have to think about how to use both sensors.

@patfelst
Copy link

patfelst commented Jan 9, 2025

Maybe we should have a "show your system" issue, or github "discussion". Anyway, I'm on a 1030m2 block of land with 8 zones! Zone 1, 2, 3, 7 and 8 are lawn sprinklers, zones 4, 5 and 6 are garden bed drippers.
image

Photo is of zones 1, 2 and 3 (back lawns and garden bed) taken just now.

IMG_0342

I have a Rainbird controller with the WiFi plug in adapter. I integrated it with HA because the performance of the Rainbird iPhone app is terrible. When you first open the app it takes 20-30 sec to connect, but it often just fails. Then once you're in, the app response is bad. I'm pretty sure the problems are with the Rainbird cloud as the wifi signal strength is very good. So now I don't use the app, and leave the Rainbird on manual, everything is controlled from HA using your integration.

I plan to replace with Rainbird with a controller I built based on this relay board which has an integrated ESP32. I installed ESPHome on it to integrate with HA. Have not finished the project due to concerns with the mains wiring side of things (solenoids are 24 VAC).

@petergridge
Copy link
Owner

That looks great, you have a beautiful garden.

I am using a 24vac power supply, and a 24ac to 5vdc conversion to power the esp. I had a board printed to carry most of the parts so it looks neat. THe power side I used off the shelf components. I have had some mechanical relays fail on me in the past so opted for solid state. These work well with AC.

Looking at your board, I don't see any issues, not that I am an electrician, a 12V DC power supply to run the board, and you will be able to reuse the 24VAC from the rainbird for the solenoid side, the 24VAC was commonly used for garden lighting etc in the past less loss over distance I believe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants