I’ve been trying to create two template-based binary sensors; one for Halloween; and one for Christmas. If the current month/day date falls within either time frame, the sensor is supposed to be on; otherwise it’s off.
If I put them in my binary_sensors directory (binary_sensor: !include_dir_list ../entities/binary_sensors), HA complains that it’s missing property “entities”. If I move them to the Templates directory, I can restart HA, but they don’t show up in developer tools.
Any idea on how to get these to work properly? The goal is to get these working, then expand on them for future automations. Code is below. I used the thread here as a guideline.
Thanks. I changed them to true and false but it’s still complaining that it’s missing entities. Reloading the configuration also produces this error:
Cannot quick reload all YAML configurations because the configuration is not valid: Invalid config for [binary_sensor]: required key not provided @ data[‘platform’]. Got None. (See ?, line ?). Invalid config for [binary_sensor]: required key not provided @ data[‘platform’]. Got None. (See ?, line ?).
template: is an integration it does not go under binary_sensor: (another seperate integration). It must have its own place in your configuration.yaml file: