I am having difficulty creating a sensor that tracks a cover entity despite studying the configuration pages and looking for examples. I only want this b/c I want to see “Open/Closed” on my dashboard similar to door/window sensors. I have a card that list several sensor entities and instead of a simple “Open/Closed” for the covers I get arrows indicating status of cover.
Here is the error I keep getting:
‘Invalid config for [template]: required key not provided @ data[‘trigger’]. Got None’
You’ll get that error message if you are using an older version of Home Assistant (pre 2021.5.0) with that Template Sensor configuration. What version are you using?
And that’s why you are seeing that message. That version only supported Trigger-based Template Sensors in the template configuration. The next version introduced support for non-Trigger-based Template Sensors.
Please consider marking my post above with the Solution tag. It will automatically place a check-mark next to the topic’s title which signals to other users that this topic has been resolved. This helps users find answers to similar questions.