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

Eeese Adam missing defrost sensor #1841

Closed
yurgh opened this issue Apr 20, 2024 · 0 comments
Closed

Eeese Adam missing defrost sensor #1841

yurgh opened this issue Apr 20, 2024 · 0 comments

Comments

@yurgh
Copy link

yurgh commented Apr 20, 2024

Describe the bug
My Eeese Adam has started reporting defrosting as error code 2, which with the current setup shows up as a tank full error. This makes it hard to know when to actually empty the tank. This behaviour started a handful of months back perhaps longer, I don't remember if there were any firmware updates to the device.

To Reproduce
Make temperature and humidity is so low the device feels like defrosting for two to thirty minutes.

Expected behavior
Adding a separate tank and defroster binary sensor would be great.

Additional context
DP 19 is error code, and I tested it in debug mode to find that 1 means tank error and 2 means defrosting. So I replaced the secondary sensor bit with the relevant code from Eeese Anna. Then changed the bits from 4 to 1 and 8 to 2, and now Adam is correctly presenting the defrosting and tank full states. (I also added a sensor to show the error code, for easier debugging, I guess that's not needed in general)

It would be great if this could be added to repository, unfortunately it's way out of my league to do it myself. Thanks for all your hard work on this integration!

The relevant part from secondary_entities:

  - entity: binary_sensor
    translation_key: tank_full
    category: diagnostic
    dps:
      - id: 19
        type: bitfield
        name: sensor
        optional: true
        mapping:
          - dps_val: 1
            value: true
          - value: false
  - entity: binary_sensor
    translation_key: defrost
    category: diagnostic
    dps:
      - id: 19
        type: bitfield
        name: sensor
        optional: true
        mapping:
          - dps_val: 2
            value: true
          - value: false
  - entity: binary_sensor
    class: problem
    category: diagnostic
    dps:
      - id: 19
        type: bitfield
        name: sensor
        optional: true
        mapping:
          - dps_val: 0
            value: false
          - dps_val: null
            value: false
          - dps_val: 1
            value: false
          - dps_val: 2
            value: false
          - value: true

The device diagnostic:

  "integration_manifest": {
    "domain": "tuya_local",
    "name": "Tuya Local",
    "codeowners": [
      "@make-all"
    ],
    "config_flow": true,
    "dependencies": [],
    "documentation": "https://github.com/make-all/tuya-local",
    "integration_type": "device",
    "iot_class": "local_push",
    "issue_tracker": "https://github.com/make-all/tuya-local/issues",
    "requirements": [
      "tinytuya==1.13.2"
    ],
    "version": "2024.3.2",
    "is_built_in": false
  },
  "data": {
    "name": "Avfukter",
    "type": "eesee_adam_dehumidifier",
    "device_id": "**REDACTED**",
    "device_cid": "",
    "local_key": "**REDACTED**",
    "host": "**REDACTED**",
    "protocol_version": "auto",
    "tinytuya_version": "1.13.2",
    "api_version_set": 3.3,
    "api_version_used": 3.3,
    "api_working": true,
    "status": {},
    "cached_state": {
      "updated_at": 1713600948.0100021,
      "1": true,
      "2": 25,
      "4": "manual",
      "5": "high",
      "14": false,
      "16": 35,
      "17": "cancel",
      "18": 0,
      "19": 0
    },
    "pending_state": {},
    "connected": true,
    "force_dps": [],
    "home_assistant": {
      "name": "Avfukter",
      "name_by_user": null,
      "disabled": false,
      "disabled_by": null,
      "entities": [
        {
          "disabled": false,
          "disabled_by": null,
          "entity_category": null,
          "device_class": null,
          "original_device_class": "dehumidifier",
          "icon": null,
          "unit_of_measurement": null,
          "state": {
            "entity_id": "humidifier.avfukter",
            "state": "on",
            "attributes": {
              "min_humidity": 25.0,
              "max_humidity": 80.0,
              "available_modes": [
                "normal",
                "laundry"
              ],
              "current_humidity": 35,
              "humidity": 25,
              "mode": "normal",
              "fault_code": 0,
              "device_class": "dehumidifier",
              "icon": "mdi:air-humidifier",
              "friendly_name": "Avfukter None",
              "supported_features": 1
            },
            "last_changed": "2024-04-20T07:33:31.544218+00:00",
            "last_reported": "2024-04-20T08:15:48.013165+00:00",
            "last_updated": "2024-04-20T08:14:15.404310+00:00"
          }
        },
        {
          "disabled": false,
          "disabled_by": null,
          "entity_category": null,
          "device_class": null,
          "original_device_class": null,
          "icon": null,
          "unit_of_measurement": null,
          "state": {
            "entity_id": "fan.avfukter",
            "state": "on",
            "attributes": {
              "preset_modes": [],
              "percentage": 100,
              "percentage_step": 50.0,
              "preset_mode": null,
              "friendly_name": "Avfukter",
              "supported_features": 1
            },
            "last_changed": "2024-04-20T07:33:31.543067+00:00",
            "last_reported": "2024-04-20T08:15:48.010653+00:00",
            "last_updated": "2024-04-20T07:33:31.543067+00:00"
          }
        },
        {
          "disabled": false,
          "disabled_by": null,
          "entity_category": "diagnostic",
          "device_class": null,
          "original_device_class": "humidity",
          "icon": null,
          "unit_of_measurement": "%",
          "state": {
            "entity_id": "sensor.avfukter_current_humidity",
            "state": "35",
            "attributes": {
              "state_class": "measurement",
              "unit_of_measurement": "%",
              "device_class": "humidity",
              "friendly_name": "Avfukter Current humidity"
            },
            "last_changed": "2024-04-20T08:14:15.402080+00:00",
            "last_reported": "2024-04-20T08:15:48.011709+00:00",
            "last_updated": "2024-04-20T08:14:15.402080+00:00"
          }
        },
        {
          "disabled": false,
          "disabled_by": null,
          "entity_category": "diagnostic",
          "device_class": null,
          "original_device_class": null,
          "icon": null,
          "unit_of_measurement": null,
          "state": {
            "entity_id": "binary_sensor.avfukter_tank",
            "state": "off",
            "attributes": {
              "friendly_name": "Avfukter Tank"
            },
            "last_changed": "2024-04-20T07:35:10.245031+00:00",
            "last_reported": "2024-04-20T08:15:48.011014+00:00",
            "last_updated": "2024-04-20T07:35:10.245031+00:00"
          }
        },
        {
          "disabled": false,
          "disabled_by": null,
          "entity_category": "config",
          "device_class": null,
          "original_device_class": null,
          "icon": null,
          "unit_of_measurement": null,
          "state": {
            "entity_id": "lock.avfukter_child_lock",
            "state": "unlocked",
            "attributes": {
              "friendly_name": "Avfukter Child lock",
              "supported_features": 0
            },
            "last_changed": "2024-04-20T07:33:31.543748+00:00",
            "last_reported": "2024-04-20T08:15:48.012033+00:00",
            "last_updated": "2024-04-20T07:33:31.543748+00:00"
          }
        },
        {
          "disabled": false,
          "disabled_by": null,
          "entity_category": "config",
          "device_class": null,
          "original_device_class": null,
          "icon": null,
          "unit_of_measurement": null,
          "state": {
            "entity_id": "select.avfukter_timer",
            "state": "Off",
            "attributes": {
              "options": [
                "Off",
                "1 hour",
                "2 hours",
                "3 hours",
                "4 hours",
                "5 hours",
                "6 hours",
                "7 hours",
                "8 hours",
                "9 hours",
                "10 hours",
                "11 hours",
                "12 hours",
                "13 hours",
                "14 hours",
                "15 hours",
                "16 hours",
                "17 hours",
                "18 hours",
                "19 hours",
                "20 hours",
                "21 hours",
                "22 hours",
                "23 hours",
                "24 hours"
              ],
              "friendly_name": "Avfukter Timer"
            },
            "last_changed": "2024-04-20T07:33:31.543942+00:00",
            "last_reported": "2024-04-20T08:15:48.012504+00:00",
            "last_updated": "2024-04-20T07:33:31.543942+00:00"
          }
        },
        {
          "disabled": false,
          "disabled_by": null,
          "entity_category": "diagnostic",
          "device_class": null,
          "original_device_class": null,
          "icon": null,
          "unit_of_measurement": null,
          "state": {
            "entity_id": "binary_sensor.avfukter_defrost",
            "state": "off",
            "attributes": {
              "friendly_name": "Avfukter Defrost"
            },
            "last_changed": "2024-04-20T08:01:07.089521+00:00",
            "last_reported": "2024-04-20T08:15:48.011266+00:00",
            "last_updated": "2024-04-20T08:01:07.089521+00:00"
          }
        },
        {
          "disabled": false,
          "disabled_by": null,
          "entity_category": "diagnostic",
          "device_class": null,
          "original_device_class": "problem",
          "icon": null,
          "unit_of_measurement": null,
          "state": {
            "entity_id": "binary_sensor.avfukter_problem",
            "state": "off",
            "attributes": {
              "device_class": "problem",
              "friendly_name": "Avfukter Problem"
            },
            "last_changed": "2024-04-20T07:33:31.543479+00:00",
            "last_reported": "2024-04-20T08:15:48.011492+00:00",
            "last_updated": "2024-04-20T07:33:31.543479+00:00"
          }
        },
        {
          "disabled": false,
          "disabled_by": null,
          "entity_category": "diagnostic",
          "device_class": null,
          "original_device_class": null,
          "icon": null,
          "unit_of_measurement": null,
          "state": {
            "entity_id": "sensor.avfukter_current_error_code",
            "state": "0",
            "attributes": {
              "friendly_name": "Avfukter Current error code"
            },
            "last_changed": "2024-04-20T08:01:07.090101+00:00",
            "last_reported": "2024-04-20T08:15:48.011910+00:00",
            "last_updated": "2024-04-20T08:01:07.090101+00:00"
          }
        }
      ]
@yurgh yurgh added the bug Something isn't working label Apr 20, 2024
@make-all make-all added device improvement Improvement to an existing device config awaiting confirmation Wating for confirmation the issue is solved unreleased Will be in next release and removed bug Something isn't working labels Apr 20, 2024
make-all added a commit that referenced this issue Apr 20, 2024
Initially this was implemented as any non-zero value as "Tank".
But actual values reported regularly by the unit include 1 for tank
full/removed, and 2 for defrosting. There may also be more non-routine
problem codes, so also added a general problem sensor to catch all others.

Issue #1841
@make-all make-all removed awaiting confirmation Wating for confirmation the issue is solved unreleased Will be in next release device improvement Improvement to an existing device config labels Apr 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants