make-all / tuya-local

Local support for Tuya devices in Home Assistant
MIT License
1.09k stars 440 forks source link

Support request: Lidl Smart Kettle not heating #1564

Closed capitar06 closed 5 months ago

capitar06 commented 5 months ago

Describe the bug This issue exists in my Smart Kettle from the Lidl (Silvercrest). I have been using this kettle for a while without issues, but I think this issue came up when I unplugged it from the power. But I'm not 100% sure. It goes as followed:

When I start the kettle via HA, the LED on the kettle lights up, but nothing happens. When I stop heating up the water the LED turns off and I hear beeping (the LED and beeping is normal behavior). When I use the smart life app, I can heat up water no problem and in HA I can actually see that it is turned on and the water temp starts to rise. I can also cancel the proces via HA.

I removed the kettle from smart life and added it again, also removed tuya from HA and added it again, but the result is still the same

To Reproduce Start the heating process

Expected behavior

  1. LEDs turn on
  2. Water starts heating
  3. Water reached pre-defined temperature
  4. LEDs turn off
  5. Device beeps 3 times

Additional context I have this issue in Local tuya and Cloud Tuya. I have a suspicion the DPS is somehow incorrect.

If the bug involves a device, then please include device diagnostics from

{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2024.1.5",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.11.6",
    "docker": true,
    "arch": "x86_64",
    "timezone": "Europe/Berlin",
    "os_name": "Linux",
    "os_version": "6.1.71-haos",
    "supervisor": "2023.12.1",
    "host_os": "Home Assistant OS 11.4",
    "docker_version": "24.0.7",
    "chassis": "embedded",
    "run_as_root": true
  },
  "custom_components": {
    "cupra_we_connect": {
      "version": "0.8.0",
      "requirements": [
        "weconnect-cupra-daern==0.50.8",
        "ascii_magic==2.1.1"
      ]
    },
    "bosch": {
      "version": "0.24.5",
      "requirements": [
        "bosch-thermostat-client==v0.24.2"
      ]
    },
    "tplink_deco": {
      "version": "3.6.0",
      "requirements": [
        "pycryptodome>=3.12.0"
      ]
    },
    "hacs": {
      "version": "1.34.0",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    },
    "afvalwijzer": {
      "version": "2024.01.06",
      "requirements": []
    },
    "localtuya": {
      "version": "5.2.1",
      "requirements": []
    }
  },
  "integration_manifest": {
    "domain": "tuya",
    "name": "Tuya",
    "codeowners": [
      "@Tuya",
      "@zlinoliver",
      "@frenck"
    ],
    "config_flow": true,
    "dependencies": [
      "ffmpeg"
    ],
    "dhcp": [
      {
        "macaddress": "105A17*"
      },
      {
        "macaddress": "10D561*"
      },
      {
        "macaddress": "1869D8*"
      },
      {
        "macaddress": "381F8D*"
      },
      {
        "macaddress": "508A06*"
      },
      {
        "macaddress": "68572D*"
      },
      {
        "macaddress": "708976*"
      },
      {
        "macaddress": "7CF666*"
      },
      {
        "macaddress": "84E342*"
      },
      {
        "macaddress": "D4A651*"
      },
      {
        "macaddress": "D81F12*"
      }
    ],
    "documentation": "https://www.home-assistant.io/integrations/tuya",
    "integration_type": "hub",
    "iot_class": "cloud_push",
    "loggers": [
      "tuya_iot"
    ],
    "requirements": [
      "tuya-iot-py-sdk==0.6.6"
    ],
    "is_built_in": true
  },
  "data": {
    "endpoint": "https://openapi.tuyaeu.com",
    "auth_type": 0,
    "country_code": "31",
    "app_type": "smartlife",
    "mqtt_connected": true,
    "disabled_by": null,
    "disabled_polling": false,
    "name": "Waterkoker",
    "model": "WK0828RT",
    "category": "bh",
    "product_id": "il4ofqon04yai1xe",
    "product_name": "Water Kettle",
    "online": true,
    "sub": false,
    "time_zone": "+01:00",
    "active_time": "2024-01-23T19:12:41+00:00",
    "create_time": "2024-01-13T15:48:54+00:00",
    "update_time": "2024-01-23T19:18:38+00:00",
    "function": {
      "start": {
        "type": "Boolean",
        "value": {}
      },
      "temp_set": {
        "type": "Integer",
        "value": {
          "unit": "\u2103",
          "min": 40,
          "max": 100,
          "scale": 0,
          "step": 5
        }
      },
      "warm": {
        "type": "Boolean",
        "value": {}
      },
      "warm_time": {
        "type": "Integer",
        "value": {
          "unit": "min",
          "min": 0,
          "max": 120,
          "scale": 0,
          "step": 30
        }
      }
    },
    "status_range": {
      "start": {
        "type": "Boolean",
        "value": {}
      },
      "temp_current": {
        "type": "Integer",
        "value": {
          "unit": "\u2103",
          "min": 0,
          "max": 100,
          "scale": 0,
          "step": 1
        }
      },
      "temp_set": {
        "type": "Integer",
        "value": {
          "unit": "\u2103",
          "min": 40,
          "max": 100,
          "scale": 0,
          "step": 5
        }
      },
      "warm": {
        "type": "Boolean",
        "value": {}
      },
      "warm_time": {
        "type": "Integer",
        "value": {
          "unit": "min",
          "min": 0,
          "max": 120,
          "scale": 0,
          "step": 30
        }
      },
      "countdown_left": {
        "type": "Integer",
        "value": {
          "unit": "min",
          "min": 0,
          "max": 120,
          "scale": 0,
          "step": 1
        }
      }
    },
    "status": {
      "start": false,
      "temp_current": 38,
      "temp_set": 100,
      "warm": false,
      "warm_time": 0,
      "countdown_left": 0
    },
    "home_assistant": {
      "name": "Waterkoker",
      "name_by_user": null,
      "disabled": false,
      "disabled_by": null,
      "entities": [
        {
          "disabled": false,
          "disabled_by": null,
          "entity_category": "config",
          "device_class": null,
          "original_device_class": null,
          "icon": null,
          "original_icon": "mdi:thermometer",
          "unit_of_measurement": null,
          "state": {
            "entity_id": "number.waterkoker_temperature",
            "state": "100.0",
            "attributes": {
              "min": 40.0,
              "max": 100.0,
              "step": 5.0,
              "mode": "auto",
              "icon": "mdi:thermometer",
              "friendly_name": "Waterkoker Temperature"
            },
            "last_changed": "2024-01-24T16:35:50.871855+00:00",
            "last_updated": "2024-01-24T16:35:50.871855+00:00"
          }
        },
        {
          "disabled": false,
          "disabled_by": null,
          "entity_category": "config",
          "device_class": null,
          "original_device_class": null,
          "icon": null,
          "original_icon": "mdi:timer",
          "unit_of_measurement": null,
          "state": {
            "entity_id": "number.waterkoker_heat_preservation_time",
            "state": "0.0",
            "attributes": {
              "min": 0.0,
              "max": 120.0,
              "step": 30.0,
              "mode": "auto",
              "icon": "mdi:timer",
              "friendly_name": "Waterkoker Heat preservation time"
            },
            "last_changed": "2024-01-23T19:27:41.298881+00:00",
            "last_updated": "2024-01-23T19:27:41.298881+00:00"
          }
        },
        {
          "disabled": false,
          "disabled_by": null,
          "entity_category": null,
          "device_class": null,
          "original_device_class": "temperature",
          "icon": null,
          "original_icon": null,
          "unit_of_measurement": "\u00b0C",
          "state": {
            "entity_id": "sensor.waterkoker_current_temperature",
            "state": "38.0",
            "attributes": {
              "state_class": "measurement",
              "unit_of_measurement": "\u00b0C",
              "device_class": "temperature",
              "friendly_name": "Waterkoker Current temperature"
            },
            "last_changed": "2024-01-24T19:49:54.223082+00:00",
            "last_updated": "2024-01-24T19:49:54.223082+00:00"
          }
        },
        {
          "disabled": false,
          "disabled_by": null,
          "entity_category": null,
          "device_class": null,
          "original_device_class": null,
          "icon": null,
          "original_icon": "mdi:kettle-steam",
          "unit_of_measurement": null,
          "state": {
            "entity_id": "switch.waterkoker_start",
            "state": "off",
            "attributes": {
              "icon": "mdi:kettle-steam",
              "friendly_name": "Waterkoker Start"
            },
            "last_changed": "2024-01-24T19:47:29.030203+00:00",
            "last_updated": "2024-01-24T19:47:29.030203+00:00"
          }
        },
        {
          "disabled": false,
          "disabled_by": null,
          "entity_category": "config",
          "device_class": null,
          "original_device_class": null,
          "icon": null,
          "original_icon": null,
          "unit_of_measurement": null,
          "state": {
            "entity_id": "switch.waterkoker_heat_preservation",
            "state": "off",
            "attributes": {
              "friendly_name": "Waterkoker Heat preservation"
            },
            "last_changed": "2024-01-23T19:27:41.310778+00:00",
            "last_updated": "2024-01-23T19:27:41.310778+00:00"
          }
        }
      ]
    }
  }
}

This error originated from a custom integration.

Logger: custom_components.localtuya.switch Source: custom_components/localtuya/pytuya/init.py:255 Integration: LocalTuya (documentation, issues) First occurred: 12:57:46 (517 occurrences) Last logged: 20:49:53

[bfd...oze] Entity switch.heat_preservation is requesting unknown DPS index 13

Please check if there are messages from Tuya Local in the Home Assistant log (Settings / System / Logs), and include those too.

If applicable, add screenshots to help explain your problem.

2024-01-24 20:47:28.668 WARNING (SyncWorker_0) [custom_components.localtuya.switch] [bfd...oze] Entity switch.heat_preservation is requesting unknown DPS index 13
2024-01-24 20:47:28.672 WARNING (SyncWorker_10) [custom_components.localtuya.switch] [bfd...oze] Entity switch.heat_preservation is requesting unknown DPS index 13

Also, if this issue should be moved to Tuya cloud, please let me know. Kind of new to Tuya so still learning. Thanks.

capitar06 commented 5 months ago

As I am writing this up, I checked the heat function one more time and it works again.. No changes were made but it suddenly works again after 3 days not working. If there is anything out of the ordinary in the logs, let me know. If not, this can be closed.

make-all commented 5 months ago

The diagnostics show you are using the cloud tuya integration. This repository is for a different integration, and we cannot support issues with other integrations.

jonofe commented 1 week ago

@capitar06 I have exactly the same problem with tuya-local as well as with Tuya-Cloud integrations. Kettle seems to switch on (light is switching on), but the relay controlling the heating process is not switched on. Controlling it with the Tuya App is no problem, that works. For me the problem started when reconnecting the device to the tuya cloud. After this reconnection only the light switches, but not the boil function.

Did this happen again to you? Did you find a reproducable solution except waiting for some days?