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

C3 device real-time energy consumption #439

Open
Alex-11976 opened this issue Jan 5, 2025 · 17 comments
Open

C3 device real-time energy consumption #439

Alex-11976 opened this issue Jan 5, 2025 · 17 comments
Labels
enhancement New feature or request

Comments

@Alex-11976
Copy link

Device type and model (or SN)

Heat Pump Wi-Fi Controller

The detail description of new feature

I would like to see the real-time consumption of the heat pump, but at the moment, I can only see the total consumption. thank you

@Alex-11976 Alex-11976 added the enhancement New feature or request label Jan 5, 2025
@wuwentao
Copy link
Owner

wuwentao commented Jan 6, 2025

@Alex-11976 sorry, I have two question:

  1. please provide your device SN
  2. is this feature supported by your device and midea official app?

Thanks

@Alex-11976
Copy link
Author

Hello, thank you for your quick response.

The serial number of the Wi-Fi controller is 0000C3311171H120F3C29410002185H3F. I can also provide the model of the heat pump that the Wi-Fi controller manages, which is MHC-V12WD2N8-C.

Yes, the feature is supported by the device. I am attaching a screenshot of the app and a photo of the device.
WhatsApp Image 2025-01-06 at 10 04 57

WhatsApp Image 2025-01-06 at 10 04 37

@wuwentao
Copy link
Owner

wuwentao commented Jan 7, 2025

@Alex-11976 your device type is 0xC3, from our document, it should be available in current support list.
https://github.com/wuwentao/midea_ac_lan/blob/master/doc/C3.md

please double check your config and follow the reamde document to enable this attribute for your device.

  1. if it works well, you can close current issue.
  2. if it still can't work, upload the full debug log file to current github issue.

thanks.

in addition, if you understand how to test with source code changes, there is more opening github issue for C3 device, we have some test purpose changes for C3 device new feature support.
please refer to #387 #399 #404

the PR changes available in midea-lan/midea-local#340
and the detail step also add in these issue.
just for your reference and you can also add comments in these issue.

@wuwentao wuwentao changed the title Energy consumption C3 device Energy consumption Jan 7, 2025
@Alex-11976
Copy link
Author

The attribute I requested is not available among those listed in the documentation :

EntityID Class Description
binary_sensor.{DEVICEID}_zone1_water_temp_mode binary_sensor Zone1 Water Temperature Mode
binary_sensor.{DEVICEID}_zone2_water_temp_mode binary_sensor Zone2 Water Temperature Mode
binary_sensor.{DEVICEID}_zone1_room_temp_mode binary_sensor Zone1 Room Temperature Mode
binary_sensor.{DEVICEID}_zone2_room_temp_mode binary_sensor Zone2 Room Temperature Mode
binary_sensor.{DEVICEID}_status_dhw binary_sensor DHW Status
binary_sensor.{DEVICEID}_status_tbh binary_sensor TBH Status
binary_sensor.{DEVICEID}_status_ibh binary_sensor IBH Status
binary_sensor.{DEVICEID}_status_heating binary_sensor Heating Status
sensor.{DEVICEID}_error_code sensor Error Code
sensor.{DEVICEID}_tank_actual_temperature sensor Tank Actual Temperature
sensor.{DEVICEID}_total_energy_consumption sensor Total Energy Consumption.The first value may be delayed because updates are only sent when the device is active
sensor.{DEVICEID}_total_produced_energy sensor Total Produced Energy
sensor.{DEVICEID}_outdoor_temperature sensor Outdoor Temperature
switch.{DEVICEID}_disinfect switch Disinfect
switch.{DEVICEID}_dhw_power switch DHW Power
switch.{DEVICEID}_eco_mode switch ECO Mode
switch.{DEVICEID}_fast_dhw switch Fast DHW
switch.{DEVICEID}_silent_mode switch Silent Mode
switch.{DEVICEID}_tbh switch TBH
switch.{DEVICEID}_zone1_curve switch Zone1 Curve
switch.{DEVICEID}_zone2_curve switch Zone2 Curve
switch.{DEVICEID}_zone1_power switch Zone1 Power
switch.{DEVICEID}_zone2_power switch Zone2 Power

As you can see, only the attribute sensor.{DEVICEID}_total_energy_consumption is available, which indicates the total consumption of the heat pump since it was first turned on. I was asking if it would be possible to display the real-time instantaneous consumption, as I can see this value in the Midea app. I assume it would be possible to add this attribute.

@wuwentao
Copy link
Owner

wuwentao commented Jan 7, 2025

@Alex-11976 got it.
anyway, you still need to test with the latest PR #340 and provide me a debug log with this code changes.
also need to add a device or app screenshot display result with totla and real value when you download this debug log.

I'm not sure which one is your expected data, I will try to check with the value from debug log and app result.

I have add a debug/test document, you can refer to https://github.com/wuwentao/midea_ac_lan/blob/089e918cb5b05913ad267d14c5f032af01607bec/doc/debug.md

once PR merged, it will available in README link.

@wuwentao wuwentao changed the title C3 device Energy consumption C3 device real-time energy consumption Jan 7, 2025
@Alex-11976
Copy link
Author

Sorry, but I'm not very prepared to run these tests. I just started learning GitHub and Home Assistant, and I don't know Python
I'll send you a video from the app where the total and real-time data are displayed
https://github.com/user-attachments/assets/54f1716d-e8a9-491a-99b0-9bdba0f1b933

@bdecl
Copy link

bdecl commented Jan 7, 2025

@Alex-11976 What's the firmware version of your device (HMI, IDU, ODU, in smarthome) ?

@wuwentao
Copy link
Owner

wuwentao commented Jan 8, 2025

@Alex-11976 we don't need this video.
what we need is device response data in debug log.
current integration will send a query to your device and if your device support it, it will response a message to HA.
this is what we need.

we can got this response message in debug log and try to compare it with your device screenshot, try to find out the app real-time energy value in response message, once we got the value location, we can add it and support it.

if you don't know how to do it, we just can pause it and wait for future progress, sorry.
as I can't find out which value is real-time energy in c3 device response message.

@Alex-11976
Copy link
Author

ok thanks I understand, I will try to debug and if I can I will send you the data. in the meantime in the app I read v2.1.44(20241128)

@wuwentao
Copy link
Owner

please update to latest v0.6.6 version, it should have the latest changes, you can enable debug log via readme and upload your full debug log, and share it to us.

@Alex-11976
Copy link
Author

Hi, I installed the update, this is what I found in the debug. Thank you
home-assistant_2025-01-16T11-12-08.535Z.log

@Fenix131313
Copy link

Hi, if it helps i have a similar wifi controller, its 171H120F 0000C3310171H120F2C214100148Q2CM, i can not see the current consumption in the mobile app but i can see it in the settings on the controller display itself.

@Alex-11976
Copy link
Author

Hi, if it helps i have a similar wifi controller, its 171H120F 0000C3310171H120F2C214100148Q2CM, i can not see the current consumption in the mobile app but i can see it in the settings on the controller display itself.

Hi, thank you, with the c3 I can see it both in the controller and in the app, so I assume that the data is there somewhere

@Alex-11976
Copy link
Author

please update to latest v0.6.6 version, it should have the latest changes, you can enable debug log via readme and upload your full debug log, and share it to us.

after I installed the update I noticed that the device temperature was set to 40 degrees and if I try to change it an error message appears erno 32 broken pipe

@wuwentao
Copy link
Owner

wuwentao commented Jan 17, 2025

@Alex-11976 first of all,your debug log is only 43 lines, you just post a error message, without any debug info.
it's not a FULL debug log, we need full debug log, please follow README document in debug part, enable debug and reboot HA, to do these action.
also include all the error action like temperature set error, most of the message and error required full debug log.

finally, if you still want to check real-time energy consumption, you still need to check the value in app and try to find some info in debug log.
or post your app value and full debug log to current github issue, we can try to check it based on the value and full debug log.

so there is more error exist with you, and you should description each error one by one with detail info.

thanks.

@wuwentao
Copy link
Owner

@Fenix131313 check these value via debug log, confirm whethere it available in log, if you can't check it, just upload the FULL debug log to current issue and description your requirements, we can help you to check it in your FULL debug log file.

@Fenix131313
Copy link

i could not find the numbers. here is one of the screenshots, here the value is 1,62kw, but it fluctuated. The other values were 0,00, 1,04, 1,16, 1,51, 1,62, 1,74, 1,97, 2,09, 2,32, 2,44, 2,55, 2,67, 2,79, 3,02, 3,14, 3,25, 3,37, 3,48, 3,72, 4,07, 4,18, 4,30, 4,53, 4,65, 4,88, 5,00, 5,11, 5,34, 5,46, 5,58, 5,69, 5,81, 5,93, and 6,04.
This is in the span of 5 minutes, between 11:19 and 11:24.
Hope this helps.

Image

home-assistant_midea_ac_lan_2025-02-09T10-28-21.002Z.log

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

No branches or pull requests

4 participants