I apologize upfront for the newbie questions but I’ve scoured the documentation and I’m still a bit lost.
I’ve added the time_date sensor to my config but now I want to convert the time date format to US. I see that templating is the way to go but I’m absolutely lost on where and how to create this template. I’m not afraid of coding things w/ the appropriate examples, but where do I put the code? How do I replace the native display options with that code?
Is there any good step by step primers on how to do this or something similar that I can study and use as a guide to get started? I’ve found some code snippets but not knowing where to put them or how to interact with them makes the code useless to me.
Basically you need to create a new entity using the Template Sensor integration. In its value_template parameter you enter your template that converts the state of sensor.time_date to whatever format you want. E.g., you might do:
Use the Template Editor on the TEMPLATE tab of the Developer Tools page to work out your template. There are links at the top of that page to the templating documentation.