hristo-atanasov/Tasmota-IRHVAC

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

Closed this issue · 6 comments

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.

@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

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

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.

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.

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.

@rvignesh123 I have fixed this. thank you! 👍