Smart Life Scenes in Home Assistant

I have a Tuya dual water timer that itself is not directly supported by any of the Tuya integrations in HA.

This seems to be the general view in a few topics I have read.

However, I have seen in some closed topics that some success has been had in controlling this via the creation of scenes in the smart life app and calling these from HA. I have even seen a screenshot of someone’s smart life scenes in their app and these scenes showing in HA. HOWEver, I cannot get these to appear in my HA. How does such a smart life app scene integrate with HA?

***** update… my bad, reloaded and can see them in entities

However, if there is some way of actually integrating the device itself with all it’s attributes, that would be better so leaving topic open in case there is an answer.

Can you post your device model number and a picture of the device as well?

I have a plant irrigation pump (tuya as well) that I can see some attributes (start time, status, auto function) etc. via localtuya I will try to implement the device in localtuya today and share the code if I am successful.

Johgee SGW02W DUAL Water timer

The specs in tuya platform are:

{
  "result": {
    "category": "ggq",
    "functions": [
      {
        "code": "normal_timer",
        "dp_id": 101,
        "type": "String",
        "values": "{\"maxlen\":255}"
      },
      {
        "code": "countdown_2",
        "dp_id": 103,
        "type": "Integer",
        "values": "{\"unit\":\"min\",\"min\":0,\"max\":1440,\"scale\":0,\"step\":1}"
      },
      {
        "code": "switch_2",
        "dp_id": 104,
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "switch_1",
        "dp_id": 105,
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "countdown_1",
        "dp_id": 106,
        "type": "Integer",
        "values": "{\"unit\":\"min\",\"min\":0,\"max\":1440,\"scale\":0,\"step\":1}"
      }
    ],
    "status": [
      {
        "code": "battery_percentage",
        "dp_id": 11,
        "type": "Integer",
        "values": "{\"unit\":\"%\",\"min\":0,\"max\":100,\"scale\":0,\"step\":1}"
      },
      {
        "code": "normal_timer",
        "dp_id": 101,
        "type": "String",
        "values": "{\"maxlen\":255}"
      },
      {
        "code": "countdown_2",
        "dp_id": 103,
        "type": "Integer",
        "values": "{\"unit\":\"min\",\"min\":0,\"max\":1440,\"scale\":0,\"step\":1}"
      },
      {
        "code": "switch_2",
        "dp_id": 104,
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "switch_1",
        "dp_id": 105,
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "countdown_1",
        "dp_id": 106,
        "type": "Integer",
        "values": "{\"unit\":\"min\",\"min\":0,\"max\":1440,\"scale\":0,\"step\":1}"
      },
      {
        "code": "use_time_2",
        "dp_id": 110,
        "type": "Integer",
        "values": "{\"unit\":\"s\",\"min\":0,\"max\":86400,\"scale\":0,\"step\":1}"
      },
      {
        "code": "use_time_1",
        "dp_id": 111,
        "type": "Integer",
        "values": "{\"unit\":\"s\",\"min\":0,\"max\":86400,\"scale\":0,\"step\":1}"
      }
    ]
  },
  "success": true,
  "t": 1686166735940,
  "tid": "f0c0f870056a11eea795ce4cada2c678"
}

One final piece of info.

This uses a WiFi gateway, supplied with the timer, and the timer valve itself is bluetooth.

I did find a repository at lasry1/home-assistant-tuya-custom that gives me the basic switch for each timer in the main Tuya integration, which is an improvement.

However, as a rule, I prefer the Localtuya integration.