Comments (1)
I had the same issue today with my intensishome account (although I can't remember having this earlier). I debugged a lot and saw that somewhere in the initialization the first device is created, updated, then added to HA and then connected to the API. The second device gets updated before the first one is connected to the API and somehow, the device list of the controller is empty then, resulting in the above error.
What fixed it for me is disabling the update before add function by changing the following in custom_components\intensishome\climate.py
if ih_devices := controller.get_devices():
async_add_entities(
[
IntesisAC(ih_device_id, device, controller)
for ih_device_id, device in ih_devices.items()
],
update_before_add=True,
)
Into
if ih_devices := controller.get_devices():
async_add_entities(
[
IntesisAC(ih_device_id, device, controller)
for ih_device_id, device in ih_devices.items()
],
update_before_add=False,
)
After adding each device to HA, each device is connected to the API and gets updated when the API is called, so no need for the update before add anyway.
from hass-intesishome.
Related Issues (11)
- Drop connection roughly every 2 hours. HOT 16
- Error connecting to IntesisHome - TypeError: BaseEventLoop.create_connection() got an unexpected keyword argument 'loop'
- Error on new Intesis install HOT 1
- Local control falls over? HOT 1
- Climate device not working HOT 1
- intesishome with PA-AW-WIFI-1 on Aquarea AW HOT 2
- Can't regain connection after relatively long time without HA restart. HOT 3
- Won't add intesishome_local HOT 2
- Error on device update! HOT 2
- Fan mode: auto
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hass-intesishome.