Correct. If the code works fine I will prepare a pull request for the official integration into HA.
Ok so let me test for a few days and i’ll tell you if everything is fine.
Ok syssi so i can confirm you that everything is working fine!
Ok, i’ve noticed that if one gateway is not connected, than you can’t see also the other gateways trought home assistant:
2018-04-10 16:24:10 ERROR (SyncWorker_15) [custom_components.maxcube] Unable to connect to Max!Cube gateway: timed out
In the home page two notification:
The following components and platforms could not be set up:
maxcube
Please check your config.
and:
Max!Cube gateway setup
Error: timed out
You will need to restart Home Assistant after fixing.
Please update the custom component. I have fixed the issue. Could you try to reproduce the problem by unplugging one of the devices?
Ok. Sorry for the delay. Yes, sure the other gateway is disconnected.
I’ve tryed now but again:
2018-04-11 00:05:32 ERROR (SyncWorker_12) [custom_components.maxcube] Unable to connect to Max!Cube gateway: timed out
and only this notification:
Max!Cube gateway setup
Error: timed out
You will need to restart Home Assistant after fixing.
Anyway i’ll try again now.
I’ve tryed again uploading again your custom component and same problem
Are you sure? The notification is fine. The remaining gateway should work now nevertheless. Could you give it a try?
Really sorry. Yes it s correct the other gateway is working!