Trying to add an extra sensor into my configuration.yaml file, and cannot seem to get my configuration right.
This is the post i’m following:
While editing it gives me a green tick, but when i check my configuration, i get the following issue:
Invalid config for [sensor]: required key not provided @ data[‘platform’]. Got None. (See /config/configuration.yaml, line 17).
Invalid config for [sensor]: required key not provided @ data[‘platform’]. Got None. (See /config/configuration.yaml, line 17).
Here is my Code im using:
# Loads default set of integrations. Do not remove.
default_config:
frontend:
themes: !include_dir_merge_named themes
# Text to speech
tts:
- platform: google_translate
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
sensor:
- platfrom: integration
source: sensor.pc191ha_2_power
name: 1 Power
unit_prefix: k
round: 2
- platfrom: integration
source: sensor.pc191ha_3_power
name: 2 Power
unit_prefix: k
round: 2
I’m sure its something obvious, but I’m still getting used to HA. Thank you all for any help.
Sam