lukevink / hass-config-lajv

Home Assistant Configuration

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

All Devices : Cannot add property useTemperature, object is not extensible

JangoBritt opened this issue · comments

Hey Luke, I really love your dashboards... and I'm trying to duplicate using your code.

Obviously, I wanted to start by slotting in my devices, and then customising once I have everything working well.

On the All Devices pages (lovelace/1) I get a big red error screen

Cannot add property useTemperature, object is not extensible
enableColumns: true
popup:
  brightnessHeight: 350px
  brightnessWidth: 130px
  scenesInARow: 2
  switchHeight: 300px
  switchWidth: 110px
  type: 'custom:light-popup-card'
rows:
  - columns:
      - column: 1
        entities:
          - entities:
              - entity: light.olivia_light
                icon: 'mdi:ceiling-light'
              - entity: light.dollhouse
              - entity: light.olivia_lamp
                icon: 'mdi:lamp'
            title: Olivia
        tileOnRow: 2
      - column: 3
        entities:
          - entities:
              - entity: light.bedroom_light_1
                icon: 'mdi:desk-lamp'
              - entity: light.bedroom_light_1
                icon: 'mdi:ceiling-light'
            title: Bedroom
        tileOnRow: 1
      - column: 3
        entities:
          - entities:
              - entity: light.office_light_1
                icon: 'mdi:ceiling-light'
              - entity: light.office_lamp
                icon: 'mdi:coach-lamp'
            title: Office
        tileOnRow: 1
      - column: 4
        entities:
          - entities:
              - entity: light.downstairs_hallway_light
                icon: 'mdi:track-light'
            title: Downstairs Hallway
        tileOnRow: 1
    row: 1
  - columns:
      - column: 1
        entities:
          - entities:
              - entity: light.kitchen_phoenix_1
              - entity: light.kitchen_phoenix_2
              - entity: light.kitchen_phoenix_3
              - entity: light.kitchen_phoenix_4
            title: Kitchen
        tileOnRow: 2
      - column: 2
        entities:
          - entities:
              - entity: light.back_door
                icon: 'mdi:lava-lamp'
              - entity: light.french_doors_1
                icon: 'mdi:lava-lamp'
            title: Roof
        tileOnRow: 1
      - column: 3
        entities:
          - entities:
              - entity: binary_sensor.downstairs_hallway_sensor_motion
                icon: 'mdi:walk'
            title: Motion
        tileOnRow: 1
      - column: 4
        entities:
          - entities:
              - entity: group.all_lights
                icon: 'mdi:home'
            title: All Lights
        tileOnRow: 1
    row: 2
statePositionTop: true
style:
  height: 87%
  left: 62%
  top: 50%
  width: 68%
type: 'custom:homekit-card'

Hey, also posted on the hass community. Another question - what version of hass io are you running?

0.107.6

I tried updating the HomeKit-panel-card, as with the other issue, but still no joy

Hey Jango,

So I will upload my latest code soon. With the upgrade to the latest hassio there was a series of issues with my config. I’m going to guess it had something to do with the versions of all the cards used that need to be updated also. (I had the same issues when I upgraded)

I will try to upload my latest config asap, just a bit overwhelmed with work during these viral times ;-)

For now try updating all cards used here? (Not just the HomeKit card)

yea, no doubt.

Same situation here. The word "viral" is taking its original meaning back by storm, isn't it.

Haha yep! Ok so I uploaded my latest config. Tbh I can’t remember all the details I changed. I went through each issue one by one when I upgraded. That version caused a lot of changes. Number one thing is to make sure all the custom cards are the latest versions. Let me know if that solves things?

cool, thanks. I'm going to give this a go now... do I need to do much more than update the JS folder?

hoping I won't need to make changes to many of the yaml files with my config in

I'm quite new to Hassio. Had it for a while, mainly to pull some kit through to HomeKit, but if I can get this looking as good as yours, then I'll want to use this for my dashboards instead of HomeKit.

Yes! That should do it.

You will need to also copy and paste “sources” from the top of my UI-Lovelace yaml file which now sets the versions for each js file. If you don’t change the v number your browser won’t refresh the JavaScript files.

that fixed it!

weirdly, when I first refreshed, it didn't show up.

Only when I started futzing around with the entities in the card itself, did it show any entities in the Home card.

I uncommented all of the ones I'd hidden, and they all started to show up.

got a new error now, on the floorplan card

Custom element doesn't exist: hui-picture-elements-card.

Regarding the error with Custom element doesn't exist. I had the exact problem after i updated hassio to 107. I searched on the internet and found out that now the resources have to be moved in configuration.yaml from lovelace and also use a preload plugin, or something like that. You can find it in HACS.
Honestly, it didn't work for me all the time, and because of this, I restored a snapshot of the system with 106 fw.
Try using the preload plugin maybe you are lucky.

Im getting the same issue on the latest version... :( . Looking into this its a little complicated. https://community.home-assistant.io/t/picture-elements-card-not-showing-in-0-107/179471

There are some solutions but I havent managed to get them to work for me either.
https://community.home-assistant.io/t/0-107-multiple-lovelace-dashboards-adds-helpers-new-media-player-card/179393/77

Will let you know if I can fix this. For now I assume you need to "preload" the hui-picture-elements-card

Ok so I solved it in a much easier way :)

Change:
type: 'custom:hui-picture-elements-card'

To:
type: picture-elements

Im not sure why I had it as hui, I think it used to be required by the config card.