wuwentao / midea_ac_lan

Auto-configure and then control your Midea M-Smart devices (Air conditioner, Fan, Water heater, Washer, etc) via local area network.
MIT License
95 stars 5 forks source link

Energy consumption of AC is always zero #102

Closed semyonchetvertnyh closed 17 hours ago

semyonchetvertnyh commented 1 week ago

HA core version

2024.6.0

Integration version

0.4.1

Device type and model

Air Conditioner 00000Q1B (44204), Air Conditioner 00000Q15 (44204)

Used App

MSmartHome

The description of problem

I've added extra sensors (Total Energy Consumption, Current Energy Consumption, Realtime Power) to my AC, but it's always zero.

I've also tried all 3 power analysis methods, but no one of them works. I'm not pretty sure I did it correctly. I've just filled the Customize input with JSON like {"power_analysis_method": 2}, but I guess it should work like that.

Can you please help me to debug the issue?

The logs

2024-06-07 13:43:11.514 DEBUG (Guest Bedroom AC) [custom_components.midea_ac_lan.midea.core.device] [153931628246889] Sending: {'header': 'aa20ac00000000000303', 'body': '418100ff000000000000000000000000000000000a8b', 'message type': '03', 'body type': '41'}
2024-06-07 13:43:11.521 DEBUG (Iryna’s Bedroom AC) [custom_components.midea_ac_lan.midea.core.device] [152832116619840] Sending: {'header': 'aa20ac00000000000303', 'body': '418100ff000000000000000000000000000000000d08', 'message type': '03', 'body type': '41'}
2024-06-07 13:43:11.523 DEBUG (Guest Bedroom AC) [custom_components.midea_ac_lan.midea.core.device] [153931628246889] Sending: {'header': 'aa1aac00000000000303', 'body': 'b106420018001500170033024b000b80', 'message type': '03', 'body type': 'b1'}
2024-06-07 13:43:11.524 DEBUG (Iryna’s Bedroom AC) [custom_components.midea_ac_lan.midea.core.device] [152832116619840] Sending: {'header': 'aa1aac00000000000303', 'body': 'b106420018001500170033024b000ebf', 'message type': '03', 'body type': 'b1'}
2024-06-07 13:43:11.524 DEBUG (Guest Bedroom AC) [custom_components.midea_ac_lan.midea.core.device] [153931628246889] Sending: {'header': 'aa11ac00000000000303', 'body': '41210144000109', 'message type': '03', 'body type': '41'}
2024-06-07 13:43:11.524 DEBUG (Iryna’s Bedroom AC) [custom_components.midea_ac_lan.midea.core.device] [152832116619840] Sending: {'header': 'aa11ac00000000000303', 'body': '41210144000109', 'message type': '03', 'body type': '41'}
2024-06-07 13:43:11.543 DEBUG (Semyon’s Bedroom AC) [custom_components.midea_ac_lan.midea.core.device] [153931628246689] Sending: {'header': 'aa20ac00000000000303', 'body': '418100ff000000000000000000000000000000001068', 'message type': '03', 'body type': '41'}
2024-06-07 13:43:11.548 DEBUG (Semyon’s Bedroom AC) [custom_components.midea_ac_lan.midea.core.device] [153931628246689] Sending: {'header': 'aa1aac00000000000303', 'body': 'b106420018001500170033024b001163', 'message type': '03', 'body type': 'b1'}
2024-06-07 13:43:11.549 DEBUG (Semyon’s Bedroom AC) [custom_components.midea_ac_lan.midea.core.device] [153931628246689] Sending: {'header': 'aa11ac00000000000303', 'body': '41210144000109', 'message type': '03', 'body type': '41'}
2024-06-07 13:43:11.662 DEBUG (Guest Bedroom AC) [custom_components.midea_ac_lan.midea.devices.ac.device] [153931628246889] Received: {'header': 'aa28ac00000000000303', 'body': 'c0004b667f7f000000000073ff0f00080000000000000000000000000ad4', 'message type': '03', 'body type': 'c0'}
2024-06-07 13:43:11.662 DEBUG (Guest Bedroom AC) [custom_components.midea_ac_lan.midea.core.device] [153931628246889] Status update: {'power': False, 'mode': 2, 'target_temperature': 27.0, 'fan_speed': 102, 'swing_vertical': False, 'swing_horizontal': False, 'smart_eye': False, 'dry': False, 'aux_heating': False, 'boost_mode': False, 'sleep_mode': False, 'frost_protect': False, 'comfort_mode': False, 'eco_mode': False, 'natural_wind': False, 'temp_fahrenheit': False, 'screen_display': False, 'full_dust': False, 'indoor_temperature': 32.8, 'outdoor_temperature': None, 'indirect_wind': False}
2024-06-07 13:43:11.671 DEBUG (Iryna’s Bedroom AC) [custom_components.midea_ac_lan.midea.devices.ac.device] [152832116619840] Received: {'header': 'aa28ac00000000000303', 'body': 'c0004b667f7f000000000076ff0f00040000000000000000000000000d6d', 'message type': '03', 'body type': 'c0'}
2024-06-07 13:43:11.671 DEBUG (Iryna’s Bedroom AC) [custom_components.midea_ac_lan.midea.core.device] [152832116619840] Status update: {'power': False, 'mode': 2, 'target_temperature': 27.0, 'fan_speed': 102, 'swing_vertical': False, 'swing_horizontal': False, 'smart_eye': False, 'dry': False, 'aux_heating': False, 'boost_mode': False, 'sleep_mode': False, 'frost_protect': False, 'comfort_mode': False, 'eco_mode': False, 'natural_wind': False, 'temp_fahrenheit': False, 'screen_display': False, 'full_dust': False, 'indoor_temperature': 34.4, 'outdoor_temperature': None, 'indirect_wind': False}
2024-06-07 13:43:11.687 DEBUG (Semyon’s Bedroom AC) [custom_components.midea_ac_lan.midea.devices.ac.device] [153931628246689] Received: {'header': 'aa28ac00000000000303', 'body': 'c0012d657f7f00000000006b8411004600000000000000000000000010a6', 'message type': '03', 'body type': 'c0'}
2024-06-07 13:43:11.687 DEBUG (Semyon’s Bedroom AC) [custom_components.midea_ac_lan.midea.core.device] [153931628246689] Status update: {'power': True, 'mode': 1, 'target_temperature': 29.0, 'fan_speed': 101, 'swing_vertical': False, 'swing_horizontal': False, 'smart_eye': False, 'dry': False, 'aux_heating': False, 'boost_mode': False, 'sleep_mode': False, 'frost_protect': False, 'comfort_mode': False, 'eco_mode': False, 'natural_wind': False, 'temp_fahrenheit': False, 'screen_display': True, 'full_dust': False, 'indoor_temperature': 28.6, 'outdoor_temperature': 41.4}
2024-06-07 13:43:11.802 DEBUG (Guest Bedroom AC) [custom_components.midea_ac_lan.midea.devices.ac.device] [153931628246889] Received: {'header': 'aa29ac00000000000303', 'body': 'b106420000010118000000150000012c1700000164330200004b0000000035', 'message type': '03', 'body type': 'b1'}
2024-06-07 13:43:11.802 DEBUG (Guest Bedroom AC) [custom_components.midea_ac_lan.midea.core.device] [153931628246889] Status update: {'screen_display_alternate': True, 'indirect_wind': False, 'indoor_humidity': 44, 'screen_display': False}
2024-06-07 13:43:11.817 DEBUG (Iryna’s Bedroom AC) [custom_components.midea_ac_lan.midea.devices.ac.device] [152832116619840] Received: {'header': 'aa29ac00000000000303', 'body': 'b10642000001011800000015000001271700000164330200004b00000000c8', 'message type': '03', 'body type': 'b1'}
2024-06-07 13:43:11.817 DEBUG (Iryna’s Bedroom AC) [custom_components.midea_ac_lan.midea.core.device] [152832116619840] Status update: {'screen_display_alternate': True, 'indirect_wind': False, 'indoor_humidity': 39, 'screen_display': False}
2024-06-07 13:43:11.826 DEBUG (Semyon’s Bedroom AC) [custom_components.midea_ac_lan.midea.devices.ac.device] [153931628246689] Received: {'header': 'aa29ac00000000000303', 'body': 'b10642000001011800000015000001361700000164330200004b0000000080', 'message type': '03', 'body type': 'b1'}
2024-06-07 13:43:11.827 DEBUG (Semyon’s Bedroom AC) [custom_components.midea_ac_lan.midea.core.device] [153931628246689] Status update: {'screen_display_alternate': True, 'indirect_wind': False, 'indoor_humidity': 54}
2024-06-07 13:43:11.912 DEBUG (Guest Bedroom AC) [custom_components.midea_ac_lan.midea.devices.ac.device] [153931628246889] Received: {'header': 'aa20ac00000000000303', 'body': 'c12101440000000000000000000000000000000001df', 'message type': '03', 'body type': 'c1'}
2024-06-07 13:43:11.912 DEBUG (Guest Bedroom AC) [custom_components.midea_ac_lan.midea.core.device] [153931628246889] Status update: {'total_energy_consumption': 0.0, 'current_energy_consumption': 0.0, 'realtime_power': 0.0, 'indirect_wind': False, 'screen_display': False}
2024-06-07 13:43:11.922 DEBUG (Iryna’s Bedroom AC) [custom_components.midea_ac_lan.midea.devices.ac.device] [152832116619840] Received: {'header': 'aa20ac00000000000303', 'body': 'c12101440000000000000000000000000000000001df', 'message type': '03', 'body type': 'c1'}
2024-06-07 13:43:11.922 DEBUG (Iryna’s Bedroom AC) [custom_components.midea_ac_lan.midea.core.device] [152832116619840] Status update: {'total_energy_consumption': 0.0, 'current_energy_consumption': 0.0, 'realtime_power': 0.0, 'indirect_wind': False, 'screen_display': False}
2024-06-07 13:43:11.937 DEBUG (Semyon’s Bedroom AC) [custom_components.midea_ac_lan.midea.devices.ac.device] [153931628246689] Received: {'header': 'aa20ac00000000000303', 'body': 'c12101440000000000000000000000000000000001df', 'message type': '03', 'body type': 'c1'}
2024-06-07 13:43:11.938 DEBUG (Semyon’s Bedroom AC) [custom_components.midea_ac_lan.midea.core.device] [153931628246689] Status update: {'total_energy_consumption': 0.0, 'current_energy_consumption': 0.0, 'realtime_power': 0.0}
wuwentao commented 1 week ago

first of all, your AC device should support this feature.

debug log should be enable with below two options:

  logs:
    custom_components.midea_ac_lan: debug
    midealocal: debug

then try with { "power_analysis_method": 2 } the value can be 1/2/3, not only 2

semyonchetvertnyh commented 1 week ago

Ok, I'll send debug logs a bit later.

Yeah, I tried all of three methods.

semyonchetvertnyh commented 6 days ago

first of all, your AC device should support this feature. Is there a way to determine it?

Regarding to the logs, I didn't find any new logs with this configuration.

semyonchetvertnyh commented 1 day ago

first of all, your AC device should support this feature.

@wuwentao Is there a way to determine it using the app or any other way?

wuwentao commented 17 hours ago

first of all, your AC device should support this feature.

@wuwentao Is there a way to determine it using the app or any other way?

I don't think so, it's not a software feature, it MUST have hardware requirement.....

if your AC device support it, you also can got it from the official Midea Meiju app....

I have 5 Midea AC device, only 1 support it, when I bought it, I can got this feature support from the AC product description. old module should NOT support it.

so I will close this ISSUE.