I am having what seems to me to be a unique issue. My sensors stopped working a few days ago and I’m not sure why. I have around 20 Wyze contact sensors and a few Tuya wifi switches that I had setup and working previously. The sensors say unavailable under the entities.
I have Home Assistant installed on a RPI4. I am running HA 0.109.3 with Supervisor 220.
I am getting an error when checking my configuration:
Invalid config for [sensor]: required key not provided @ data[‘platform’]. Got None. (See /config/configuration.yaml, line 10).
Here is lines 10-12 in my config which is weird also because the sensor.yaml line is line 11.
scene: !include scenes.yaml
sensor: !include sensor.yaml
frontend: !include frontend.yaml
Here is my sensor.yaml contents:
#Sensors
smartweather:
- platform: smartweather
station_id: 20026538
api_key:
##################################################
#Wyze
wyzeapi:
- platform: wyzeapi
username:
password:
#logger:
# default: warning
# logs:
# custom_components.wyzeapi: debug
light:
- platform: wyzeapi
username:
password:
switch:
- platform: wyzeapi
username:
password:
#wyzeapi:
#username: !secret wyze_user
#password: !secret
##################################################
tuya:
- platform: tuya
username:
password:
country_code: 1
##################################################
weather:
- platform: darksky
api_key:
###################################################
darksky:
- platform: darksky
api_key:
forecast:
- 0
hourly_forecast:
- 0
- 1
monitored_conditions:
- summary
- icon
- temperature
####################################################
I have redacted the user/pass/api info.
It seems like Home Assistant is not seeing my sensors.yaml file at all.
My goal is to get my sensors back up and running and alleviate the invalid config. Any help is much appreciated!