jimz011 / homekit-infused

Homekit Infused 5 2023
https://jimz011.github.io/homekit-infused/
Other
877 stars 137 forks source link

custom element doesn't exist #152

Closed p51d8102 closed 2 years ago

p51d8102 commented 2 years ago

All of my light pop ups throw the error that the custom element doesn't exist. I have tried reinstalling all of the components thru HACS with no luck. What am I missing? Even the binary sensor pop ups have an error above the history showing that the custom element doesn't exist

jimz011 commented 2 years ago

Go to your resources tab and see if the resources were loaded.

For a video about this check https://youtu.be/MjTU25K-NkI

The part you are looking for starts at 05.50

p51d8102 commented 2 years ago

They are all there with a ?hacstag=####### parameter after them. Should I delete them all and try redownloading? It's just the cards that are frontend repositories that need the resources correct?

jimz011 commented 2 years ago

Yes only the frontend ones. But hacsfiles is good. So leave that.

Try opening it in an incognito window. If that works, then clear your cache.

p51d8102 commented 2 years ago

Same result in incognito window. I tried Chrome and Edge after clearing the cache with the same results. I get the errors in the iOS app as well

jimz011 commented 2 years ago

Do you have other dashboards installed? It seems that your browser isn't loading up the resources. I have some other closed issues that address this, but they all got it fixed by reinstalling everything.

Not sure why you are not able to see them, unless you run an old iOS version (did you test it on a desktop for example? Or did you just try it on your phone?).

Note that for this to work properly a minimum of iOS 14 is required, this is because HKI uses css values that were not available yet pre iOS 14. If you are using iOS 9.3.5 (which for some devices is the last iOS available) then well you are entirely out of luck since iOS 9 does not support ES6 which most HACS addons are using.

p51d8102 commented 2 years ago

So I removed all of the front end and integration components listed on the installation instructions and reinstalled them 1 by 1. I verified all of the resources are there and I still get the same error. I tried using Chrome on my iPad & laptop and the iOS app on the phone after clearing the cache on each device with the same results.

jimz011 commented 2 years ago

At this point I would say share your configuration.yaml file (you can do it over discord if you prefer to do it privately)

jimz011 commented 2 years ago

hm wait, did you install all of the addons? or just the hacs addons from the installation page?

jimz011 commented 2 years ago

As in, did you also install these?

image

p51d8102 commented 2 years ago

That was the problem...I did not have the AddOn Button components installed

jimz011 commented 2 years ago

đź‘Ť

p51d8102 commented 2 years ago

Jimmy,

I have a separate question/feature request if necessary. I have 3 Nest thermostats and I have had to modify the hki_sensors.yaml file b/c of the state that Nest reports back and only wanting the counter to show me the HVAC units that are actually running (heating or cooling). Of course whenever I do a HKI update it overwrites this file in the packaqes directory. Just wanted to get your thoughts/ideas so that Nest users could benefit from your dashboard. Great product BTW!

Steve

This is the yaml that I changed:

  current_climate_entities_on:

friendly_name: All Climate Entities Currently On

value_template: >-

{% set heat =

expand('group.all_climate_entities')|selectattr('state','eq','heat')|list|count %}

{% set cool =

expand('group.all_climate_entities')|selectattr('state','eq','cool')|list|count %}

{% set heat_cool =

expand('group.all_climate_entities')|selectattr('state','eq','heat_cool')|list|count %}

{% set total = heat + cool + heat_cool %}

{{ total }}

    friendly_name: All Climate Entities Currently On
    value_template: >-
      {% set heat = (is_state_attr('climate.downstairs', 'hvac_action',

'heating')) + (is_state_attr('climate.front', 'hvac_action', 'heating')) + (is_state_attr('climate.back', 'hvac_action', 'heating')) %} {% set cool = (is_state_attr('climate.downstairs', 'hvac_action', 'cooling')) + (is_state_attr('climate.front', 'hvac_action', 'cooling')) + (is_state_attr('climate.back', 'hvac_action', 'cooling')) %} {% set total = heat + cool %} {{ total }}

On Sat, Apr 23, 2022 at 6:50 PM Jimmy Schings @.***> wrote:

đź‘Ť

— Reply to this email directly, view it on GitHub https://github.com/jimz011/homekit-infused/issues/152#issuecomment-1107667082, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASLIHHPROBRCXZEUX7VDMPTVGSEEHANCNFSM5UDFWBUA . You are receiving this because you authored the thread.Message ID: @.***>

jimz011 commented 2 years ago

Try to use code blocks in the future:

      current_climate_entities_on:
#        friendly_name: All Climate Entities Currently On
#        value_template: >-
#          {% set heat =
expand('group.all_climate_entities')|selectattr('state','eq','heat')|list|count
%}
#          {% set cool =
expand('group.all_climate_entities')|selectattr('state','eq','cool')|list|count
%}
#          {% set heat_cool =
expand('group.all_climate_entities')|selectattr('state','eq','heat_cool')|list|count
%}
#          {% set total = heat + cool + heat_cool %}
#          {{ total }}
        friendly_name: All Climate Entities Currently On
        value_template: >-
          {% set heat = (is_state_attr('climate.downstairs', 'hvac_action',
'heating')) + (is_state_attr('climate.front', 'hvac_action', 'heating')) +
(is_state_attr('climate.back', 'hvac_action', 'heating')) %}
          {% set cool = (is_state_attr('climate.downstairs', 'hvac_action',
'cooling')) + (is_state_attr('climate.front', 'hvac_action', 'cooling')) +
(is_state_attr('climate.back', 'hvac_action', 'cooling')) %}
          {% set total = heat + cool %}
          {{ total }}
jimz011 commented 2 years ago
like: this

image

p51d8102 commented 2 years ago

Jimmy,

My iOS is 15.4 so that shouldn’t be the issue. I don’t have any other dashboards installed so let me wipe out all of the components and reinstall them later today. I’ll let you know asap.

Thanks

Steve

On Fri, Apr 22, 2022 at 9:08 PM Jimmy Schings @.***> wrote:

Do you have other dashboards installed? It seems that your browser isn't loading up the resources. I have some other closed issues that address this, but they all got it fixed by reinstalling everything.

Not sure why you are not able to see them, unless you run an old iOS version (did you test it on a desktop for example? Or did you just try it on your phone?).

Note that for this to work properly a minimum of iOS 14 is required, this is because HKI uses css values that were not available yet pre iOS 14. If you are using iOS 9.3.5 (which for some devices is the last iOS available) then well you are entirely out of luck since iOS 9 does not support ES6 which most HACS addons are using.

— Reply to this email directly, view it on GitHub https://github.com/jimz011/homekit-infused/issues/152#issuecomment-1107226513, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASLIHHJQ4YZB2KJYXLVY7HDVGNLTFANCNFSM5UDFWBUA . You are receiving this because you authored the thread.Message ID: @.***>

jimz011 commented 2 years ago

Yes just the frontend ones. But don't delete them. They are fine.

Try an incognito window. If that works, then clear your cache.

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: p51d8102 @.> Sent: Friday, April 22, 2022 10:05:28 PM To: jimz011/homekit-infused @.> Cc: Jimmy Schings @.>; Comment @.> Subject: Re: [jimz011/homekit-infused] custom element doesn't exist (Issue #152)

They are all there with a ?hacstag=####### parameter after them. Should I delete them all and try redownloading? It's just the cards that are frontend repositories that need the resources correct?

— Reply to this email directly, view it on GitHubhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fjimz011%2Fhomekit-infused%2Fissues%2F152%23issuecomment-1106820631&data=05%7C01%7C%7Cc814a47c17214dec059008da249b733f%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637862547317553786%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=utvr2e2Hx5H55oKT9vhOv3fDLpxkJl%2B6VFenSJ%2FhjW8%3D&reserved=0, or unsubscribehttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FALG6BXSEYQQGSFOUZ23L43DVGMBARANCNFSM5UDFWBUA&data=05%7C01%7C%7Cc814a47c17214dec059008da249b733f%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637862547317553786%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=xMp%2FgM1zcmSnp7QHmoXIpjMeu%2BmLR3b8G6caOp0Oudw%3D&reserved=0. You are receiving this because you commented.Message ID: @.***>

p51d8102 commented 2 years ago

I just installed the HACS addons...looks like I need to install those others b/c those names relate to my errors. How did I miss that?

On Sat, Apr 23, 2022 at 3:24 PM Jimmy Schings @.***> wrote:

hm wait, did you install all of the addons? or just the hacs addons from the installation page?

— Reply to this email directly, view it on GitHub https://github.com/jimz011/homekit-infused/issues/152#issuecomment-1107643397, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASLIHHKEU4W5EOGGQQB634DVGRL6HANCNFSM5UDFWBUA . You are receiving this because you authored the thread.Message ID: @.***>