hristo-atanasov / Tasmota-IRHVAC

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

tasmota_irhvac:set_swingv is not working - throwing Unknown error on Automation scene #115

Closed rvignesh123 closed 1 year ago

rvignesh123 commented 1 year ago

Screenshot 2023-06-08 at 7 44 02 PM

I tried looking at the logs:

Screenshot 2023-06-08 at 7 33 55 PM

Please help me to fix this.

nao-pon commented 1 year ago

@rvignesh123 I've tried running the automation shown below and there were no errors. Is this component of yours up to date?

alias: test
description: ""
trigger:
  - platform: time
    at: "23:39:00"
condition: []
action:
  - service: tasmota_irhvac.set_swingv
    data:
      swingv: auto
    target:
      entity_id: climate.to_debug
mode: single
rvignesh123 commented 1 year ago

Home Assistant 2023.6.0 Supervisor 2023.06.1 Operating System 10.2 Frontend 20230607.0 - latest

And I copied latest release into custom_components folder and restarted HA

rvignesh123 commented 1 year ago

One Update: I'm not a python dev.. eventhough I managed to changed the line 411: update_tasks.append(device.async_update_ha_state(True)) to 411: update_tasks.append(asyncio.create_task(device.async_update_ha_state(True)))

It is working for me. May be I suspect any changes in new version of HA might have caused this.

Please let me know , whether I'm wrong or right. If right , please add the code.

nao-pon commented 1 year ago

I hadn't updated to HA 2023.6.0 yet, so I just updated and verified it again, but there were no errors.

I will scrutinize the points you made.

nao-pon commented 1 year ago

It seems I misunderstood. I've confirmed that the command is sent but I'm getting a similar error. I will scrutinize this and fix it.

nao-pon commented 1 year ago

@rvignesh123 I have fixed this. thank you! 👍