Need help with complicated templates for a dumb fireplace!

I am attempting to make a dumb fireplace smart. I currently have the fireplace plugged into a smart plug(for energy monitoring) and put a IR blaster inside it to make it smart. I’m wanting to make a device in HA for this that has an on/off switch(a cover that reads the energy monitoring to know if its on and off because the remote command is a toggle), a timer entity(when pressed, turns the fireplace on, and then turns heat on for a set amount of time), A flame color button(sends ir command copied from remote), flame speed button(sends ir command copied from remote), dimmer button(sends ir command copied from remote), speed button(sends ir command copied from remote), high heat button(sends ir command copied from remote), and low heat button(sends ir command copied from remote). I want it to report power, and report low or high heat(by reading energy monitoring).

I have all of the remote codes copied, but have no clue where to start with the templates.

Lastly, and less important for now, I have created a remote in photoshop and would love to make it into a card on my dashboard. I’ll get to that when I get the rest figured out.

Any help is appreciated. Thanks!

Do one thing at a time. Let’s get the on/off sorted first. How have you set up your IR blaster, and have you successfully managed to send any codes from HA out of it?

I have the on/off created and working. I have separate scripts for each code. I am trying to create the heat entity now with Heat Off, Low Heat, and High heat buttons. The buttons will show on or off based off of what a sensor I created is reporting. The fireplace only has 1 heat button that cycles through the different levels, so the buttons would need to trigger that script, wait a few seconds, and then trigger again if the desired level is not achieved(again based off what the sensor is reporting). I’m thinking using a cover may be the only option, but correct me if I’m wrong.

EDIT:
I got tired of messing with that, no ended up creating 3 separate button entities triggering a node red automation to achieve what I needed. Would prefer a single entity with 3 buttons, but this will work until someone can point me in the right direction with that.