Invalid config for [sensor]: required key not provided @ data['platform']. Got None. (See /config/configuration.yaml, line 4)

Hello,

I have : Invalid config for [sensor]: required key not provided @ data[‘platform’]. Got None. (See /config/configuration.yaml, line 4).

But I don’t understand the problem :slight_smile: Idea ? Thanks

(X change for security/privacy).


# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:
sensor:
  - platform: airthings_cloud
    username: XXXXXX
    password: XXXXXX
  - platform: waze_travel_time
    origin: XX
    destination: XX
    region: "EU"
    vehicle_type: car  # vehicle type used for routing
  - platform: nmbs
    name: NMBS-BRUXELLES
    station_from: "Namur"
    station_to: "Bruxelles-Nord"
    show_on_map: true
    station_live: "Namur"
    exclude_vias: true
  - platform: cryptoinfo
    cryptocurrency_name: "ethereum"
    currency_name: "eur"
    multiplier: 1
    update_frequency: 15
  - platform: cryptoinfo
    cryptocurrency_name: "bitcoin"
    currency_name: "eur"
    multiplier: 1
    update_frequency: 15
  - platform: cryptoinfo
    cryptocurrency_name: "solana"
    currency_name: "eur"
    multiplier: 1
    update_frequency: 15
  - type: "custom:clock-card"
    time_zone: "Belgium/Brussels" #OPTIONAL
    size: 100 #OPTIONAL
    font_size: 100 #OPTIONAL
    disable_seconds: true #OPTIONAL
    caption: "Corporate"
    display_date: "MM/DD/YY"
    theme:
    background: black
    hands: blue
    numbers: white
    border: white


frontend:
  themes: !include_dir_merge_named themes

# Text to speech
tts:
  - platform: google_translate

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

This is the problem, I think. That’s part of a lovelace config, but not a sensor.

Thanks for your response, so I have to change in Lovelace and delete in configuration.yaml ?

Thanks

It’s not a sensor, so remove it from the sensor: section.

You can define your lovelace frontend via UI or in yaml mode. You find further information on that here:

There you can define your clock-card.

1 Like

Top thanks !