Skip to content
This repository was archived by the owner on Dec 13, 2023. It is now read-only.

Commit 64fd625

Browse files
committed
fix power/energy in ATTRIBUTES
1 parent 31ed20d commit 64fd625

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

daikinapi.py

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ class Daikin:
2929
"ver",
3030
"type",
3131
"today_runtime",
32-
"today_energy_consumption",
33-
"current_month_energy_consumption",
32+
"today_power_consumption",
33+
"current_month_power_consumption",
3434
"price_int",
3535
"compressor_frequency",
3636
"inside_temperature",
@@ -94,18 +94,10 @@ def _get_week(self, ex=False):
9494
"""
9595
Example (ex=False):
9696
ret=OK,today_runtime=601,datas=0/0/0/0/0/0/1000
97-
<<<<<<< HEAD
98-
(datas: values in Watt/hour, last day last)
99-
Example (ex=True):
100-
ret=OK,s_dayw=2,week_heat=10/0/0/0/0/0/0/0/0/0/0/0/0/0,week_cool=0/0/0/0/0/0/0/0/0/0/0/0/0/0
101-
(week_*: values in 100Watt/hour, last day first)
102-
Probably 'ex' refers to "exclusively this device"
103-
=======
10497
(datas: values in Watts, last day last)
10598
Example (ex=True):
10699
ret=OK,s_dayw=2,week_heat=10/0/0/0/0/0/0/0/0/0/0/0/0/0,week_cool=0/0/0/0/0/0/0/0/0/0/0/0/0/0
107100
(week_*: values in 100Watts, last day first)
108-
>>>>>>> 038728d (corrected existing power consumption attributes and added additional power consumption values)
109101
:return: dict
110102
"""
111103
return self._get("/aircon/get_week_power" + ("_ex" if ex else ""))
@@ -114,18 +106,10 @@ def _get_year(self, ex=False):
114106
"""
115107
Example (ex=False):
116108
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/0/1
117-
<<<<<<< HEAD
118-
(*_year: values in 100Watt/hour per month (jan-dec))
119-
Example (ex=True):
120-
ret=OK,curr_year_heat=0/0/0/0/0/0/0/0/0/0/0/1,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
121-
(*_year_*: values in 100Watt/hour per month (jan-dec))
122-
Probably 'ex' refers to "exclusively this device"
123-
=======
124109
(*_year: values in 100Watts per month (jan-dec))
125110
Example (ex=True):
126111
ret=OK,curr_year_heat=0/0/0/0/0/0/0/0/0/0/0/1,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
127112
(*_year_*: values in 100Watts per month (jan-dec))
128-
>>>>>>> 038728d (corrected existing power consumption attributes and added additional power consumption values)
129113
:return: dict
130114
"""
131115
return self._get("/aircon/get_year_power" + ("_ex" if ex else ""))

0 commit comments

Comments
 (0)