hristo-atanasov / Tasmota-IRHVAC

Home Assistant platform for controlling IR Air Conditioners via Tasmota IRHVAC command and compatible hardware
187 stars 64 forks source link

Added service to set vertical and horizontal vanes #88

Closed nao-pon closed 1 year ago

nao-pon commented 1 year ago

This service allows setting wind direction using a selection helper.

This may resolve #45.

nao-pon commented 1 year ago

Example

Input Select Helper

Automation

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
nao-pon commented 1 year ago

@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.

nao-pon commented 1 year ago

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