I’ve configured my sensors.yaml to look like this:
Rebooted/cleared cache multiple times, but keep getting this error message:
http://192.168.1.214:8123/local/custom_ui/dark-sky-weather-card.js:17:43 Uncaught TypeError: Cannot read property ‘unit_system’ of undefined
for lovelace, in the old platform, nothing loads on the top
this is my lovelace file
resources:
- url: /local/custom-lovelace/upcoming-media-card/upcoming-media-card.js?v=0.2.2
type: js
- url: /local/custom_ui/ecobee-card.js
type: js
- url: /local/card-modder.js
type: module
- url: /local/custom_ui/dark-sky-weather-card.js
type: js
name:
views:
- id: 0 # Automatically created id
icon: mdi:castle
cards:
- id: 1 # Automatically created id
type: horizontal-stack
cards:
#################################################################
# #
# Remotes #
# #
#################################################################
- type: vertical-stack
cards:
- type: custom:card-modder
card:
type: picture-entity
entity: remote.living_room
tap_action: toggle
image: /local/lovelace/things/media2.jpg
style:
border-radius: 10px
border: solid 1px rgba(100,100,100,0.3)
box-shadow: 3px 3px rgba(0,0,0,0.4)
- type: custom:card-modder
card:
type: picture-entity
entity: remote.downstairs
tap_action: toggle
image: /local/lovelace/things/media3.jpg
style:
border-radius: 10px
border: solid 1px rgba(100,100,100,0.3)
box-shadow: 3px 3px rgba(0,0,0,0.4)
- id: 2
type: horizontal-stack
cards:
- type: custom:ecobee-card
entity: climate.thermostat
#################################################################
# #
# Weather #
# #
#################################################################
- id: 3
type: horizontal-stack
cards:
- type: custom:dark-sky-weather-card
entity_sun: sun.sun
entity_daily_summary: sensor.dark_sky_daily_summary
entity_current_conditions: sensor.dark_sky_icon
entity_humidity: sensor.dark_sky_humidity
entity_pressure: sensor.dark_sky_pressure
entity_temperature: sensor.dark_sky_temperature
entity_visibility: sensor.dark_sky_visibility
entity_wind_bearing: sensor.dark_sky_wind_bearing
entity_wind_speed: sensor.dark_sky_wind_speed
entity_forecast_high_temp_1: sensor.dark_sky_daytime_high_temperature_1
entity_forecast_high_temp_2: sensor.dark_sky_daytime_high_temperature_2
entity_forecast_high_temp_3: sensor.dark_sky_daytime_high_temperature_3
entity_forecast_high_temp_4: sensor.dark_sky_daytime_high_temperature_4
entity_forecast_high_temp_5: sensor.dark_sky_daytime_high_temperature_5
entity_forecast_low_temp_1: sensor.dark_sky_overnight_low_temperature
entity_forecast_low_temp_2: sensor.dark_sky_overnight_low_temperature_1
entity_forecast_low_temp_3: sensor.dark_sky_overnight_low_temperature_2
entity_forecast_low_temp_4: sensor.dark_sky_overnight_low_temperature_3
entity_forecast_low_temp_5: sensor.dark_sky_overnight_low_temperature_4
entity_forecast_icon_1: sensor.dark_sky_icon_1
entity_forecast_icon_2: sensor.dark_sky_icon_2
entity_forecast_icon_3: sensor.dark_sky_icon_3
entity_forecast_icon_4: sensor.dark_sky_icon_4
entity_forecast_icon_5: sensor.dark_sky_icon_5