jwillemsen / daikin_onecta

Home Assistant Integration for devices supported by the Daikin Onecta App
https://github.com/jwillemsen/daikin_onecta
GNU General Public License v3.0
263 stars 9 forks source link

[Feature Request]: D2CND Gas boiler - heatingDay & heatingNight as presets in addition to Away #113

Open mihsu81 opened 6 months ago

mihsu81 commented 6 months ago

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.

image daikin_d2cnd.json

Thank you in advance.

jwillemsen commented 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?

jwillemsen commented 6 months ago

Please attach a debug log so that I can see what exactly is determined now

jwillemsen commented 6 months ago

Also attach a json where the device is in heatingDay mode

mihsu81 commented 6 months ago

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 😁

jwillemsen commented 6 months ago

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

jwillemsen commented 6 months ago

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.

mihsu81 commented 6 months ago

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

jwillemsen commented 6 months ago

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

mihsu81 commented 6 months ago

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.

jwillemsen commented 6 months ago

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?

mihsu81 commented 6 months ago

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)?

jwillemsen commented 6 months ago

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)

mihsu81 commented 6 months ago

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: image

jwillemsen commented 6 months ago

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.

mihsu81 commented 6 months ago

Any guidelines on how I can contact them to add the missing operation modes? Thanks.

jwillemsen commented 6 months ago

See https://developer.cloud.daikineurope.com/docs/b0dffcaa-7b51-428a-bdff-a7c8a64195c0/certification

mihsu81 commented 6 months ago

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.

jwillemsen commented 5 months ago

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