Need help with trying to figure out how I can pass through the Data variable "room" into my script service. It works in the templating, but I am not sure I have the right syntax for it to be passed correctly:
fan_on: alias: Fan On mode: queued sequence: - service: input_boolean.turn_on target: entity_id: input_boolean.{{ room }}_fan_state - service: > {% if is_state("input_select.{{ room }}_fan_speed", '0') -%} script.fan_33 {%- else -%} script.fan_{{ states('input_select.{{ room }}_fan_speed') }} {%- endif %} data: room: "{{ room }}" - condition: template value_template: "{{ states('input_select.{{ room }}_fan_speed') == '0' }}" - service: input_select.select_option data: option: "33" target: entity_id: input_select.{{ room }}_fan_speed
Specifically, everyting after the "-servce: >" line doesn't seem to work. Note: I have also tested passing through the variable as:{% if is_state("input_select.' ~ room ~ '_fan_speed", "0") -%}