Thanks @fredrike . Not so sure @vanackej was the one that introduced the issue. Not really sure if this rounding has always been needed and no one noticed or it’s due to a recent firmware upgrade on the adapter itself.
I’ll create the issue anyway and tag you both. Hopefully could be fixed soon.
Thanks @fredrike . Just created the issue:
opened 08:10PM - 22 Apr 22 UTC
integration: daikin
### The problem
When I set a Daikin AC unit to a temperature, after some time… (could be 30-90 seconds) the temperature will change automatically to the previous value.
For reference, this is my current setup:
- Home Assistant Core 2022.4.6
- My unit has a BRP072A43 module (firmware 2.9.0)
- Daikin Comfort App 2.0
Below is a table that shows the temperature in Fahrenheit being set in HA, temperature sent through the integration, temperature sent when using the app configured in Fahrenheit, when it succeeds changing the temperature in the unit.
```
F temp stemp ha stemp app changed temp in unit
68 20 20 yes
69 20.6 20.5 no
70 21.1 21 no
71 21.7 21.5 no
72 22.2 22 no
73 22.8 23 no
74 23.3 23.5 no
75 23.9 24 no
76 24.4 24.5 no
77 25 25 yes
78 25.6 25.5 no
```
As you can clearly see in the table above, it seems the adapter is expecting the rounding to be .0 or .5, otherwise it won't work.
If I use the official Daikin App, [Comfort Control app](https://daikincomfort.com/products/thermostats-controls/daikin-comfort-control-app), this doesn’t happen. The app is rounding properly as the adapter expects it.
I have been noticing this issue since I installed a new adapter mid February 2022, so not sure if it's been happing before that time.
Tagging @fredrike and @vanackej for reference as they are aware of this issue and past issues. Please let me know if you need further info from me. Happy to help in any way I can.
### What version of Home Assistant Core has the issue?
core-2022.4.6
### What was the last working version of Home Assistant Core?
_No response_
### What type of installation are you running?
Home Assistant OS
### Integration causing the issue
Daikin
### Link to integration documentation on our website
https://www.home-assistant.io/integrations/daikin
### Diagnostics information
_No response_
### Example YAML snippet
_No response_
### Anything in the logs that might be useful for us?
```txt
Put in the following code into configuration.yaml:
logger:
default: warning
logs:
homeassistant.components.daikin: debug
pydaikin: debug
You'll be able to see the temperature sent to the unit by the integration
This is an example of a log line showing the data sent to the adapter by the integration:
2022-04-21 11:20:43 DEBUG (MainThread) [pydaikin.daikin_brp069] Sending query_c: aircon/set_control_info?pow=1&mode=4&stemp=23.3&shum=0&f_rate=A&f_dir=3
```
### Additional information
_No response_
Agree with you, it seems the adapter is expecting a rounding to .0 or .5 for some reason.
vanackej
(Johann Vanackere)
April 22, 2022, 9:42pm
23
Rounding to .5 implemented, hope it will fix the issue.
I think there were some incorrect behaviors for users using Fahrenheit units before my initial contribution, but it definitly made it worse, sorry
2 Likes
@vanackej @fredrike After updating to 2022.4.7 temperature is being set properly now. Thank you so much for fixing this!