I have a zigbee device that publishes certain event data that is not accessible through the sensors exposed through ZHA.
I can listen to “zha_events” in the developer section and see the data coming in as an event. I want to take that data parse it and feed a template sensor attributes with it
This thread has been invaluable to me setting up my Aqara vibration sensors for something very similar, so thank you for starting it now a year+ later! I have it running almost exactly as you do - but I’m wondering where is the best place to put it these kinds of “Trigger Based Template Sensors”?
The first line of the YAML you provide is template: - but I already have a template: option in my configuration.yaml and HA is throwing an error that I can’t have duplicates.
My current template: attribute uses the !include template.yaml method so that I could put all my existing templates into a separate file. But when I try to do the same with this, it doesn’t work.
Is this an automation and maybe I should add it to automation.yaml? I also have a sensors.yaml for custom sensors? Appreciate any thoughts or ideas on how I can keep this template outside of the main configuration and also have the ability to create new ones.