rospogrigio / daikin_residential

Cloud control of Daikin devices that are supported by Daikin Residential Controller app.
GNU General Public License v3.0
283 stars 37 forks source link

Support for Power consumption #123

Open khzd opened 1 year ago

khzd commented 1 year ago

Hello Thanks for this custom component, great work :) I would like support for power consumption, in this release we have access only to energy consumption ( daily...) . Looking at the code, it's seems that the sensor for power in not yet implemented. Any challenge to have this sensor?

Cheers

jwillemsen commented 1 year ago

What do you mean with power consumption? See the diagnostics of this integration in your HA installation which data daikin exports

khzd commented 1 year ago

Hello thanks for your prompt response. Yes i mean by power consumption the instantaneous consuption, it's done in W and not in WH. By the way, I see in the code that there energy are given according to three "period', daily, weekly and yearly, ie SENSOR_PERIODS = { SENSOR_PERIOD_DAILY: "Daily", SENSOR_PERIOD_WEEKLY: "Weekly", SENSOR_PERIOD_YEARLY: "Yearly",

this is doing the job to give energy consumption WH but not power consumption W

My Diag: "home_assistant": { "installation_type": "Home Assistant Supervised", "version": "2023.3.1", "dev": false, "hassio": true, "virtualenv": false, "python_version": "3.10.10", "docker": true, "arch": "x86_64", "timezone": "Europe/Paris", "os_name": "Linux", "os_version": "5.10.0-21-amd64", "supervisor": "2023.01.1", "host_os": "Debian GNU/Linux 11 (bullseye)", "docker_version": "23.0.1", "chassis": "desktop", "run_as_root": true .....

, "integration_manifest": { "domain": "daikin_residential", "name": "Daikin Residential Controller", "version": "2.3.0", "documentation": "https://github.com/rospogrigio/daikin_residential/", "dependencies": [], "codeowners": [ "@rospogrigio" ], "issue_tracker": "https://github.com/rospogrigio/daikin_residential/issues", "requirements": [ "oic==1.4.0" ], "iot_class": "cloud_polling", "config_flow": true, "is_built_in": false },

sample of the diag, which section may help you ? the diag is a very long with some credential data :(

Cheers

jwillemsen commented 1 year ago

I haven't seen any daikin device exporting power consumption. Do you see that in the onecta app? Check the daignostics data, do you see any power consumption there, if not, daikin doesn't export is so we can't show it

khzd commented 1 year ago

Hello Yes in the app we have consumption every 2 hours, in this interface we have the total consumption every 15mn but cumulative consumption not the absolute consumption during the same periode

rgerhards commented 1 year ago

I think there is a misunderstanding. The "Daily [heat/cooling] energy consumption" is a monotonically increasing counter with daily reset to 0. If you use this with a history card in HA, you will see how it evolves over the day. Most probably in 2h increments, as the API seems not to provide better resolution. Also note that you will not see an update at the hour sharp - the Daiking API servers lag some time behind, for me currently 10 to 15 minutes.

If you want to export the hourly data, you can do this via automations.

dev66 commented 1 year ago

Hello, so is it a definitive fact that the current energy consumption is not part of the cloud API data? Thanks

rgerhards commented 1 year ago

I guess you mean the current power consumption (W vs. Wh)? No, I think it is not available. It's not available in the App either. Also, I wonder why this value could be useful. It's just a snapshot that can change very quickly.

SvilliVanilli commented 1 year ago

Lowest continuous value of Power (W) before the unit gets in ON/Off cycle is indication how well is designed the inverter AC.