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

Two-way Bilateral Energy Meter TZE200_rks0sgb7 - TS0601 #7645

Closed
1 task done
gabriele-latino opened this issue Feb 27, 2024 · 13 comments
Closed
1 task done

Two-way Bilateral Energy Meter TZE200_rks0sgb7 - TS0601 #7645

gabriele-latino opened this issue Feb 27, 2024 · 13 comments

Comments

@gabriele-latino
Copy link

gabriele-latino commented Feb 27, 2024

Is there already an existing issue for this?

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

Product name

Zigbee Two-way Bilateral Energy Meter

Manufacturer

_TZE200_rks0sgb7

Model identifier

TS0601

Device type to add

Other

Node info

image

Endpoints and clusters

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

@gabriele-latino gabriele-latino changed the title Zigbee Two-way Bilateral Energy Meter TZE200_rks0sgb7 - TS0601 Two-way Bilateral Energy Meter TZE200_rks0sgb7 - TS0601 Feb 27, 2024
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 Mar 20, 2024
@gabriele-latino
Copy link
Author

Hi, please add this device to deCONZ, thanks

@github-actions github-actions bot removed the stale label Mar 21, 2024
@gabriele-latino
Copy link
Author

Is there any DDF I can try?

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 Apr 27, 2024
@gabriele-latino
Copy link
Author

Still needed......

@Mimiix
Copy link
Collaborator

Mimiix commented Apr 27, 2024

@Smanar can you help?

@Smanar
Copy link
Collaborator

Smanar commented Apr 27, 2024

Hello, can try this DDF


{
    "schema": "devcap1.schema.json",
    "manufacturername": "_TZE200_rks0sgb7",
    "modelid": "TS0601",
    "product": "Two-way Bilateral Energy Meter",
    "sleeper": true,
    "status": "Gold",
    "subdevices": [
        {
            "type": "$TYPE_CONSUMPTION_SENSOR",
            "restapi": "/sensors",
            "uuid": [
                "$address.ext",
                "0x01",
                "0x0702"
            ],
            "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/offset",
                    "default": 0
                },
                {
                    "name": "config/on"
                },
                {
                    "name": "config/reachable"
                },
                {
                    "name": "state/consumption",
                    "parse": {
                        "fn": "tuya",
                        "dpid": 101,
                        "eval": "Item.val = Attr.val / 100;"
                    },
                    "read": {
                        "fn": "none"
                    },
                    "default": 0
                },
                {
                    "name": "state/lastupdated"
                }
            ]
        },
        {
            "type": "$TYPE_POWER_SENSOR",
            "restapi": "/sensors",
            "uuid": [
                "$address.ext",
                "0x01",
                "0x0b04"
            ],
            "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": "none"
                    }
                },
                {
                    "name": "attr/type"
                },
                {
                    "name": "attr/uniqueid"
                },
                {
                    "name": "config/offset",
                    "default": 0
                },
                {
                    "name": "config/on"
                },
                {
                    "name": "config/reachable"
                },
                {
                    "name": "state/lastupdated"
                },
                {
                    "name": "state/current",
                    "parse": {
                        "fn": "tuya",
                        "dpid": 107,
                        "eval": "Item.val = Attr.val;"
                    },
                    "read": {
                        "fn": "none"
                    },
                    "default": 0
                },
                {
                    "name": "state/voltage",
                    "parse": {
                        "fn": "tuya",
                        "dpid": 106,
                        "eval": "Item.val = Attr.val;"
                    },
                    "read": {
                        "fn": "none"
                    },
                    "default": 0
                },
                {
                    "name": "state/power",
                    "parse": {
                        "fn": "tuya",
                        "dpid": 108,
                        "eval": "Item.val = Attr.val;"
                    },
                    "read": {
                        "fn": "none"
                    },
                    "default": 0
                }
            ]
        },
        {
            "type": "$TYPE_CONSUMPTION_SENSOR",
            "restapi": "/sensors",
            "uuid": [
                "$address.ext",
                "0x02",
                "0x0702"
            ],
            "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/offset",
                    "default": 0
                },
                {
                    "name": "config/on"
                },
                {
                    "name": "config/reachable"
                },
                {
                    "name": "state/consumption",
                    "parse": {
                        "fn": "tuya",
                        "dpid": 103,
                        "eval": "Item.val = Attr.val / 100;"
                    },
                    "read": {
                        "fn": "none"
                    },
                    "default": 0
                },
                {
                    "name": "state/lastupdated"
                }
            ]
        },
        {
            "type": "$TYPE_POWER_SENSOR",
            "restapi": "/sensors",
            "uuid": [
                "$address.ext",
                "0x02",
                "0x0b04"
            ],
            "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": "none"
                    }
                },
                {
                    "name": "attr/type"
                },
                {
                    "name": "attr/uniqueid"
                },
                {
                    "name": "config/offset",
                    "default": 0
                },
                {
                    "name": "config/on"
                },
                {
                    "name": "config/reachable"
                },
                {
                    "name": "state/lastupdated"
                },
                {
                    "name": "state/current",
                    "parse": {
                        "fn": "tuya",
                        "dpid": 110,
                        "eval": "Item.val = Attr.val;"
                    },
                    "read": {
                        "fn": "none"
                    },
                    "default": 0
                },
                {
                    "name": "state/voltage",
                    "parse": {
                        "fn": "tuya",
                        "dpid": 106,
                        "eval": "Item.val = Attr.val;"
                    },
                    "read": {
                        "fn": "none"
                    },
                    "default": 0
                },
                {
                    "name": "state/power",
                    "parse": {
                        "fn": "tuya",
                        "dpid": 111,
                        "eval": "Item.val = Attr.val;"
                    },
                    "read": {
                        "fn": "none"
                    },
                    "default": 0
                }
            ]
        }
    ]
}

Values will probably need adjustement (* 10 or / 10 for exemple), just give me the result and the value you want.

@github-actions github-actions bot removed the stale label Apr 28, 2024
@gabriele-latino
Copy link
Author

@Smanar sorry for the dummy question, how can I import the DDF in deconz, using HassOS?
I found only tutorials about docker version :/
Thanks a lot

@Smanar
Copy link
Collaborator

Smanar commented May 8, 2024

Good question, HassOS use too docker nope ?
What is your deconz version ? HA package, official docker image, custom installation ?
If you have access to the GUI, you can make a right clic on a node, edit DDF, then try to save it to see the folder used by deconz.

@gabriele-latino
Copy link
Author

Deconz 6.23.0 (Bump deCONZ to 2.25.3)
Installed ad HA's component, no custom settings

This is the "Save as" default location:

image

But I'm unable to acces this folder by SSH

@Smanar
Copy link
Collaborator

Smanar commented May 8, 2024

Perhaps there is a docker for the addon ? Because it's the same folder than others users (using docker) https://forum.phoscon.de/t/how-to-add-edit-a-ddf-on-home-assistant-using-text-editor/1839/20?u=smanar

For normal OS

All DDF provided directly with deCONZ typically reside in /usr/share/deCONZ/devices/ on a Linux system and are loaded first. However, files residing in the home directory of the user running deCONZ (e.g. /home//.local/share/dresden-elektronik/deCONZ/devices) will override the pre-packaged files to allow users to amend and keep their own files if desired.

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 May 30, 2024
Copy link
Contributor

github-actions bot commented Jun 7, 2024

As there has not been any response in 28 days, this issue will be closed. @ OP: If this issue is solved post what fixed it for you. If it is not solved, request to get this opened again.

@github-actions github-actions bot closed this as completed Jun 7, 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