Hi There,
I have searched through a lot of documents and also posts, and haven’t found anything that I need yet. Was hoping someone that smarter than me knows.
I’d like to pass the actual entity_id name variable to the entity parameters itself and also as a data variable for scripts.
I can’t seem to get it working. I have bolded the spots where it should be bold.
What is the reason? Nothing if not some small laziness and a longer way to go about learning more how YAML works
fan:
- platform: template
fans:
b3_fan:
friendly_name: "Bedroom 3 Fan"
value_template: "{{ states('input_boolean.{{ entity_id }}_state') }}"
percentage_template: "{{ states('input_select.{{ entity_id }}_speed') }}"
turn_on:
service: script.fan_on
data:
name: "{{ entity_id }}"
turn_off:
service: script.fan_off
data:
name: "{{ entity_id }}"
set_percentage:
service: script.fan_set_speed
data:
name: "{{ entity_id }}"