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

Feature(CD):Add Water Tank Level Display for Swan 2 Heat Pump #425

Open
hexCut opened this issue Dec 23, 2024 · 3 comments · May be fixed by midea-lan/midea-local#345
Open

Feature(CD):Add Water Tank Level Display for Swan 2 Heat Pump #425

hexCut opened this issue Dec 23, 2024 · 3 comments · May be fixed by midea-lan/midea-local#345
Labels
add_new_feature enhancement New feature or request
Milestone

Comments

@hexCut
Copy link

hexCut commented Dec 23, 2024

Device type and model (or SN)

SWAN2 153931628204291

The detail description of new feature

When using the Swan 2 heat pump (Midea/Clivet), in addition to displaying the water temperature, it would be helpful to display the water tank level. Currently, the water tank level is measured in 4 levels, as shown in the attached screenshot.

This feature would enhance the user experience by providing a more complete view of the system’s status directly from the integration.

Proposed Enhancement:
• Add functionality to retrieve and display the water tank level.
• Use the 4-level measurement standard available in the device’s API or system.

Foto 23-12-24, 23 19 58

@hexCut hexCut added the enhancement New feature or request label Dec 23, 2024
@wuwentao
Copy link
Owner

@hexCut please edit current issue OR pos new info.

  1. description your device type, refer to README document.
  2. provided your device SN, you can use discover to print it or any method.

in addition, I will provide a command line tool to display these info in next release. it still not available now.

@hexCut
Copy link
Author

hexCut commented Dec 24, 2024

CD Heat Pump Water Heater CC.md

2024-12-18 09:23:46.828 DEBUG (MainThread) [midealocal.discover] Found a supported device: {'device_id': 153931628204291, 'type': 205, 'ip_address': '192.168.20.167', 'port': 6444, 'model': 'RSJ000CB', 'sn': '0000CD311RSJ000CB2618B100053MY44', 'protocol': 3}

@wuwentao wuwentao changed the title Add Water Tank Level Display for Swan 2 Heat Pump Feature(CD):Add Water Tank Level Display for Swan 2 Heat Pump Dec 25, 2024
@wuwentao wuwentao added this to the 0.6.6 milestone Dec 25, 2024
@wuwentao
Copy link
Owner

wuwentao commented Dec 25, 2024

add some debug code in this PR: midea-lan/midea-local#345
you can manual change the midealocal python pip lib source code to test with it.

brief step:

  1. login to HAOS
  2. start homeassitant docker
  3. replace file for midealocal python pip package in homeassitant core(use wget to download github PR raw file and replace it)
  4. enable debug log for both midea_ac_lan and midealocal in configuration.yaml
  5. reboot HA.

after your device works well(start about 3-5 minutes), try to upload full debug log file to current github issue and I will check the detail.
as this value only can be got from debug log now, we can confirm it later.

how to change it, below is the detail steps:

  1. if you are using HAOS, you should install Add-on [Advanced SSH & Web Terminal] and disable [Protected Mode], once it done, you can ssh to your HAOS, and enter docker in HAOS docker exec -it homeassistant /bin/bash, contiune the step to check midea-local install path
  2. if you not using HAOS, just check midea-local install path as the next step
    3.get midea-local install path with command pip show midea-local, it will show info for you, for example, my location is Location: /usr/local/lib/python3.12/site-packages
  3. then we can replace the file under /usr/local/lib/python3.12/site-packages/midealocal/devices/cd/ with the code changes, using vi command line tool or wget to download github raw file.
  4. make sure you have enabled debug log in configuration.yaml
  5. reboot HA and test with it, confirm with the result or debug log.

after device reboot 3-5 minutes, download full debug log to your PC and upload this log file to current github issue
I will continue improve it with the debug log output

you can also search this value in debug log with water_level keyword, to confirm the output value.
current is raw digit value, I'm not sure with 4 levels output, maybe 1-4? we need to test and confirm the output from your device.

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

Successfully merging a pull request may close this issue.

2 participants