home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
74.13k stars 31.12k forks source link

Integration Daikin power consumption entities are still disappearing #125624

Open avbfr opened 2 months ago

avbfr commented 2 months ago

The problem

Since a few days (I'm not sure if it is related to 2024.9.x Core update), I've lost again all Daikin AC Power Consumption entities.

Even an hard reboot doesn't fix the issue as reporting on other issues like #111480 .

image

I cannot find anything about it in the log since it happened a few days ago.

What version of Home Assistant Core has the issue?

2024.9.1

What was the last working version of Home Assistant Core?

2024.8.x

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Daikin

Link to integration documentation on our website

https://www.home-assistant.io/integrations/daikin

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 2 months ago

Hey there @fredrike, mind taking a look at this issue as it has been labeled with an integration (daikin) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `daikin` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign daikin` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


daikin documentation daikin source (message by IssueLinks)

avbfr commented 2 months ago

image image

Thanks for your help :-)

fredrike commented 2 months ago

Please attach debug logs from the integration including pydaikin.

avbfr commented 2 months ago

Hello, Thanks here are the logs:

2024-09-12 00:23:28.841 DEBUG (MainThread) [pydaikin.factory] Trying connection to BRP069 2024-09-12 00:23:28.841 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['common/basic_info'] 2024-09-12 00:23:28.842 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.0.98/common/basic_info {} [{}] 2024-09-12 00:23:28.857 DEBUG (MainThread) [pydaikin.daikin_brp069] Parsing ret=OK,type=aircon,reg=eu,dst=1,ver=3_3_9,pow=0,err=0,location=0,name=%44%61%69%6b%69%6e%41%43,icon=0,method=home only,port=30050,id=,pw=,lpw_flag=0,adp_kind=2,pv=2,cpv=2,cpv_minor=00,led=1,en_setzone=1,mac=XXXXXXXXXXXX,adp_mode=run,en_hol=0,ssid1=HOME,radio1=-44,grp_name=,en_grp=0 2024-09-12 00:23:28.859 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.0.98/common/get_datetime {'cur': ''} [{}] 2024-09-12 00:23:28.870 DEBUG (MainThread) [pydaikin.daikin_brp069] Parsing ret=OK,sta=0,cur=-,reg=eu,dst=1,zone=282 2024-09-12 00:23:28.871 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['common/get_remote_method', 'aircon/get_sensor_info', 'aircon/get_model_info', 'aircon/get_control_info', 'aircon/get_target', 'aircon/get_price', 'common/get_holiday', 'common/get_notify', 'aircon/get_day_power_ex', 'aircon/get_week_power', 'aircon/get_year_power', 'common/get_datetime'] 2024-09-12 00:23:28.872 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.0.98/common/get_remote_method {} [{}] 2024-09-12 00:23:28.876 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.0.98/aircon/get_sensor_info {} [{}] 2024-09-12 00:23:28.879 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.0.98/aircon/get_model_info {} [{}] 2024-09-12 00:23:28.882 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.0.98/aircon/get_control_info {} [{}] 2024-09-12 00:23:28.885 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.0.98/aircon/get_target {} [{}] 2024-09-12 00:23:28.886 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.0.98/aircon/get_price {} [{}] 2024-09-12 00:23:28.886 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.0.98/common/get_holiday {} [{}] 2024-09-12 00:23:28.886 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.0.98/common/get_notify {} [{}] 2024-09-12 00:23:28.886 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.0.98/aircon/get_day_power_ex {} [{}] 2024-09-12 00:23:28.890 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.0.98/aircon/get_week_power {} [{}] 2024-09-12 00:23:28.890 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.0.98/aircon/get_year_power {} [{}] 2024-09-12 00:23:28.891 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.0.98/common/get_datetime {} [{}] 2024-09-12 00:23:28.900 DEBUG (MainThread) [pydaikin.daikin_brp069] Parsing ret=OK,method=home only,notice_ip_int=3600,notice_sync_int=60 2024-09-12 00:23:28.904 DEBUG (MainThread) [pydaikin.daikin_brp069] Parsing ret=OK,htemp=23.0,hhum=-,otemp=13.0,err=0,cmpfreq=0 2024-09-12 00:23:28.906 DEBUG (MainThread) [pydaikin.daikin_brp069] Parsing ret=OK,model=0ABC,type=N,pv=2,cpv=2,cpv_minor=00,mid=NA,humd=0,s_humd=0,acled=0,land=0,elec=0,temp=1,temp_rng=0,m_dtct=1,ac_dst=--,disp_dry=0,dmnd=0,en_scdltmr=1,en_frate=1,en_fdir=1,s_fdir=3,en_rtemp_a=0,en_spmode=0,en_ipw_sep=0,en_mompow=0 2024-09-12 00:23:28.913 DEBUG (MainThread) [pydaikin.daikin_brp069] Parsing ret=OK,pow=0,mode=6,adv=,stemp=--,shum=--,dt1=25.0,dt2=M,dt3=23.0,dt4=25.0,dt5=25.0,dt7=25.0,dh1=AUTO,dh2=50,dh3=0,dh4=0,dh5=0,dh7=AUTO,dhh=50,b_mode=6,b_stemp=--,b_shum=--,alert=255,f_rate=7,f_dir=0,b_f_rate=7,b_f_dir=0,dfr1=5,dfr2=5,dfr3=A,dfr4=5,dfr5=5,dfr6=7,dfr7=5,dfrh=5,dfd1=0,dfd2=0,dfd3=0,dfd4=0,dfd5=0,dfd6=0,dfd7=0,dfdh=0 2024-09-12 00:23:28.922 DEBUG (MainThread) [pydaikin.daikin_brp069] Parsing ret=OK,target=0 2024-09-12 00:23:28.925 DEBUG (MainThread) [pydaikin.daikin_brp069] Parsing ret=OK,price_int=22,price_dec=0 2024-09-12 00:23:28.929 DEBUG (MainThread) [pydaikin.daikin_brp069] Parsing ret=OK,en_hol=0 2024-09-12 00:23:28.931 DEBUG (MainThread) [pydaikin.daikin_brp069] Parsing ret=OK,auto_off_flg=0,auto_off_tm=- - 2024-09-12 00:23:29.968 DEBUG (MainThread) [pydaikin.daikin_brp069] Parsing ret=OK,sta=0,cur=-,reg=eu,dst=1,zone=282 2024-09-12 00:23:30.993 DEBUG (MainThread) [pydaikin.daikin_brp069] Parsing ret=OK,today_runtime=0,datas=0/0/0/0/0/0/0 2024-09-12 00:23:31.411 DEBUG (MainThread) [pydaikin.daikin_brp069] Parsing ret=NG (time is not sync) 2024-09-12 00:23:32.021 DEBUG (MainThread) [pydaikin.daikin_brp069] Parsing ret=OK,previous_year=0/0/0/0/0/0/0/0/0/0/0/0,this_year=0/0/0/0 2024-09-12 00:23:32.023 DEBUG (MainThread) [pydaikin.factory] Daikin generated object: <pydaikin.daikin_brp069.DaikinBRP069 object at 0x7f625de120> 2024-09-12 00:23:32.028 DEBUG (MainThread) [pydaikin.factory] Trying connection to BRP069 2024-09-12 00:23:32.028 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['common/basic_info'] 2024-09-12 00:23:32.029 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.0.98/common/basic_info {} [{}] 2024-09-12 00:23:32.043 DEBUG (MainThread) [pydaikin.daikin_brp069] Parsing ret=OK,type=aircon,reg=eu,dst=1,ver=3_3_9,pow=0,err=0,location=0,name=%44%61%69%6b%69%6e%41%43,icon=0,method=home only,port=30050,id=,pw=,lpw_flag=0,adp_kind=2,pv=2,cpv=2,cpv_minor=00,led=1,en_setzone=1,mac=XXXXXXXXXXXX,adp_mode=run,en_hol=0,ssid1=HOME,radio1=-48,grp_name=,en_grp=0 2024-09-12 00:23:32.046 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.0.98/common/get_datetime {'cur': ''} [{}] 2024-09-12 00:23:32.054 DEBUG (MainThread) [pydaikin.daikin_brp069] Parsing ret=OK,sta=0,cur=-,reg=eu,dst=1,zone=282 2024-09-12 00:23:32.055 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['common/get_remote_method', 'aircon/get_sensor_info', 'aircon/get_model_info', 'aircon/get_control_info', 'aircon/get_target', 'aircon/get_price', 'common/get_holiday', 'common/get_notify', 'aircon/get_day_power_ex', 'aircon/get_week_power', 'aircon/get_year_power', 'common/get_datetime'] 2024-09-12 00:23:32.057 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.0.98/common/get_remote_method {} [{}] 2024-09-12 00:23:32.059 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.0.98/aircon/get_sensor_info {} [{}] 2024-09-12 00:23:32.063 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.0.98/aircon/get_model_info {} [{}] 2024-09-12 00:23:32.066 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.0.98/aircon/get_control_info {} [{}] 2024-09-12 00:23:32.069 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.0.98/aircon/get_target {} [{}] 2024-09-12 00:23:32.070 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.0.98/aircon/get_price {} [{}] 2024-09-12 00:23:32.070 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.0.98/common/get_holiday {} [{}] 2024-09-12 00:23:32.070 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.0.98/common/get_notify {} [{}] 2024-09-12 00:23:32.071 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.0.98/aircon/get_day_power_ex {} [{}] 2024-09-12 00:23:32.071 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.0.98/aircon/get_week_power {} [{}] 2024-09-12 00:23:32.071 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.0.98/aircon/get_year_power {} [{}] 2024-09-12 00:23:32.071 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.0.98/common/get_datetime {} [{}] 2024-09-12 00:23:32.081 DEBUG (MainThread) [pydaikin.daikin_brp069] Parsing ret=OK,method=home only,notice_ip_int=3600,notice_sync_int=60 2024-09-12 00:23:32.085 DEBUG (MainThread) [pydaikin.daikin_brp069] Parsing ret=OK,htemp=23.0,hhum=-,otemp=13.0,err=0,cmpfreq=0 2024-09-12 00:23:32.089 DEBUG (MainThread) [pydaikin.daikin_brp069] Parsing ret=OK,model=0ABC,type=N,pv=2,cpv=2,cpv_minor=00,mid=NA,humd=0,s_humd=0,acled=0,land=0,elec=0,temp=1,temp_rng=0,m_dtct=1,ac_dst=--,disp_dry=0,dmnd=0,en_scdltmr=1,en_frate=1,en_fdir=1,s_fdir=3,en_rtemp_a=0,en_spmode=0,en_ipw_sep=0,en_mompow=0 2024-09-12 00:23:32.091 DEBUG (MainThread) [pydaikin.daikin_brp069] Parsing ret=OK,pow=0,mode=6,adv=,stemp=--,shum=--,dt1=25.0,dt2=M,dt3=23.0,dt4=25.0,dt5=25.0,dt7=25.0,dh1=AUTO,dh2=50,dh3=0,dh4=0,dh5=0,dh7=AUTO,dhh=50,b_mode=6,b_stemp=--,b_shum=--,alert=255,f_rate=7,f_dir=0,b_f_rate=7,b_f_dir=0,dfr1=5,dfr2=5,dfr3=A,dfr4=5,dfr5=5,dfr6=7,dfr7=5,dfrh=5,dfd1=0,dfd2=0,dfd3=0,dfd4=0,dfd5=0,dfd6=0,dfd7=0,dfdh=0 2024-09-12 00:23:32.105 DEBUG (MainThread) [pydaikin.daikin_brp069] Parsing ret=OK,target=0 2024-09-12 00:23:32.110 DEBUG (MainThread) [pydaikin.daikin_brp069] Parsing ret=OK,price_int=22,price_dec=0 2024-09-12 00:23:32.112 DEBUG (MainThread) [pydaikin.daikin_brp069] Parsing ret=OK,en_hol=0 2024-09-12 00:23:32.113 DEBUG (MainThread) [pydaikin.daikin_brp069] Parsing ret=OK,auto_off_flg=0,auto_off_tm=- - 2024-09-12 00:23:32.124 DEBUG (MainThread) [pydaikin.daikin_brp069] Parsing ret=NG (time is not sync) 2024-09-12 00:23:32.127 DEBUG (MainThread) [pydaikin.daikin_brp069] Parsing ret=OK,today_runtime=0,datas=0/0/0/0/0/0/0 2024-09-12 00:23:33.137 DEBUG (MainThread) [pydaikin.daikin_brp069] Parsing ret=OK,sta=0,cur=-,reg=eu,dst=1,zone=282 2024-09-12 00:23:34.162 DEBUG (MainThread) [pydaikin.daikin_brp069] Parsing ret=OK,previous_year=0/0/0/0/0/0/0/0/0/0/0/0,this_year=0/0/0/0 2024-09-12 00:23:34.165 DEBUG (MainThread) [pydaikin.factory] Daikin generated object: <pydaikin.daikin_brp069.DaikinBRP069 object at 0x7f788e2f60> 2024-09-12 00:23:34.165 DEBUG (MainThread) [homeassistant.components.daikin] Connection to 192.168.0.98 successful 2024-09-12 00:23:34.167 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['aircon/get_control_info'] 2024-09-12 00:23:34.188 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.0.98/aircon/get_control_info {} [{}] 2024-09-12 00:23:34.256 DEBUG (MainThread) [pydaikin.daikin_brp069] Parsing ret=OK,pow=0,mode=6,adv=,stemp=--,shum=--,dt1=25.0,dt2=M,dt3=23.0,dt4=25.0,dt5=25.0,dt7=25.0,dh1=AUTO,dh2=50,dh3=0,dh4=0,dh5=0,dh7=AUTO,dhh=50,b_mode=6,b_stemp=--,b_shum=--,alert=255,f_rate=7,f_dir=0,b_f_rate=7,b_f_dir=0,dfr1=5,dfr2=5,dfr3=A,dfr4=5,dfr5=5,dfr6=7,dfr7=5,dfrh=5,dfd1=0,dfd2=0,dfd3=0,dfd4=0,dfd5=0,dfd6=0,dfd7=0,dfdh=0

fredrike commented 2 months ago

These rows suggest that your unit doesn't support reporting energy, everything is 0.

2024-09-12 00:23:32.127 DEBUG (MainThread) [pydaikin.daikin_brp069] Parsing ret=OK,today_runtime=0,datas=0/0/0/0/0/0/0
2024-09-12 00:23:34.162 DEBUG (MainThread) [pydaikin.daikin_brp069] Parsing ret=OK,previous_year=0/0/0/0/0/0/0/0/0/0/0/0,this_year=0/0/0/0
avbfr commented 2 months ago

Thanks @fredrike

You're right. What is intriguing is that it used to work. I assume these stats has been reset and the fact the datetime is not defined can explain why they keep 0 as value (How can the device could create stats by day/month/year without knowing the current datetime ?). I was able to set the datetime correctly. I will see in the next days if i'm able to get data again. If not, I will close this issue :-)

Thanks.

fredrike commented 2 months ago

Thanks @fredrike

You're right. What is intriguing is that it used to work. I assume these stats has been reset and the fact the datetime is not defined can explain why they keep 0 as value (How can the device could create stats by day/month/year without knowing the current datetime ?). I was able to set the datetime correctly. I will see in the next days if i'm able to get data again. If not, I will close this issue :-)

Thanks.

If you get it to work please document in on the Daikin Integration page (https://www.home-assistant.io/integrations/daikin)

avbfr commented 2 months ago

It seems after a few days, I'm starting de get stats:

image

image

And when I do a reload on the Integration, sensors are back (from 6 entity to 11):

image

I don't know why sometime theses stats are provided and sometime not. I understand this is not an issue with the integration itself but It looks like the fact these entities are provided or not depends on if any value is provided by the API or not. Couldn't be more simple to show theses entities all the time even if the value is 0 allowing people to enable it or not ?