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

Cooling temperature always increment #2

Open
djrusskof opened this issue May 9, 2022 · 7 comments
Open

Cooling temperature always increment #2

djrusskof opened this issue May 9, 2022 · 7 comments

Comments

@djrusskof
Copy link

I have an OrangePi 4 with ARMBian (22.02.1) and I just installed a Daikin reversible air conditioning at home.
I have a BRC1H box and so I looked for how to control it remotely via my OrangePi.
I successfully installed pymadoka, and I wanted to try via terminal to control the air conditioning.
The problem I'm having is when sending a "set-set-point" command (pymadoka -a XX:XX:XX:XX:XX:XX set-set-point 20 24 for example).
Then, I read the temperature setpoints via the "get-set-point" command (pymadoka -a XX:XX:XX:XX:XX:XX get-set-point for example) and I notice that the heating temperature is indeed at the value programmed in the command while the cooling temperature has been increased by 1 compared to the old programmed value.

If cooling temperature was 20°C, after setting new cooling temperature set, I will have a cooling temperature set to 21°C, no matter the value I asked in command line.

@mduran80
Copy link
Owner

mduran80 commented May 14, 2022 via email

@djrusskof
Copy link
Author

Hi, and thank you for your answer.

I check the following :

Read set point : pymadoka -a xx:xx:xx:xx:xx:xx get-set-point
Answer : cooling_set_point": 22, "heating_set_point": 19}

Write set point : pymadoka -a xx:xx:xx:xx:xx:xx set-set-point 19 19
Answer : cooling_set_point": 19, "heating_set_point": 19}

New read set point to be sure (I expect that both are at 19°C) :
pymadoka -a xx:xx:xx:xx:xx:xx get-set-point
Answer : cooling_set_point": 20, "heating_set_point": 19}

First, the answer always missed the 2 first bytes (I never have {" at the begining of the answer)
Next, this try the cooling temperature doesn't increment, but value is'nt 19 but 20.
Finally, it seems to always work on heating temperature.

@betonishard
Copy link

betonishard commented Jul 17, 2022

Hi, I am experiencing the same

mduran80/daikin_madoka#16

Difference is that I am working via homeassistant, however I tested also via pymadoka.

@mduran80
Copy link
Owner

mduran80 commented Jul 17, 2022 via email

@mduran80
Copy link
Owner

mduran80 commented Aug 6, 2022

Read set point : pymadoka -a xx:xx:xx:xx:xx:xx get-set-point Answer : cooling_set_point": 22, "heating_set_point": 19}

Write set point : pymadoka -a xx:xx:xx:xx:xx:xx set-set-point 19 19 Answer : cooling_set_point": 19, "heating_set_point": 19}

New read set point to be sure (I expect that both are at 19°C) : pymadoka -a xx:xx:xx:xx:xx:xx get-set-point Answer : cooling_set_point": 20, "heating_set_point": 19}

I have been debugging the device protocol for some time this morning and I have not been able to reproduce the behaviour (at least with my HVAC unit and my thermostat). The values obtained after querying the thermostat are the same as sent in the command. I tested with the same exact values, just in case the number rounding could affect the tests, but no luck.

My thermostat info:

"Software Revision String": "7031.05.17", "Hardware Revision String": "UEIS-15288", "Firmware Revision String": "BL C0", "Model Number String": "0.1"

However, I found an interesting behaviour I hadn't noticed previously.
Apparently, my thermostat does not handle separate heating/cooling temperatures and only uses heating point value in the set_point command.

The set-point command controls many parameters from the device. Among them, we can find the set point temperature but also the upper/lower device limits as well as some working mode and differential values in temperature that could trigger functional changes. I assume this approach is flexible enough as to support a range of HVACS without hardcoding the working parameter values.

In my case, no matter how many parameters I use, it will always use the last set-point parameter sent. When we send the set-point command, we are sending cooling_set_point parameter followed by heating_set_point parameter. So, after sending the data, if I retrieve the values, both always point to heating_set_point. That means that if you are using the CLI and your thermostat/HVAC is behaving like mine, you must only care about the heating_set_point. Anyway, I will leave the support for setting both values in case other devices behave as expected.

@betonishard
Copy link

betonishard commented Aug 6, 2022

@mduran80

Thank you for the updates, however setting setpoint results in this (or get-set point)

./usr/local/lib/python3.10/site-packages/pymadoka/connection.py:56: FutureWarning: This method will be removed in a future version of Bleak. Use thediscovered_devices property instead. DISCOVERED_DEVICES_CACHE = await scanner.get_discovered_devices() ./usr/local/lib/python3.10/site-packages/pymadoka/connection.py:163: FutureWarning: is_connected has been changed to a property. Calling it as an async method will be removed in a future version connected = await self.client.is_connected() .ERROR:pymadoka.cli:Could not send command: message could not be rebuilt

@stever29
Copy link

stever29 commented Aug 3, 2023

I know this is an old topic, but I'm also seeing this issue. While I'm not 100% certain, I'm fairly sure this was working for me previously. I've changed two things; updated the madoka controller firmware (via the mobile app), and changed bluetooth adapter. I assume the firmware is potentially the issue here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants