I am trying to pass values to 2 variables that are expected in the custom component.
as you can see in the debug - the first “messages” is getting the value of
{{states(‘sensor.amir_work_to_home’)}}
—> “message = 24 min home”
But the second “count” is getting the template code
—> “myCount = {{states(‘sensor.amir_work_to_home’)}}”
I was expecting “myCount = 24”
any idea how to pass the right value in this automation?
is this something I should handle within the custom component code or use a different method to pass the parameter?