Sorry for some more clarification I want to use the current state of the template sensor and pass it to the macro. it seems like this.state does not work in the macro so I was hoping to pass it form the template to the macro every time I do I get the result unavailable
I have no idea what the solution was as it just started working. I don’t know why or what I changed. I can post my code that works for others to see working examples. I marked it as answered so that people looking for unanswered issues would not bother with this one