Open mihsu81 opened 6 months ago
This is not as easy as it sounds, day/night are exposed by daikin as operation mode and not preset mode. Would require special handling in preset mode. It gets even more complex when heatingDay/Night are combined with a daikin preset mode, what to return at that moment?
Please attach a debug log so that I can see what exactly is determined now
Also attach a json where the device is in heatingDay mode
The same as in issue 114 home-assistant_daikin_onecta_2024-03-21T07-54-46.724Z.log
Can you please remind me how I can get the json file again? This one is an old one from 2022? Sorry 😁
Go to the daikin_onecta integration and press the three dots after configure, download diagnostics. The API has changed the data we get back from Daikin, please remove the old diagnostics files from your issues and upload new ones, see https://github.com/jwillemsen/daikin_onecta/issues/46 for data we don't get back anymore from Daikin
heatingDay/heatingNight are not documented as valid values as part of the new API, see https://developer.cloud.daikineurope.com/docs/b0dffcaa-7b51-428a-bdff-a7c8a64195c0/supported_features#doc-heading-operation-mode.
All sorted now .. the asusrouter integration was causing an internal server error whenever i was trying to export diagnostics data and I had to remove it.
In heatingNight mode with schedule off. daikin_onecta-heatingNight-no_schedule.json
In heatingDay mode with schedule off. daikin_onecta-heatingDay-no_schedule.json
In heatingDay mode with schedule set to Automatic 1. daikin_onecta-heatingDay-schedule-automatic_1.json
Are heatingDay/heatingNight schedule settings? They are not documented as valid values, is this something you manually set? Schedules are not supported through this integration, it assumes that HA is in full control, at the moment you enable a Daikin schedule a lot of values can't be set anymore through the API
I did see the diagnostics error in your log, made a fix for that, will be part of the next release
There are 2 schedules which can be enabled or not and they're saved in the thermostat. A schedule changes between heatingDay and heatingNight based on what I set in the Onecta app or the local thermostat. Even if scheduling is not enabled, the operation modes are still named heatingDay and heatingNight and can be changed from Onecta or the thermostat. Currently the Automatic 1 schedule is enabled for household members who prefer the thermostat for scheduling. I haven't seen any limitation in my case if the thermostat scheduling is enabled.
As these are not documented by Daikin at all I am not sure whether these are generic operation modes that more devices can return or that they are caused by some setting in specifically your device.
@Daikin-Europe, can you maybe give some insights?
Maybe a dropdown list to select the operation mode heatingDay/Night?
P.S. Would it be possible to add a dropdown list to select the current schedule or set it to none (disabling it)?
The operation modes which map to the HA hvac mode are fixed by HA, we are not allowed to extend them, see https://developers.home-assistant.io/docs/core/entity/climate/#hvac-modes
Setting a schedule is very likely possible, but not an easy task, need to analyze the data, implement it, test it, at least a day of work and very low on my priority list (just the update to this new API took me a lot of time, more than I really wanted to put into this hobby project)
Understood. Indeed, it is more a nice to have than anything else. Whenever you find the time.
Thanks again for the great work you put into this migration and the integration in general.
It's strange that these operation modes are not supported, because the gateway is:
Please contact Daikin for anything you miss. The documentation for setting/retrieving the current schedule seems not to be complete, asked Daikin to extend it.
Any guidelines on how I can contact them to add the missing operation modes? Thanks.
See https://developer.cloud.daikineurope.com/docs/b0dffcaa-7b51-428a-bdff-a7c8a64195c0/certification
Thank you. I've emailed them. Hopefully they'll come up with a solution easy to implement.
Looks Daikin added the operation modes to their documentation, still not 100% what the best mapping is to HA, a schedule or a preset mode, but both will not be a small/easy change, and very likely not a 100% fit
Version: v4.0.18
Please add heatingDay & heatingNight as presets for the Room Temperature climate entity in addition to Away, for the D2CND Gas boiler. Currently the integration sets the Mode to heatingDay (listed as Heat). The main reason for this is to keep the schedules in the thermostat so other people in the house can set it without depending on HA.
daikin_d2cnd.json
Thank you in advance.