Lovelace crashing!

So, I’ve just setup and configured my weather station and when graphing and displaying the data, Lovelace just keep crashing.

Any idea what this could be? Card types in use are

Any ideas?

compass-card
mini-graph-card
horizon-card
weather-card
webpage embed of windy.com

I’ve also noticed sometimes the graph data takes ages to load.

Thanks

My esphome config for weather station.

esphome:
  name: weather-station
  friendly_name: weather-station
  

esp32:
  board: esp32dev
  framework:
    type: arduino



# Enable logging
logger:

# Enable Home Assistant API
api:

i2c:
  sda: 21
  scl: 22
  scan: True


wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
  fast_connect: true

  # Optional manual IP
  manual_ip:
    static_ip: 172.16.102.17
    gateway: 172.16.102.1
    subnet: 255.255.255.224


sensor:


####Wifi Signal Start####
  - platform: wifi_signal # Reports the WiFi signal strength/RSSI in dB
    name: "WiFi Signal dB"
    id: wifi_signal_db
    update_interval: 60s
    entity_category: "diagnostic"

  - platform: copy # Reports the WiFi signal strength in %
    source_id: wifi_signal_db
    name: "WiFi Signal Percent"
    filters:
      - lambda: return min(max(2 * (x + 100.0), 0.0), 100.0);
    unit_of_measurement: "Signal %"
    entity_category: "diagnostic"
####Wifi Signal END###

####Tempreature & Humidity Start####
  - platform: sht3xd
    temperature:
      name: "Temperature"
    humidity:
      name: "Humidity"
    address: 0x44
    update_interval: 60s
####Tempreature & Humidity END####

####Rainfall Start####
  - platform: pulse_counter
    name: 'Rainfall'
    id: rain_gauge
    # pin ADC1_1
    pin: 
      number: 32
      inverted: true
      mode: INPUT_PULLUP
    internal_filter: 13us
    update_interval: 60s
    count_mode:
      rising_edge: DISABLE
      falling_edge: INCREMENT
    unit_of_measurement: "mm"
    icon: "mdi:water"
    filters:
      - multiply: 10.0000
    total:
      unit_of_measurement: 'mm'
      name: 'Rainfall Total'
      filters:
      - multiply: 10.0000

  - platform: integration
    name: "${friendly_name} rainfall per min"
    id: rain_per_min
    time_unit: min
    unit_of_measurement: 'mm'
    icon: 'mdi:weather-rainy'
    sensor: rain_gauge

  - platform: total_daily_energy
    name: "${friendly_name} total daily rain"
    power_id: rain_gauge
    unit_of_measurement: 'mm'
    icon: 'mdi:weather-rainy'
    # x60 To convert to aggregated rain amount
    filters:
      - multiply: 60
####Rainfall End####

####Sun Start####
  - platform: sun
    name: "Sun elevation"
    type: elevation
    update_interval: 120s

  - platform: sun
    name: "Sun azimuth"
    type: azimuth
    update_interval: 120s
####Sun End####

####Wind Speed Start####
  - platform: pulse_meter
    pin:
      number: GPIO33
      mode: INPUT
    id: wind_speed
    unit_of_measurement: 'knots'
    name: "Wind Speed"
    icon: 'mdi:weather-windy'
    internal_filter: 13us
    timeout: 5s
    filters:
      - multiply: 0.005560619
      - sliding_window_moving_average:
          window_size: 20
          send_every: 60

  - platform: copy
    name: 'Wind Speed Average'
    icon: 'mdi:weather-windy'
    id: wind_speed_avg
    source_id: wind_speed
    unit_of_measurement: 'knots'
    filters:
      - throttle_average: 5s
####Wind Speed END####

####Wind Direction Start####
  - platform: mlx90393
    address: 0x0c
    id: mlx
    x_axis:
      name: "mlx_x"
      id: "mlx_x"
    y_axis:
      name: "mlx_y"
      id: "mlx_y"
    z_axis:
      name: "mlx_z"
    update_interval: 60s


  - platform: template
    id: 'wind_direction'
    name: 'Wind Direction'
    update_interval: 2s
    lambda: |-
      float w1 = id(mlx_x).state;  // magnetometer X
      float w0 = id(mlx_y).state;  // magnetometer Y
      float w = atan2(w0, w1);     // arctangent2 = radians
      w = (w * 180) / M_PI;    // radians to degrees
      w += 19.50;              // magnetic declination
      w += 68.00;              // seems to be off by 90
      if ( w < 0 ) w += 360.0; // adjust for negatives
      return w;
####END Wind Direction####

####FAN Switch Start####
switch:
  - platform: gpio
    pin: 25
    name: "Fan"
    inverted: True
####Fan Switch END####

####Status LED Start####
light:
  - platform: neopixelbus
    type: GRB
    variant: WS2811
    pin: GPIO23
    num_leds: 1
    name: "Status LED"
####Status LED END####

####Rain Reset Timer Start####
interval:
  - interval: 60s
    then:
      - sensor.integration.reset: rain_per_min
####Rain Reset Timer END####

####Time Start####
time:
  - platform: homeassistant
####Time End####

text_sensor:
  - platform: sun
    name: Sun Next Sunrise
    type: sunrise
  - platform: sun
    name: Sun Next Sunset
    type: sunset

a breif esphome log output.

[15:16:18][D][sensor:094]: 'Wind Direction': Sending state 270.57428  with 1 decimals of accuracy
[15:16:19][D][sensor:094]: 'Wind Speed Average': Sending state nan knots with 2 decimals of accuracy
[15:16:20][D][sensor:094]: 'Wind Direction': Sending state 270.57428  with 1 decimals of accuracy
[15:16:22][D][sensor:094]: 'Wind Direction': Sending state 270.57428  with 1 decimals of accuracy
[15:16:24][D][sensor:094]: 'Wind Direction': Sending state 270.57428  with 1 decimals of accuracy
[15:16:24][D][sensor:094]: 'Wind Speed Average': Sending state nan knots with 2 decimals of accuracy
[15:16:26][D][sensor:094]: 'Wind Direction': Sending state 270.57428  with 1 decimals of accuracy
[15:16:28][D][sensor:094]: 'Wind Direction': Sending state 270.57428  with 1 decimals of accuracy
[15:16:29][D][sensor:094]: 'Wind Speed Average': Sending state nan knots with 2 decimals of accuracy
[15:16:30][D][sensor:094]: 'Wind Direction': Sending state 270.57428  with 1 decimals of accuracy
[15:16:32][D][sensor:094]: 'Wind Direction': Sending state 270.57428  with 1 decimals of accuracy
[15:16:33][D][mlx90393:070]: received -3590.719971 -193.059998 -13588.000000
[15:16:33][D][sensor:094]: 'mlx_x': Sending state -3590.71997 µT with 0 decimals of accuracy
[15:16:33][D][sensor:094]: 'mlx_y': Sending state -193.06000 µT with 0 decimals of accuracy
[15:16:33][D][sensor:094]: 'mlx_z': Sending state -13588.00000 µT with 0 decimals of accuracy
[15:16:33][W][component:204]: Component mlx90393.sensor took a long time for an operation (0.10 s).
[15:16:33][W][component:205]: Components should block for at most 20-30ms.
[15:16:34][D][sensor:094]: 'Wind Direction': Sending state 270.57764  with 1 decimals of accuracy
[15:16:34][D][sensor:094]: 'Wind Speed Average': Sending state nan knots with 2 decimals of accuracy
[15:16:34][D][sensor:094]: 'WiFi Signal dB': Sending state -73.00000 dBm with 0 decimals of accuracy
[15:16:34][D][sensor:094]: 'WiFi Signal Percent': Sending state 54.00000 Signal % with 0 decimals of accuracy
[15:16:35][D][esp32.preferences:114]: Saving 1 preferences to flash...
[15:16:35][D][esp32.preferences:143]: Saving 1 preferences to flash: 1 cached, 0 written, 0 failed
[15:16:36][D][sensor:094]: 'Wind Direction': Sending state 270.57764  with 1 decimals of accuracy
[15:16:38][D][sensor:094]: 'Wind Direction': Sending state 270.57764  with 1 decimals of accuracy
[15:16:39][D][sensor:094]: 'Wind Speed Average': Sending state nan knots with 2 decimals of accuracy
[15:16:40][D][sensor:094]: 'Wind Direction': Sending state 270.57764  with 1 decimals of accuracy
[15:16:42][D][sht3xd:060]: Got temperature=16.88°C humidity=93.59%
[15:16:42][D][sensor:094]: 'Temperature': Sending state 16.87953 °C with 1 decimals of accuracy
[15:16:42][D][sensor:094]: 'Humidity': Sending state 93.58968 % with 1 decimals of accuracy
[15:16:42][D][sensor:094]: 'Wind Direction': Sending state 270.57764  with 1 decimals of accuracy
[15:16:43][D][pulse_counter:174]: 'Rainfall': Retrieved counter: 0.00 pulses/min
[15:16:43][D][sensor:094]: 'Rainfall': Sending state 0.00000 mm with 2 decimals of accuracy
[15:16:43][D][sensor:094]: '${friendly_name} rainfall per min': Sending state 0.00000 mm with 4 decimals of accuracy
[15:16:44][D][sensor:094]: '${friendly_name} total daily rain': Sending state 80.00018 mm with 4 decimals of accuracy
[15:16:44][D][pulse_counter:180]: 'Rainfall': Total : 0 pulses
[15:16:44][D][sensor:094]: 'Rainfall Total': Sending state 0.00000 mm with 0 decimals of accuracy
[15:16:44][W][component:204]: Component pulse_counter.sensor took a long time for an operation (0.06 s).
[15:16:44][W][component:205]: Components should block for at most 20-30ms.
[15:16:44][D][sensor:094]: 'Wind Direction': Sending state 270.57764  with 1 decimals of accuracy
[15:16:44][D][sensor:094]: 'Wind Speed Average': Sending state nan knots with 2 decimals of accuracy
[15:16:45][D][sensor:094]: '${friendly_name} rainfall per min': Sending state 0.00000 mm with 4 decimals of accuracy
[15:16:46][D][sensor:094]: 'Wind Direction': Sending state 270.57764  with 1 decimals of accuracy
[15:16:48][D][sensor:094]: 'Wind Direction': Sending state 270.57764  with 1 decimals of accuracy
[15:16:49][D][sensor:094]: 'Wind Speed Average': Sending state nan knots with 2 decimals of accuracy
[15:16:50][D][sensor:094]: 'Wind Direction': Sending state 270.57764  with 1 decimals of accuracy
[15:16:51][D][text_sensor:064]: 'Sun Next Sunrise': Sending state '12:36:57'
[15:16:52][D][sensor:094]: 'Wind Direction': Sending state 270.57764  with 1 decimals of accuracy
[15:16:54][D][text_sensor:064]: 'Sun Next Sunset': Sending state '01:21:30'
[15:16:54][D][sensor:094]: 'Wind Direction': Sending state 270.57764  with 1 decimals of accuracy
[15:16:54][D][sensor:094]: 'Wind Speed Average': Sending state nan knots with 2 decimals of accuracy

Move cards off the page one at a time. When you figure out which one it is let us know.