Closed nao-pon closed 1 year ago
input_select.living_ac_swingh
- 'off'
- auto
- left max
- left
- middle
- right
- right max
- wide
climate.living_ac
alias: Set AC SwingH
description: ""
trigger:
- platform: state
entity_id:
- climate.living_ac
attribute: swingh
id: get
- platform: state
entity_id:
- input_select.living_ac_swingh
id: set
condition: []
action:
- if:
- condition: trigger
id: set
then:
- service: tasmota_irhvac.set_swingh
data:
entity_id: climate.living_ac
swingh: "{{states(trigger.entity_id)}}"
else:
- service: input_select.select_option
data:
option: "{{state_attr(trigger.entity_id, 'swingh')}}"
target:
entity_id: input_select.living_ac_swingh
mode: parallel
max: 2
@hristo-atanasov Write it down as a memorandum.
Multiple terms are defined for the input to absorb differences in notation, but internally it is single and the output is also single. Write it down as a memorandum.
Multiple terms are defined for the input to absorb differences in notation, but internally it is single and the output is also single.
I also made a Blueprint that makes it easier to create automation.
ref. https://community.home-assistant.io/t/tasmota-mqtt-irhvac-controler/162915/404
This service allows setting wind direction using a selection helper.
This may resolve #45.