@Momo wrote:
Hello,
I am trying to set some automation that will trigger when 2 drop-down inputs are changed. But i am having no luck as i dont know much about this
So far i added in configuration.yaml the definition for the dropdown selection:
input_select: air_purifier: name: Air Purifier options: - Birou - Living - Dormitor icon: mdi:fan purifier_mode: name: Mode options: - Favorite - Auto - Silent - Idle icon: mdi:fan fan_speed: name: Fan speed options: - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10 - 11 - 12 - 13 - 14 - 15 - 16 icon: mdi:fan
I made a card showing the selections. Now i actually want to change the mode of a purifier by selecting options from the dropdown list. For example: select Living, Auto and the purifier should go in auto mode.
The service to control the purifier is:
fan.set_speed with the entities: fan.air_purifier_birou ; fan.air_purifier_living and fan.air_purifier_bedroom.Now i get to the part where i am lost… i have added the following in automations.yaml
- alias: Air Purifiers Selector trigger: - platform: state entity_id: input_select.air_purifier - platform: state entity_id: input_select.purifier_mode action: - service: fan.set_speed data_template: entity_id: > {% if is_state("input_select.air_purifier", "Birou") %} fan.air_purifier_birou.Favorite {% else %} {% endif %}
Oviously it doesnt do anything …
Can someone please help ?
Thank you
Posts: 1
Participants: 1