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

[daikin] Add Support for week and year power info #6115

Closed
PascalTurbo opened this issue Sep 22, 2019 · 3 comments
Closed

[daikin] Add Support for week and year power info #6115

PascalTurbo opened this issue Sep 22, 2019 · 3 comments
Labels
enhancement An enhancement or new feature for an existing add-on

Comments

@PascalTurbo
Copy link

With some daikin units it's possible to gather information about the power consumption. It would be great seeing this supported here also.

The API is a bit weird:

On a week basis:

# GET /aircon/get_week_power
ret=OK,today_runtime=137,datas=0/0/0/100/0/300/500

And for the year:

# GET /aircon/get_year_power
ret=OK,previous_year=0/0/0/0/0/0/0/0/0/0/0/0,this_year=0/0/0/0/0/0/0/0/2

It seems to only return created till now, so "this_year" has 9 entries because it's September.

Also the unit for week are in Wh while the unit of the year data is in kWh.

I'll try to do some wiresharking on my iPhones data because there are more information available (current day, last week, and year with decimal values).

I suggest catching only the last value and store it as "current_week" or "current_year" so it's easy to work with.

Bests
Pascal

@PascalTurbo
Copy link
Author

The results of my Wireshark capture:

# GET /aircon/get_week_power_ex
ret=OK,s_dayw=0,week_heat=8/3/0/0/1/0/0/0/1/9/0/0/0/1,week_cool=0/0/0/0/0/0/0/0/0/0/0/0/0/0

# GET /aircon/get_year_power_ex
ret=OK,curr_year_heat=0/0/0/0/0/0/0/0/24/0/0/0,prev_year_heat=0/0/0/0/0/0/0/0/0/0/0/0,curr_year_cool=0/0/0/0/0/0/0/0/0/0/0/0,prev_year_cool=0/0/0/0/0/0/0/0/0/0/0/0

GET /aircon/get_day_power_ex
ret=OK,curr_day_heat=0/0/0/0/0/0/3/1/2/1/1/0/0/0/0/0/0/0/0/0/0/0/0/0,prev_1day_heat=0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/1/2/0/0/0,curr_day_cool=0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0,prev_1day_cool=0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0

@wborn wborn added the enhancement An enhancement or new feature for an existing add-on label Sep 24, 2019
@jimtng
Copy link
Contributor

jimtng commented May 3, 2020

There's currently some work on this #7471

cpmeister pushed a commit that referenced this issue May 23, 2020
…7708)

* [daikin] Add Energy, compressor frequency and special mode channels

#6980: Add compressor frequency channel
#6115: Add energy current year channels

* Update small typos and code refactoring as suggested by cpmeister
* Update small typos and added units where possible

Signed-off-by: Lukas Agethen <lukas83@gmx.de>
LoungeFlyZ pushed a commit to LoungeFlyZ/openhab2-addons that referenced this issue Jun 8, 2020
…penhab#7708)

* [daikin] Add Energy, compressor frequency and special mode channels

openhab#6980: Add compressor frequency channel
openhab#6115: Add energy current year channels

* Update small typos and code refactoring as suggested by cpmeister
* Update small typos and added units where possible

Signed-off-by: Lukas Agethen <lukas83@gmx.de>
J-N-K pushed a commit to J-N-K/openhab-addons that referenced this issue Jul 14, 2020
…penhab#7708)

* [daikin] Add Energy, compressor frequency and special mode channels

openhab#6980: Add compressor frequency channel
openhab#6115: Add energy current year channels

* Update small typos and code refactoring as suggested by cpmeister
* Update small typos and added units where possible

Signed-off-by: Lukas Agethen <lukas83@gmx.de>
CSchlipp pushed a commit to CSchlipp/openhab-addons that referenced this issue Jul 26, 2020
…penhab#7708)

* [daikin] Add Energy, compressor frequency and special mode channels

openhab#6980: Add compressor frequency channel
openhab#6115: Add energy current year channels

* Update small typos and code refactoring as suggested by cpmeister
* Update small typos and added units where possible

Signed-off-by: Lukas Agethen <lukas83@gmx.de>
Signed-off-by: CSchlipp <christian@schlipp.de>
andrewfg pushed a commit to andrewfg/openhab-addons that referenced this issue Aug 31, 2020
…penhab#7708)

* [daikin] Add Energy, compressor frequency and special mode channels

openhab#6980: Add compressor frequency channel
openhab#6115: Add energy current year channels

* Update small typos and code refactoring as suggested by cpmeister
* Update small typos and added units where possible

Signed-off-by: Lukas Agethen <lukas83@gmx.de>
andrewfg pushed a commit to andrewfg/openhab-addons that referenced this issue Aug 31, 2020
…penhab#7708)

* [daikin] Add Energy, compressor frequency and special mode channels

openhab#6980: Add compressor frequency channel
openhab#6115: Add energy current year channels

* Update small typos and code refactoring as suggested by cpmeister
* Update small typos and added units where possible

Signed-off-by: Lukas Agethen <lukas83@gmx.de>
andrewfg pushed a commit to andrewfg/openhab-addons that referenced this issue Aug 31, 2020
…penhab#7708)

* [daikin] Add Energy, compressor frequency and special mode channels

openhab#6980: Add compressor frequency channel
openhab#6115: Add energy current year channels

* Update small typos and code refactoring as suggested by cpmeister
* Update small typos and added units where possible

Signed-off-by: Lukas Agethen <lukas83@gmx.de>
andrewfg pushed a commit to andrewfg/openhab-addons that referenced this issue Aug 31, 2020
…penhab#7708)

* [daikin] Add Energy, compressor frequency and special mode channels

openhab#6980: Add compressor frequency channel
openhab#6115: Add energy current year channels

* Update small typos and code refactoring as suggested by cpmeister
* Update small typos and added units where possible

Signed-off-by: Lukas Agethen <lukas83@gmx.de>
DaanMeijer pushed a commit to DaanMeijer/openhab-addons that referenced this issue Sep 1, 2020
…penhab#7708)

* [daikin] Add Energy, compressor frequency and special mode channels

openhab#6980: Add compressor frequency channel
openhab#6115: Add energy current year channels

* Update small typos and code refactoring as suggested by cpmeister
* Update small typos and added units where possible

Signed-off-by: Lukas Agethen <lukas83@gmx.de>
Signed-off-by: Daan Meijer <daan@studioseptember.nl>
markus7017 pushed a commit to markus7017/openhab-addons that referenced this issue Sep 19, 2020
…penhab#7708)

* [daikin] Add Energy, compressor frequency and special mode channels

openhab#6980: Add compressor frequency channel
openhab#6115: Add energy current year channels

* Update small typos and code refactoring as suggested by cpmeister
* Update small typos and added units where possible

Signed-off-by: Lukas Agethen <lukas83@gmx.de>
@hmerk
Copy link
Contributor

hmerk commented Jul 25, 2021

closed due to inactivity

@hmerk hmerk closed this as completed Jul 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement or new feature for an existing add-on
Projects
None yet
Development

No branches or pull requests

4 participants