Xorfor / HA-PWS

Capture data directly from your PWS into Home Assistant
GNU General Public License v3.0
25 stars 0 forks source link

Invalid config for [template]: expected SensorDeviceClass #5

Closed pjeutr closed 1 year ago

pjeutr commented 1 year ago

Using Homeassistant 2023.8.4 on Docker

After pasting the configuration.yaml, following error shows in the log

2023-09-07 11:17:23.141 ERROR (MainThread) [homeassistant.config] Invalid config for [template]: expected SensorDeviceClass or one of 'date', 'enum', 'timestamp', 'apparent_power', 'aqi', 'atmospheric_pressure', 'battery', 'carbon_monoxide', 'carbon_dioxide', 'current', 'data_rate', 'data_size', 'distance', 'duration', 'energy', 'energy_storage', 'frequency', 'gas', 'humidity', 'illuminance', 'irradiance', 'moisture', 'monetary', 'nitrogen_dioxide', 'nitrogen_monoxide', 'nitrous_oxide', 'ozone', 'ph', 'pm1', 'pm10', 'pm25', 'power_factor', 'power', 'precipitation', 'precipitation_intensity', 'pressure', 'reactive_power', 'signal_strength', 'sound_pressure', 'speed', 'sulphur_dioxide', 'temperature', 'volatile_organic_compounds', 'volatile_organic_compounds_parts', 'voltage', 'volume', 'volume_storage', 'water', 'weight', 'wind_speed' for dictionary value @ data['sensor'][4]['device_class']. Got 'pressuregg'. (See /config/configuration.yaml, line 24). 

Am I missing something? Or has configuration changed.

pjeutr commented 1 year ago

Arghh python, must have been some indentation issue. After wget your raw configuration file it is working!