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

Tuya Soil Sensor (_TZE284_sgabhwa6) #7967

Open
1 task done
aramcap opened this issue Oct 14, 2024 · 5 comments
Open
1 task done

Tuya Soil Sensor (_TZE284_sgabhwa6) #7967

aramcap opened this issue Oct 14, 2024 · 5 comments

Comments

@aramcap
Copy link

aramcap commented Oct 14, 2024

Is there already an existing issue for this?

  • I have searched the existing issues and there is none for my device

Product name

Tuya Soil Sensor

Manufacturer

_TZE284_sgabhwa6

Model identifier

TS0601

Device type to add

Sensor

Node info

Captura desde 2024-10-14 10-59-45

Endpoints and clusters

Captura desde 2024-10-14 11-12-19

Basic

imagen

Further relevant clusters

Power Configuration

On/Off

Level Control

Color Control

Thermostat

Simple Metering

Electrical Measurement

Any other cluster of relevance/interest

I've found this issue, in case it is useful: zigpy/zha-device-handlers#3266

@aramcap
Copy link
Author

aramcap commented Oct 20, 2024

Up please!

1 similar comment
@aramcap
Copy link
Author

aramcap commented Oct 27, 2024

Up please!

Copy link
Contributor

As there has not been any response in 21 days, this issue has been automatically marked as stale. At OP: Please either close this issue or keep it active It will be closed in 7 days if no further activity occurs.

@github-actions github-actions bot added the stale label Nov 18, 2024
@Mimiix
Copy link
Collaborator

Mimiix commented Nov 18, 2024

@Smanar can you help out?

@Smanar
Copy link
Collaborator

Smanar commented Nov 18, 2024

From that I m reading it's just a clone again so can use this DDF https://github.com/dresden-elektronik/deconz-rest-plugin/blob/master/devices/tuya/_TZE200_myd45weu_soil_sensor.json

{
  "schema": "devcap1.schema.json",
  "uuid": "2c91cde2-7329-4c70-bf90-59af861796ff",
  "manufacturername": ["_TZE200_myd45weu", "_TZE200_9cqcpkgb", "_TZE200_ga1maeof", "_TZE204_myd45weu", "_TZE284_sgabhwa6"],
  "modelid": ["TS0601", "TS0601", "TS0601", "TS0601", "TS0601"],
  "vendor": "Tuya",
  "product": "Tuya Soil Sensor (TS0601)",
  "sleeper": true,
  "status": "Gold",
  "subdevices": [
    {
      "type": "$TYPE_TEMPERATURE_SENSOR",
      "restapi": "/sensors",
      "uuid": [
        "$address.ext",
        "0x01",
        "0x0402"
      ],
      "items": [
        {
          "name": "attr/id"
        },
        {
          "name": "attr/lastannounced"
        },
        {
          "name": "attr/lastseen"
        },
        {
          "name": "attr/manufacturername"
        },
        {
          "name": "attr/modelid"
        },
        {
          "name": "attr/name"
        },
        {
          "name": "config/tuya_unlock"
        },
        {
          "name": "attr/swversion",
          "parse": {
            "fn": "zcl:attr",
            "ep": 1,
            "cl": "0x0000",
            "at": "0x0001",
            "script": "tuya_swversion.js"
          },
          "read": {
            "fn": "zcl:attr",
            "ep": 1,
            "cl": "0x0000",
            "at": "0x0001"
          }
        },
        {
          "name": "attr/type"
        },
        {
          "name": "attr/uniqueid"
        },
        {
          "name": "config/battery",
          "read": {
            "fn": "none"
          },
          "parse": {
            "dpid": 15,
            "eval": "Item.val = Attr.val;",
            "fn": "tuya"
          },
          "default": 0
        },
        {
          "name": "state/lowbattery",
          "read": {
            "fn": "none"
          },
          "parse": {
            "dpid": 14,
            "eval": "Item.val = (Attr.val == 0 ? true : false);",
            "fn": "tuya"
          },
          "default": false
        },
        {
          "name": "config/offset"
        },
        {
          "name": "config/on"
        },
        {
          "name": "config/reachable"
        },
        {
          "name": "state/lastupdated"
        },
        {
          "name": "state/temperature",
          "read": {
            "fn": "none"
          },
          "parse": {
            "dpid": 5,
            "eval": "Item.val = Attr.val * 100;",
            "fn": "tuya"
          },
          "default": 0,
          "awake": true
        }
      ]
    },
    {
      "type": "$TYPE_MOISTURE_SENSOR",
      "restapi": "/sensors",
      "uuid": [
        "$address.ext",
        "0x01",
        "0x0408"
      ],
      "items": [
        {
          "name": "attr/id"
        },
        {
          "name": "attr/lastannounced"
        },
        {
          "name": "attr/lastseen"
        },
        {
          "name": "attr/manufacturername"
        },
        {
          "name": "attr/modelid"
        },
        {
          "name": "attr/name"
        },
        {
          "name": "attr/swversion",
          "parse": {
            "fn": "zcl:attr",
            "ep": 1,
            "cl": "0x0000",
            "at": "0x0001",
            "script": "tuya_swversion.js"
          },
          "read": {
            "fn": "zcl:attr",
            "ep": 1,
            "cl": "0x0000",
            "at": "0x0001"
          }
        },
        {
          "name": "attr/type"
        },
        {
          "name": "attr/uniqueid"
        },
        {
          "name": "config/battery",
          "read": {
            "fn": "none"
          },
          "parse": {
            "dpid": 15,
            "eval": "Item.val = Attr.val;",
            "fn": "tuya"
          },
          "default": 0
        },
        {
          "name": "state/lowbattery",
          "read": {
            "fn": "none"
          },
          "parse": {
            "dpid": 14,
            "eval": "Item.val = (Attr.val == 0 ? true : false);",
            "fn": "tuya"
          },
          "default": false
        },
        {
          "name": "config/offset"
        },
        {
          "name": "config/on"
        },
        {
          "name": "config/reachable"
        },
        {
          "name": "state/moisture",
          "read": {
            "fn": "none"
          },
          "parse": {
            "dpid": 3,
            "eval": "Item.val = Attr.val * 100;",
            "fn": "tuya"
          },
          "default": 0,
          "awake": true
        },
        {
          "name": "state/lastupdated"
        }
      ]
    }
  ]
}

@github-actions github-actions bot removed the stale label Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants