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

Problem with .schedule_list_heating() function #6

Closed
remy-lavabre opened this issue Oct 29, 2023 · 2 comments
Closed

Problem with .schedule_list_heating() function #6

remy-lavabre opened this issue Oct 29, 2023 · 2 comments

Comments

@remy-lavabre
Copy link
Contributor

Line 245: out_schedules.append(self._unmarshall_schedule(schedule))
Line 308: ctemp = float(ctemp)/10
Line 344: print(pac_daikin.schedule_list_heating())

The return :

/m2m:rsp/pc/m2m:cin/con
RES: >>> {'m2m:rsp': {'rsc': 2000, 'rqi': '68ce2', 'to': 'python-daikin-altherma', 'fr': '/[0]/MNAE/1/Schedule/List/Heating/la', 'pc': {'m2m:cin': {'rn': '00000008', 'ri': '003f_00000008', 'pi': '003f', 'ty': 4, 'ct': '20231013T145336Z', 'lt': '20231013T145336Z', 'st': 8, 'con': '{"data":["$NULL|0|0700,200;0900,180;1700,200;2300,180;,;,;0700,200;0900,180;1700,200;2300,180;,;,;0700,200;0900,180;1700,200;2300,180;,;,;0700,200;0900,180;1700,200;2300,180;,;,;0700,200;0900,180;1700,200;2300,180;,;,;0800,200;2300,180;,;,;,;,;0800,200;2300,180;,;,;,;,","$NULL|0|0700,200;0900,180;1200,200;1400,180;1700,200;2300,180;0700,200;0900,180;1200,200;1400,180;1700,200;2300,180;0700,200;0900,180;1200,200;1400,180;1700,200;2300,180;0700,200;0900,180;1200,200;1400,180;1700,200;2300,180;0700,200;0900,180;1200,200;1400,180;1700,200;2300,180;0800,200;2300,180;,;,;,;,;0800,200;2300,180;,;,;,;,","$NULL|0|0800,200;2300,180;,;,;,;,;0800,200;2300,180;,;,;,;,;0800,200;2300,180;,;,;,;,;0800,200;2300,180;,;,;,;,;0800,200;2300,180;,;,;,;,;0800,200;2300,180;,;,;,;,;0800,200;2300,180;,;,;,;,","LAVABRE|1|0330,200;1800,180;,;,;,;,;0330,200;1800,180;,;,;,;,;0330,200;1800,180;,;,;,;,;0330,200;1800,180;,;,;,;,;0330,200;1800,180;,;,;,;,;0330,200;1800,180;,;,;,;,;0330,200;1800,180;,;,;0000,180;0000,180","$NULL|1|0010,120;0000,180;0000,180;0000,180;0000,180;0000,;,;,;,;,;,;,;,;,;,;,;,;,;,;,;,;,;,;,;,;,;,;,;,;,;,;,;,;,;,;,;,;,;,;,;,;,","$NULL|1|,;,;,;,;,;,;,;,;,;,;,;,;,;,;,;,;,;,;,;,;,;,;,;,;,;,;,;,;,;,;,;,;,;,;,;,;,;,;,;,;,;,"]}'}}}}
/home/remy/Téléchargements/python-daikin-altherma-0.2.0/daikin_altherma/init.py:55: DeprecationWarning: The dpath.util package is being deprecated. All util functions have been moved to dpath package top level.
return dpath.util.get(result, output_path)
Traceback (most recent call last):
File "/home/remy/Téléchargements/python-daikin-altherma-0.2.0/daikin_altherma/init.py", line 344, in
print(pac_daikin.schedule_list_heating())
File "/home/remy/Téléchargements/python-daikin-altherma-0.2.0/daikin_altherma/init.py", line 245, in schedule_list_heating
out_schedules.append(self._unmarshall_schedule(schedule))
File "/home/remy/Téléchargements/python-daikin-altherma-0.2.0/daikin_altherma/init.py", line 308, in _unmarshall_schedule
ctemp = float(ctemp)/10
ValueError: could not convert string to float: ''

@Frankkkkk
Copy link
Owner

Frankkkkk commented Oct 29, 2023

Hi Remy,
The fix is on the MR #5 . I'll release a new version asap.
Cheers

@Frankkkkk
Copy link
Owner

v0.3.0 is out :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants