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

Moes- Smart Water Gas Valve Controller #7759

Open
1 task done
granadoos opened this issue May 13, 2024 · 2 comments
Open
1 task done

Moes- Smart Water Gas Valve Controller #7759

granadoos opened this issue May 13, 2024 · 2 comments

Comments

@granadoos
Copy link

Is there already an existing issue for this?

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

Product name

Tuya- Smart Water Gas Valve Controller

Manufacturer

Moes

Model identifier

PF-PM02D-TYZ

Device type to add

Other

Node info

image

Endpoints and clusters

image
image
image
image
image
image
image

Basic

image

Further relevant clusters

Power Configuration

On/Off

Level Control

Color Control

Thermostat

Simple Metering

Electrical Measurement

Any other cluster of relevance/interest

@granadoos
Copy link
Author

Hello, I added a link to the product in case it is helpful.

https://es.aliexpress.com/item/1005005795326804.html?spm=a2g0o.order_list.order_list_main.26.27e1194dwGjaB5&gatewayAdapt=glo2espç

On the other hand, using the following data I can open/close the valve

Close
image

Open
image

Thank you so much

@granadoos
Copy link
Author

Hello, I have been able to integrate it using the following DDF

{
  "schema": "devcap1.schema.json",
  "manufacturername": "_TZE204_d0ypnbvn",
  "modelid": "TS0601",
  "product": "TS0601",
  "sleeper": false,
  "status": "Draft",
  "path": "/devices/tuya/_TZE204_d0ypnbvn_water_valve",
  "subdevices": [
    {
      "type": "$TYPE_ON_OFF_OUTPUT",
      "restapi": "/lights",
      "uuid": [
        "$address.ext",
        "0x01"
      ],
      "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", "ep": 1, "cl": "0x0000", "at": "0x0001", "script": "tuya_swversion.js"},
          "read": {"fn": "zcl", "ep": 1, "cl": "0x0000", "at": "0x0001"}
        },
        {
          "name": "attr/type"
        },
        {
          "name": "attr/uniqueid"
        },
        {
          "name": "state/alert",
          "default": "none",
          "public": false
        },
        {
          "name": "state/on",
          "parse": {"fn": "tuya", "dpid": 1, "eval": "Item.val = Attr.val;" },
          "write": {"fn": "tuya", "dpid": 1, "dt": "0x10", "eval": "Item.val == 1 ? 1 : 0;"},
          "read": {"fn": "tuya"},
          "refresh.interval": 300
        },
        {
          "name": "state/reachable"
        }
      ]
    }
  ]
}

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

1 participant