Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TFIAC integration stopped working with my AC after updating to core-2023.6.x. #95049

Closed
RuslanNovak opened this issue Jun 22, 2023 · 14 comments
Closed

Comments

@RuslanNovak
Copy link

The problem

TFIAC integration stopped working with my AC after updating to core-2023.6.x.

I tried resetup integration but it helped until i reboot Home Assistan.
My Intelligent AC app for android still workin fine in same network.

image

What version of Home Assistant Core has the issue?

core-2023.6.2

What was the last working version of Home Assistant Core?

core-2023.5.1

What type of installation are you running?

Home Assistant Supervised

Integration causing the issue

TFIAC

Link to integration documentation on our website

https://www.home-assistant.io/integrations/tfiac

Diagnostics information

No response

Example YAML snippet

/config/configuration.yaml

# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:

# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
# http:
#   base_url: example.duckdns.org:8123
http:
  use_x_forwarded_for: true
  trusted_proxies:
    - 172.30.33.0/24
# Text to speech
tts:
  - platform: google_translate

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

climate: !include includes/climate.yaml

/config/includes/climate.yaml
- platform: tfiac
  host: 192.168.X.164

Anything in the logs that might be useful for us?

Logger: homeassistant.helpers.entity
Source: components/tfiac/climate.py:102
First occurred: 18 June 2023 at 21:32:44 (236 occurrences)
Last logged: 05:11:49

Update for climate.ergo fails
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/asyncio/tasks.py", line 490, in wait_for
    return fut.result()
           ^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/tellsticknet/util.py", line 50, in sock_recvfrom
    await blocking.wait()
  File "/usr/local/lib/python3.11/asyncio/locks.py", line 213, in wait
    await fut
asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/pytfiac.py", line 96, in _send
    data, _ = await asyncio.wait_for(
              ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/asyncio/tasks.py", line 492, in wait_for
    raise exceptions.TimeoutError() from exc
TimeoutError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 559, in async_update_ha_state
    await self.async_device_update()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 784, in async_device_update
    await self.async_update()
  File "/usr/src/homeassistant/homeassistant/components/tfiac/climate.py", line 102, in async_update
    await self._client.update()
  File "/usr/local/lib/python3.11/site-packages/pytfiac.py", line 113, in update
    response = await self._send(STATUS_MESSAGE.format(seq=self._seq))
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/pytfiac.py", line 101, in _send
    raise Unavailable()
pytfiac.Unavailable

Additional information

No response

@home-assistant
Copy link

Hey there @fredrike, @mellado, mind taking a look at this issue as it has been labeled with an integration (tfiac) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of tfiac can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign tfiac Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


tfiac documentation
tfiac source
(message by IssueLinks)

@diybateriaslifepo4
Copy link

same error here... :(

@fredrike
Copy link
Contributor

fredrike commented Jul 4, 2023

It seems like there been some external factor changing the units as the code for TFIAC hasn't changed..

I need more information on what's going on (can you still control via XML) or I'll pull the integration from HA.

@Giancky79
Copy link

I think different version, i have wifi device with firmware version 5 and working

@diybateriaslifepo4
Copy link

Today I updated HA to version 2023.7 and the integration mysteriously worked again.

P.S. My firmware version is 5 too

@RuslanNovak
Copy link
Author

It's amazing. I updated HA from 2023.6.3 to version 2023.7.0 too and integration works again.

@Giancky79
Copy link

@fredrike, is possible to update the integration with new standard? Some time, after reboot, one climate not update the info to HA and not charging the entity correctly, resolving only after a new reboot

@diybateriaslifepo4
Copy link

@fredrike, is possible to update the integration with new standard? Some time, after reboot, one climate not update the info to HA and not charging the entity correctly, resolving only after a new reboot

That sometimes happens to me too, I wish it could be an integration direct, to be able to restart it without having to restart HA...

@fredrike
Copy link
Contributor

fredrike commented Jul 7, 2023

@fredrike, is possible to update the integration with new standard? Some time, after reboot, one climate not update the info to HA and not charging the entity correctly, resolving only after a new reboot

Sure just tell me what needs to be done..

@diybateriaslifepo4
Copy link

diybateriaslifepo4 commented Jul 7, 2023

@fredrike, is possible to update the integration with new standard? Some time, after reboot, one climate not update the info to HA and not charging the entity correctly, resolving only after a new reboot

Sure just tell me what needs to be done..

We want it to configure from UI as native Integration/Device, without Yaml 😂😂👍

@Giancky79
Copy link

@fredrike, is possible to update the integration with new standard? Some time, after reboot, one climate not update the info to HA and not charging the entity correctly, resolving only after a new reboot

Sure just tell me what needs to be done..

https://github.com/home-assistant/architecture/blob/master/adr/0010-integration-configuration.md#decision

@fredrike
Copy link
Contributor

@fredrike, is possible to update the integration with new standard? Some time, after reboot, one climate not update the info to HA and not charging the entity correctly, resolving only after a new reboot

Sure just tell me what needs to be done..

https://github.com/home-assistant/architecture/blob/master/adr/0010-integration-configuration.md#decision

There is quite a bit of work to build a config-flow and I don't think that will solve the issue with the device becoming unresponsive..

https://developers.home-assistant.io/docs/config_entries_config_flow_handler

As I don't have a TFIAC unit my self it would be quite hard to build this flow, if you like to help ping me (fredrike) in this thread and we'll see how it goes https://community.home-assistant.io/t/solved-for-local-access-a-c-app-named-tfiac-anyone-ever-heard-of-it/58169.

@fredrike
Copy link
Contributor

fredrike commented Jul 11, 2023

This is not an issue with the integration, @RuslanNovak seems to have an unsupported unit.

@fredrike
Copy link
Contributor

@home-assistant close

@github-actions github-actions bot locked and limited conversation to collaborators Aug 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants