-
Notifications
You must be signed in to change notification settings - Fork 26
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
MaxCube reset to fatory defaults #12
Comments
Yes, this would be an excellent solution |
I had this problem (using FHEM FYI) too and was searching a cause for a long time. Reading many discussions I am sure now, that this is a connection handling problem of the max cube (some race condition/overflow). The solution seems to be to use a "blocking" access (open connection once, never close it) instead of opening a new connection on every query from a home automation system, if that is possible. As there can only be one connection to the cube at a time you can't use EQ-3 cloud then or connecting with their windows software. As EQ-3 never officially documented their protocol I'm almost sure that they see this as "non issue"... |
Making a longer polling interval only postponed the problem. |
Hello, Is there something new about this issue? I have the same problem with my setup ( home assistant and max cube ). I have pooling interval setup to 5 minutes and once about half a year max cube gateway is reset to factory settings. |
Hello, Doing so, i am able to poll every second without any factory reset. If interested I can post my code in a fork here, but you may need to make adaptations, since I’ve taylored my code for my own need with my MQTT daemon. |
Hi mike-k68, It would be great if you can share how you managed to change to a keep-alive connection! This would not only solve the issue of Cubes being reset, but would also enable us to have real-time updates. Using it as an MQTT daemon is also a really nice solution. Really interested! |
Hi there,
What is the best way to send you my code ? (email).
I don’t want to create a fork and maintain it. Also I’m a python-newbie so my code is definitely not neat and taylored for my own need.
But it’s ok if you guys use it, modifiy and share it.
Regards
Mike
… Le 11 janv. 2021 à 14:40, mvzut ***@***.***> a écrit :
Hi mike-k68,
It would be great if you can share how you managed to change to a keep-alive connection! This would not only solve the issue of Cubes being reset, but would also enable us to have real-time updates. Using it as an MQTT daemon is also a really nice solution. Really interested!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
The best way is forking this repository and upload your changes there. You
don’t need to maintain it. Just dump your code to GitHub
El El lun, 11 ene 2021 a las 17:41, mike-k68 <notifications@github.com>
escribió:
… Hi there,
What is the best way to send you my code ? (email).
I don’t want to create a fork and maintain it. Also I’m a python-newbie so
my code is definitely not neat and taylored for my own need.
But it’s ok if you guys use it, modifiy and share it.
Regards
Mike
> Le 11 janv. 2021 à 14:40, mvzut ***@***.***> a écrit :
>
>
> Hi mike-k68,
>
> It would be great if you can share how you managed to change to a
keep-alive connection! This would not only solve the issue of Cubes being
reset, but would also enable us to have real-time updates. Using it as an
MQTT daemon is also a really nice solution. Really interested!
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub, or unsubscribe.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#12 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABM4WBZO7AJLVKXOA7RXBPDSZMS3FANCNFSM4EXZXBRQ>
.
|
Ok, I did the fork. |
Thank you. I have seen several improvements that are really good, like
reporting failed commands (current code does not validate the status code
in the response) or support for vacation mode.
…On Tue, Jan 12, 2021 at 9:47 AM mike-k68 ***@***.***> wrote:
Ok, I did the fork.
You may find my code here: https://github.com/mike-k68/python-maxcube-api
Don't hesitate to ask questions if needed.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#12 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABM4WB7ILHWRKRPKYQIQRULSZQEDXANCNFSM4EXZXBRQ>
.
|
Refactor connection handling to use persistent connections and reduce the chance of hitting a known bug in the Max! Cube that resets to factory setting once every 50,000 connections. Issues fixed: - uebelack#12 Breaking changes: - MaxCubeConnection object removed. MaxCube constructor now receives the host and port parameters directly - The connection is not released after each command is send. This can block other applications to connect to the Max! Cube. You can call cube disconnect() method to release the connection manually.
Refactor connection handling to use persistent connections and reduce the chance of hitting a known bug in the Max! Cube that resets to factory setting once every 50,000 connections. Issues fixed: - uebelack#12 Breaking changes: - MaxCubeConnection object removed. MaxCube constructor now receives the host and port parameters directly - The connection is not released after each command is send. This can block other applications to connect to the Max! Cube. You can call cube disconnect() method to release the connection manually.
Refactor connection handling to use persistent connections and reduce the chance of hitting a known bug in the Max! Cube that resets to factory setting once every 50,000 connections. Issues fixed: - uebelack#12 Breaking changes: - MaxCubeConnection object removed. MaxCube constructor now receives the host and port parameters directly - The connection is not released after each command is send. This can block other applications to connect to the Max! Cube. You can call cube disconnect() method to release the connection manually.
Refactor connection handling to use persistent connections and reduce the chance of hitting a known bug in the Max! Cube that resets to factory setting once every 50,000 connections. Issues fixed: - uebelack#12 Breaking changes: - MaxCubeConnection object removed. MaxCube constructor now receives the host and port parameters directly - The connection is not released after each command is send. This can block other applications to connect to the Max! Cube. You can call cube disconnect() method to release the connection manually.
Refactor connection handling to use persistent connections and reduce the chance of hitting a known bug in the Max! Cube that resets to factory setting once every 50,000 connections. Issues fixed: - uebelack#12 - [Unable to change back to scheduled temperature (auto mode)](uebelack#24 Breaking changes: - Increased minimum supported version of Python to >= 3.7 - MaxCubeConnection object removed. MaxCube constructor now receives the host and port parameters directly - The connection is not released after each command is send. This can block other applications to connect to the Max! Cube. You can call cube disconnect() method to release the connection manually.
Resolved in 0.4.0 version |
This new version implements a workaround for a hardware bug that causes a factory reset of the full MAX! service. See uebelack/python-maxcube-api#12 for more details.
This new version implements a workaround for a hardware bug that causes a factory reset of the full MAX! service. See uebelack/python-maxcube-api#12 for more details.
My Maxcube is loosing the configuration (reset to factory defaults) with and interval of about 3-6 weeks. It only happens when connected to HA. Other users are having the same issue:
https://community.home-assistant.io/t/maxcube-loosing-configuration/46663
It looks like a general problem with MaxCube and not just your maxcube-api. Openhab users have had the same problem. I have tried changing the polling interval from 1 minute to 5 minutes as suggested by other users:
home-assistant/core#12551 (comment)
It would be nice to be able to set this from the HA config, so i don't have to manually change the code each time HA is updated.
Another improvement (this was also done in openhab), was to be able to choose exclusive mode, so the maxcube-api does not close the connection.
The text was updated successfully, but these errors were encountered: