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

Vendor_TZE204_cjbofhxw ModelTS0601 - Ampermeter from Matsee #6934

Closed
sajikur opened this issue Apr 28, 2023 · 38 comments
Closed

Vendor_TZE204_cjbofhxw ModelTS0601 - Ampermeter from Matsee #6934

sajikur opened this issue Apr 28, 2023 · 38 comments

Comments

@sajikur
Copy link

sajikur commented Apr 28, 2023

https://forum.phoscon.de/t/matsee-plus-smart-meter-with-ct/3453/4

https://zigbee.blakadder.com/QS-Zigbee-S05-EC.html

Ampermeter from Matsee Model TS0601

  • Product name: Ampermeter from Matsee.
  • Manufacturer: Vendor_TZE204_cjbofhxw .
  • Model identifier: ModelTS0601.
  • Device type : Please remove all unrelated device types.
    • Other: Amperometer

Screenshots

note3
nota2
nota1
nota6

Basic

Identify

Alarms

Device Temperature

Groups

nota7
nota7a

Scenes

nota8
nota8a

nota8b

On/Off

Level Control

Color Control

Simple Metering

Diagnostics

Other clusters that are not mentioned above

@Mimiix
Copy link
Collaborator

Mimiix commented Apr 28, 2023

Missing screeenshot of atleast the full cluster list.. Please add all.

@sajikur
Copy link
Author

sajikur commented Apr 28, 2023

Hi, thank you for answer. Could you tell me what is the panel you mean?

@Mimiix
Copy link
Collaborator

Mimiix commented Apr 28, 2023

The list of clusters under the node on the gui.

@sajikur
Copy link
Author

sajikur commented Apr 28, 2023

It's correct?

@Mimiix
Copy link
Collaborator

Mimiix commented Apr 28, 2023

Now we are still missing screens for groups and scenes cluster

@sajikur
Copy link
Author

sajikur commented Apr 28, 2023

well, It's all? Sorry for my little experience in this kind of request

@Mimiix
Copy link
Collaborator

Mimiix commented Apr 28, 2023

All good , thanks :)

@sajikur
Copy link
Author

sajikur commented Apr 28, 2023

All good , thanks :)

Thank you!

@sajikur
Copy link
Author

sajikur commented May 12, 2023

hi, any news?

@Mimiix
Copy link
Collaborator

Mimiix commented May 12, 2023

No dev has picked it up, so no news

@BabaIsYou
Copy link
Contributor

BabaIsYou commented May 16, 2023

https://zigbee.blakadder.com/QS-Zigbee-S05-EC.html

Is certainly not the right link ;-)

May be could try this DDF. Not quite sure about consumption BTW

{
	"schema": "devcap1.schema.json",
	"manufacturername": "_TZE204_cjbofhxw",
	"modelid": "TS0601",
	"product": "Ampermeter from Matsee plus",
	"sleeper": false,
	"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",
						"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": "config/offset",
					"default": 0
				},
				{
					"name": "config/on"
				},
				{
					"name": "config/tuya_unlock"
				},
				{
					"name": "config/reachable"
				},
				{
					"name": "state/consumption",
					"parse": {
						"fn": "tuya",
						"dpid": 101,
						"eval": "Item.val = Attr.val / 1000;"
					},
					"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",
						"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": 18,
						"eval": "Item.val = Attr.val / 1000;"
					},
					"read": {
						"fn": "none"
					},
					"default": 0
				},
				{
					"name": "state/voltage",
					"parse": {
						"fn": "tuya",
						"dpid": 20,
						"eval": "Item.val = Attr.val / 10;"
					},
					"read": {
						"fn": "none"
					},
					"default": 0
				},
				{
					"name": "state/power",
					"parse": {
						"fn": "tuya",
						"dpid": 19,
						"eval": "Item.val = Attr.val / 10;"
					},
					"read": {
						"fn": "none"
					},
					"default": 0
				}
			]
		}
	]
}

@BabaIsYou
Copy link
Contributor

hi, any news?

@sajikur any news from your side ?

@sajikur
Copy link
Author

sajikur commented May 23, 2023

hi, any news?

@sajikur any news from your side ?

Unfortunately no new news. Too bad because the device is really very cheap compared to shelly and it's zigbee

@BabaIsYou
Copy link
Contributor

Did you give a try to the provided DDF ?

@sajikur
Copy link
Author

sajikur commented May 23, 2023

Did you give a try to the provided DDF

sorry for my incompetence. Could you explain me your post?
thank you

@BabaIsYou
Copy link
Contributor

I think you could begin with this : https://github.com/dresden-elektronik/deconz-rest-plugin/wiki/DDF-cheat-sheet

@sajikur
Copy link
Author

sajikur commented May 23, 2023

@github-actions
Copy link

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 Jun 14, 2023
@pdcmoreira
Copy link

Also bought one of these.

Tried the DDF above and also tried creating one with some of the ids that appeared in the logs, but none of that worked.

There is an interesting thread about this device at the Z2M repo and in particular there seems to be a specific behavior to this (relevant comments 1 2):

  • It periodically polls for some "cloud connection status" through 0x25
  • The coordinator should send back the same payload with an extra 0x01 (which represents the "connected" status)
  • Only after it receives this "confirmation" it starts sending the actual power values

Is it possible to implement such behavior in a DDF?

Also, there's another interesting comment with some kind of pseudo-code (but the logic seems to make sense overall).

@BabaIsYou
Copy link
Contributor

Saw it already, but as sajikur has naver mentionned a pairing issue, nor tested the DDF ... issue was staled ...

@github-actions github-actions bot removed the stale label Jun 15, 2023
@github-actions
Copy link

github-actions bot commented Jul 6, 2023

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 Jul 6, 2023
@github-actions
Copy link

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.

@haegar33
Copy link

haegar33 commented Aug 8, 2023

So the conclusion is: there is no solution for this device and no working deConz implementation? Its a wide spread energy meter on Aliexpress now. In my NodeRed/Deconz setup its quickly recognized, but only as power plug. I tried the DDF mentioned above but no differenz
basic_cluster

@pdcmoreira
Copy link

@haegar33 For now, I guess there is no working solution and I also stopped trying to make it work. Might try again soon.

@Mimiix
Copy link
Collaborator

Mimiix commented Aug 8, 2023

So the conclusion is: there is no solution for this device and no working deConz implementation? Its a wide spread energy meter on Aliexpress now. In my NodeRed/Deconz setup its quickly recognized, but only as power plug. I tried the DDF mentioned above but no differenz basic_cluster

The proposed DDF was never tested.

While testing the DDF, you should see things in the rest api .

@pdcmoreira
Copy link

Hey @Mimiix what do you mean by this?

While testing the DDF, you should see things in the rest api .

@haegar33
Copy link

haegar33 commented Aug 8, 2023

Indeed there is change in the REST-API (but not visibile in Phoscon!)

"25": {
        "config": {
            "offset": 0,
            "on": true,
            "reachable": true
        },
        "etag": "6e74c7e73e4da6618383676044fa2343",
        "lastannounced": null,
        "lastseen": "2023-08-08T15:14Z",
        "manufacturername": "_TZE204_cjbofhxw",
        "modelid": "TS0601",
        "name": "Consumption 25",
        "state": {
            "consumption": 0,
            "lastupdated": "none"
        },
        "type": "ZHAConsumption",
        "uniqueid": "18:7a:3e:ff:fe:cb:0a:21-01-0702"
    },
    "26": {
        "config": {
            "offset": 0,
            "on": true,
            "reachable": true
        },
        "etag": "0cf7365295e68bbf806159e8e23bc409",
        "lastannounced": null,
        "lastseen": "2023-08-08T15:14Z",
        "manufacturername": "_TZE204_cjbofhxw",
        "modelid": "TS0601",
        "name": "Power 26",
        "state": {
            "current": 0,
            "lastupdated": "none",
            "power": 0,
            "voltage": 0
        },
        "type": "ZHAPower",
        "uniqueid": "18:7a:3e:ff:fe:cb:0a:21-

Ok, so some progress ;) But readings are always zero (Status last update = never)

@Mimiix
Copy link
Collaborator

Mimiix commented Aug 8, 2023

The working of the DDF can only be determined by checking the rest api or websocket. Phoscon probably isn't showing anything as it needs to add support on its own.

@Mimiix
Copy link
Collaborator

Mimiix commented Aug 8, 2023

This repo only provides support until the api itself .

@Mimiix Mimiix reopened this Aug 8, 2023
@haegar33
Copy link

haegar33 commented Aug 8, 2023

ok applying the DDF gets a modified REST-api response, but this does not imply that the device is providing values with the defined "attributes" I see that @pdcmoreira and others have tried without success.
Looks like this is the first China device not working with my setup ;(
Thanks anyway! Haegar

@github-actions github-actions bot removed the stale label Aug 9, 2023
@haegar33
Copy link

haegar33 commented Aug 9, 2023

Looking at a similar(?) device discussed here #7151 I changed the DDF entry for ''state/voltage'' as suggested and I get at least a reasonable answer back via REST:

   "lastannounced": "2023-08-09T09:12:33Z",
    "lastseen": "2023-08-09T10:21Z",
    "manufacturername": "_TZE204_cjbofhxw",
    "modelid": "TS0601",
    "name": "Power 26",
    "state": {
        "current": 0,
        "lastupdated": "2023-08-09T09:14:29.603",
        "power": 0,
        "voltage": 234
    },
    "type": "ZHAPower",
    "uniqueid": "18:7a:3e:ff:fe:cb:0a:21-01-0b04"
}

@Smanar
Copy link
Collaborator

Smanar commented Aug 9, 2023

If you have the GUI, you can take a look in logs with flag "info" and "ddf", you will return from the device (even not managed by deconz)

Because the DDF seem fine for me, you need to have the consumption too.

What have you changed on the original DDF to have voltage ?

@haegar33
Copy link

I have changed:

        {
          "name": "state/voltage",
          "parse": {"fn": "tuya", "dpid": 6, "eval": "Item.val = (Attr.val[0] << 8) | Attr.val[1]) / 10;" },
          "read": {"fn": "none"},
          "default": 0
        },

thus reading from dpid 6. As I am not an expert in javascript bitfield decodings I could not get current or power. I will try the deCONZ GUI log file

@Smanar
Copy link
Collaborator

Smanar commented Aug 10, 2023

Hu ?
I have checked again, and the model _TZE204_cjbofhxw don't use the dpid 6 but the 20 for voltage ....

I will try the deCONZ GUI log file

Yeah pls, on deconz logs you will be able to see request from the device with "info", and the dpid used by it.

@github-actions
Copy link

github-actions bot commented Sep 1, 2023

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 Sep 1, 2023
@pdcmoreira
Copy link

Please keep this open.

@github-actions github-actions bot removed the stale label Sep 2, 2023
@github-actions
Copy link

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 Sep 23, 2023
@github-actions
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants