Climate entity without state

Hi there

I use localtuya to control my “Klarstein” fridge. With LED’'s on it and so on.

Localtuya allows to control climate devices but for the ID i need a state for on an off. But de fridge doesn’t have this state because the fridge turns on if i plug in the cable. If i try to add with an other ID (PD) the climate card shows “unknown” and the control panel is hidden.

Is there a way to control this device with localtuya?

An entity needs to have a state.
If it does not have a state to fit to a climate entity, then it might not be a climate entity at all.
If it controls leds, then try a lesnor light entity.
If the control can only be on/off, then also try a switch.

1 Like

If i add the device with the intergrated tuya then there will be create an “on/off” state but in the localtuya integration is no state.

{
  "result": {
    "properties": [
      {
        "code": "light",
        "custom_name": "",
        "dp_id": 6,
        "time": 1736101852151,
        "type": "bool",
        "value": true
      },
      {
        "code": "temp_set",
        "custom_name": "",
        "dp_id": 16,
        "time": 1736101783209,
        "type": "value",
        "value": 4
      },
      {
        "code": "temp_set_f",
        "custom_name": "",
        "dp_id": 17,
        "time": 1736018614121,
        "type": "value",
        "value": 37
      },
      {
        "code": "temp_unit_convert",
        "custom_name": "",
        "dp_id": 23,
        "time": 1736018614121,
        "type": "enum",
        "value": "c"
      },
      {
        "code": "temp_current",
        "custom_name": "",
        "dp_id": 24,
        "time": 1736101783212,
        "type": "value",
        "value": 13
      },
      {
        "code": "temp_current_f",
        "custom_name": "",
        "dp_id": 29,
        "time": 1736018614121,
        "type": "value",
        "value": 32
      },
      {
        "code": "fault",
        "custom_name": "",
        "dp_id": 45,
        "time": 1736101783508,
        "type": "bitmap",
        "value": 0
      },
      {
        "code": "RGB_mode",
        "custom_name": "",
        "dp_id": 101,
        "time": 1736101836399,
        "type": "enum",
        "value": "2"
      },
      {
        "code": "RGB_color",
        "custom_name": "",
        "dp_id": 102,
        "time": 1736101806519,
        "type": "enum",
        "value": "blue"
      },
      {
        "code": "RGB_brightness",
        "custom_name": "",
        "dp_id": 103,
        "time": 1736101783821,
        "type": "enum",
        "value": "5"
      },
      {
        "code": "RGB_light",
        "custom_name": "",
        "dp_id": 104,
        "time": 1736101794360,
        "type": "bool",
        "value": true
      }
    ]
  },
  "success": true,
  "t": 1736270753710,
  "tid": "728e7eadcd1c11ef9e5f9e9247cde4aa"
}

this is the querry return from the tuya cloud API.