Hello
I want to add the following code to the configuration.yaml file, unfortunately this error appears: “Invalid config for [sensor.statistics]: [state_characteristic] is an invalid option for [sensor.statistics]. Check: sensor.statistics->state_characteristic. (See ?, line ?).”
I don’t know where the error should be. Do you guys know where the problem is?
Here the code:
sensor:
- platform: statistics
name: "Regenmenge letzte 24 Std"
entity_id: sensor.regen
state_characteristic: total
max_age:
hours: 24`