I had created a template for a waste event some time ago that worked until recently. I do not know since when it ceased to work since it is for green waste which is not active in winter.
I tried everything I can imagine to get it work. But it doesn’t. So I looked around in the forum here and found a template (Template Sensor Configuration for Calendar Events - #10 by Nickduino) which I adopted since it seems better than mine. But it does nothing at all. Zero. No error, no sensor creation. I wonder what I do wrong. Any idea?
I check also with actions to verify if events are there. There are two:
Thanks for the hints. I have changed the template and checked it also in yamllint.com.
Still does absolutely nothing at all. I check for the sensors, after restart of HA, in
1 - Developer Tools - States
2 - Settings - Devices & Services - Entities
Nothing there.
Still a syntax error here. It may seem valid yaml (though I highly doubt that), but it isn’t a valid template. Did you ever check the logs to see the errors that come from loading templates, and or press the check config button before you restart HA or reload templates?
Also, I’m not sure if the variables you declare are visible to the sensors below. The response variable is, but that is a special construct, designed to prevent exactly this problem. Variables typically do not persist outside the block they are defined in.
Unless your configuration.yaml has been setup to explicitly load template entities from that folder, putting files in there isn’t going to do anything. That is not a part of the default configuration.
Unless I am missing something that is not the same thing? That part of the documentation describe a variables block on the same level as action, trigger, sensor, etc., not one within the action block. The way to get data out of the action block ought to be stop with a response_variable.
Also, for the empiricists, I just checked my 10 sensors that assign variables in the action block and use them in the entity templates and all are functioning as expected on 2025.1.4.
Hi Edwin, yes I checked some logs (Logbook in the main menu, Core, Supervisor in the Settings/System/Logs). I am nit sure where exactly I should check - tehre are many logs where I do not know what they are for, eg, the supervisor, the host log and more.
while the templates there may be included in some way, this part of the config is not loading those templates. It is saying these folders are trusted, not loaded.