-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
Tank full alert #4
Comments
I would like to second this. This is really the issue preventing me from using this approach. |
The issue here is that the "Tank Full" Error is the same as "No Tank at all". The error code already visible in the JSON published to the MQTT state topic so you can also take a look at that and observe it changing. I agree that there should be some kind of autoconfigured HA sensor reporting the error state, however personally I'd want it to be reliable. |
can you point me to where this is in the JSON, please? |
I did a search for both "tank" and "full" strings in the ino files and it doesn't seem to be anything related to this. Also can't seem to find anything in the MQTT topics. Am I doing something wrong? |
OK, it seems to be in the error code reported in the JSON. |
The error code is read from the state response here: esp8266-midea-dehumidifier/src/esp8266-midea-dehumidifier/serialCommunication.ino Line 18 in 51d6799
and set to the published mqtt json here: esp8266-midea-dehumidifier/src/esp8266-midea-dehumidifier/esp8266-midea-dehumidifier.ino Line 217 in 51d6799
with the state topic being declared here: esp8266-midea-dehumidifier/src/esp8266-midea-dehumidifier/esp8266-midea-dehumidifier.ino Line 78 in 51d6799
@clh27
Unfortunately no. You'd have to figure those out by yourself by testing. I guess it would be possible to introduce something like a errorDescription property for the known values 0 => "no error" and then just have a HA sensor which shows that text. At least that's what Valetudo is doing: |
New insight: Errorcode for filled tank is 38. |
So I made an mqtt binary_sensor for home assistant to check for full tank.
change YOURDEHUMIDIFIER with your dehumidifier name from mqtt topic and YOURNAME for the name from your sensor to also match the binary_sensor in value_template |
I've rewritten your code parsing the json :
and to add the binary sensor to the device add :
|
Hi, |
This isn’t embedded in the firmware, so there’s no Arduino code. However, since it reports via MQTT, you just need to create a binary sensor in the Home Assistant configuration file under the MQTT section. |
Ok
Thanks you for te response
…________________________________
De : lennvilardi ***@***.***>
Envoyé : jeudi 2 janvier 2025 23:21
À : Hypfer/esp8266-midea-dehumidifier ***@***.***>
Cc : QuentinYT ***@***.***>; Comment ***@***.***>
Objet : Re: [Hypfer/esp8266-midea-dehumidifier] Tank full alert (#4)
This isn’t embedded in the firmware, so there’s no Arduino code. However, since it reports via MQTT, you just need to create a binary sensor in the Home Assistant configuration file under the MQTT section.
—
Reply to this email directly, view it on GitHub<#4 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AZ22FG4VAXCLISBMVZNAWCD2IW3YDAVCNFSM6AAAAABSZ6I2YGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRYGQ2TGNRXHE>.
You are receiving this because you commented.Message ID: ***@***.***>
|
There doesn't seem to be a tank full alert in the firmware. Is it possible to add? Will be quite useful
Thanks
The text was updated successfully, but these errors were encountered: