Code Monkey home page Code Monkey logo

ac-infinity-hacs's Introduction

ac-infinity-hacs

Custom Integration to test AC Infinity Controllers

ac-infinity-hacs's People

Contributors

hunterjm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ac-infinity-hacs's Issues

Passive scanning

I’ve found the sensors update every second or so when passive scanning is turned off your Bluetooth device. The integration is working as I want it. Hope this helps.

Config flow could not be loaded

Trying to set this up.
v1.0.2 installed via HACS
HA v2023.7.3
OS v10.3

Go to Settings -> Integrations -> + Add Integration -> Select AC Infinity

Giving me Error Config flow could not be loaded: 500 internal server error server got itself in trouble

image

EDIT: Disabling WiFi and going BT Only the controller gets discovered right away and will configure. This error only occurs when trying to manually configure without auto-discovery.

Temp and Humidity Sensors

Hi, I have installed the integration successfully, the fan control works but I don’t get a continuous reading on the temperature and humidity sensors. I’m looking to run a humidifier and dehumidifier from wireless plugs, so need them giving a real-time reading. If I run scan on from bluetoothctl I get a reading, but it’s not updated regularly in the integration. Any ideas?

Multiple controllers?

Hi Can we add multiples units? I only added one and now I get this to add other ones

The flux of configuration cannot be confured : 500 Internal Server Error Server got itself in trouble

By the way thank for this integrations :)

500 Internal Server Error Server got itself in trouble

When i want to install this integration i get this Error: 500 Internal Server Error Server got itself in trouble
I already completly deleted it, reinstall, Hardware reboot etc. but it just wont work.
In Version 1.0.2 was no problem since the 2023.09 Update.
So am I doing something wrong, or is there a problem with my system?

Fan Speed not working also Turn off/on function not working

Hello @hunterjm

Thanks for the amazing integration but having some issues. I have a 69 BLE only Controller Home Assistant Recognised the device gives me correct temparature/humidity reading and also when fan is running via the app it recognises its running and speed.

The issue is when trying to controller it via the integration it's not responding. I have turned off bluetooth on my phone and deleted any in app automatiosn but no luck on that. When I try to run the fan via Home Assistant its saying failed to update or not making any changes at all. For example if the fan is off in app: will show off in HA but then I try to turn it ON in HA and flips on its own back off and vice versa. With the speed its the same so the problem is that its reading the state data but fails to push the speed and state and update the controller.

I am happy to provide any logs but will need some help on where to grab them.

Thank you in advance

Single controller, multiple fans

First a big thank you for creating this HA integration, it's a very welcome addition and I can't wait to see this stabilized!

Unfortunately, I'm running into a problem with multiple fans connected to a single controller: only one fan is exposed in the integration. Based on the HA Community thread it seems like I need to add a second device to access the additional fans, but it isn't clear how to do that (the "Add Entry" button fails), and based on other user reports that seems buggy as well.

If you need additional information or help testing new versions please let me know, I'm happy to do whatever I can to help develop this integration.

Additional information and versions:

  • Home Assistant v2023.8.1
  • ac-infinity-hacs v1.0.2 (via custom HACS)
  • Controller 69 PRO v7 (firmware reported by integration)

Automation for Temperature

AC.txt
Dont know where to put this Thread, so here it is.
Feel free to move like you wish.

I createt an automation based on the temperature (like in the official app).
Humidity will be added in the future.
Here is my example and i hope this will help someone. (For 22°C and below = Fan Level 1 /// For every +1°C = Fan Level + 1)


alias: ALIAS
description: ""
trigger:

  • platform: state
    entity_id: SENSOR.YOURTEMPSENSOR
    action:
  • service: fan.set_percentage
    data_template:
    entity_id: FAN.YOURFAN
    percentage: >-
    {% set temperature_difference =
    states('SENSOR.YOURTEMPSENSOR') | float - 22 %} {% set
    fan_speed = 10 + (temperature_difference // 1) * 10 %} {% if fan_speed <
    10 %}
    10
    {% elif fan_speed > 100 %}
    100
    {% else %}
    {{ fan_speed }}
    {% endif %}`

If you don´t want to flood your logbook, you should exlude it with the exclude argument in the configuration.yaml


logbook:
exclude:
entities:
- automation.acinfinityautomation

EDIT: I´m to dumb for creating post with the right format, so please see the ac.txt file. Sorry for that.

Success.

I have my Controller 67 working as it should.
IMG_3158
Thanks for all the work, this is a game changer for U.K. owners as there is a complete lack of U.K. plug for UIS devices.

Rapsberry Pi 4 running HAOS

Notes
Make sure you use advanced terminal from HACS. (remember to fill in info at top of page)
cd to /config/custom_components no sudo needed
install expect no apt, just install expect
Install ac-infinity-hacs you may need to link to this repo
If you have the app installed on your phone disable BT when setting up.
The slider won’t work if you have automations set up, disabling automations will let you control the fan.

Fan speed percentage value fluctuating

Hey there,
first of all thank you for this awesome addition to HA I LOVE it!
One thing I have recognized with a 69 Pro is that the fan speed variable is fluctuating. I have set the thing to 1 speed value per degree so that it automatically switches between speeds on the controller. HA should just record these settings. The controller itself is always only on 10%-20% at these time but strangtely jumps on the speed percentage reading up to 70% and then back to the "real" value.
On the controller display the fan speed is not going up to 7 or 70%, very strange:

grafik

Cannot turn on/off or ajust the fan speed

Hi, I don't know if it is normal but I can ajust the fan speed anf turn on/off.

Btw it's maybe a great idea to add the different mode like auto too?

Thank

There is the log:

Logger: homeassistant.components.websocket_api.http.connection
Source: custom_components/ac_infinity/fan.py:92
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 3 septembre 2023 à 23:58:49 (7 occurrences)
Last logged: 00:04:13

[140469960103488] A-Q1J1M - F4:22:12:82:1B:36: Failed to connect after 4 attempt(s): TimeoutError
[140472561698880] G-GR6DH - 34:85:18:5F:8B:32: Failed to connect after 4 attempt(s): TimeoutError
[140472561698880] A-Q1J1M - F4:22:12:82:1B:36: Failed to connect after 4 attempt(s): TimeoutError
[140472561698880] A-8EZ93 - FA:DB:54:C0:9A:EA: Failed to connect after 4 attempt(s): TimeoutError
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/bleak/backends/bluezdbus/client.py", line 204, in connect
    reply = await self._bus.call(
            ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/dbus_fast/aio/message_bus.py", line 370, in call
    await future
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/bleak_retry_connector/__init__.py", line 350, in establish_connection
    await client.connect(
  File "/usr/src/homeassistant/homeassistant/components/bluetooth/wrappers.py", line 290, in connect
    connected = await super().connect(**kwargs)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/bleak/__init__.py", line 531, in connect
    return await self._backend.connect(**kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/bleak/backends/bluezdbus/client.py", line 141, in connect
    async with async_timeout(timeout):
  File "/usr/local/lib/python3.11/asyncio/timeouts.py", line 111, in __aexit__
    raise TimeoutError from exc_val
TimeoutError

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

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 226, in handle_call_service
    await hass.services.async_call(
  File "/usr/src/homeassistant/homeassistant/core.py", line 1974, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2011, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 235, in handle_service
    return await service.entity_service_call(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 870, in entity_service_call
    response_data = await _handle_entity_call(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 942, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/config/custom_components/ac_infinity/fan.py", line 92, in async_turn_off
    await self._device.turn_off()
  File "/usr/local/lib/python3.11/site-packages/ac_infinity_ble/device.py", line 179, in turn_off
    await self._ensure_connected()
  File "/usr/local/lib/python3.11/site-packages/ac_infinity_ble/device.py", line 244, in _ensure_connected
    client = await establish_connection(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/bleak_retry_connector/__init__.py", line 374, in establish_connection
    _raise_if_needed(name, device.address, exc)
  File "/usr/local/lib/python3.11/site-packages/bleak_retry_connector/__init__.py", line 314, in _raise_if_needed
    raise BleakNotFoundError(msg) from exc
bleak_retry_connector.BleakNotFoundError: A-Q1J1M - F4:22:12:82:1B:36: Failed to connect after 4 attempt(s): TimeoutError

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.