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

HEIMAN BW-SHP13 look a like is not showing powerconsumption #3788

Closed
canedje opened this issue Dec 1, 2020 · 140 comments · Fixed by #4448
Closed

HEIMAN BW-SHP13 look a like is not showing powerconsumption #3788

canedje opened this issue Dec 1, 2020 · 140 comments · Fixed by #4448

Comments

@canedje
Copy link

canedje commented Dec 1, 2020

Device

  • Product name: The device name as shown on the product or package. BlitzWolf BW-SPH13
  • Manufacturer: As per deCONZ GUI Basic cluster._TZ3000_g5xawfcq
  • Model identifier: As per deCONZ GUI Basic cluster. TS0121
  • Device type : Please remove all unrelated device types.
    • Light

Screenshots

image

image

image

image

image

image

image

image

image

I did order in the past from Banggood a Heiman Blitzwolf BW-SPH13
This worked good.
I now did order again two devices.
These ones are not showing power messaurement.
If I look in the Deconz GUI I do see there is not Heiman as Vendor but:

image

If I look at the cluster infor there is power Measurement (See pictures above)
In HA there is no power measurement
My early one (BlitzWolf 1) has:

image
width=1442&height=373
22B68522-5F96-4884-A334-31252EA2D353

@canedje canedje changed the title Device name HEIMAN BW-SHP13 look a like is not showing powerconsumption Dec 1, 2020
@Mimiix
Copy link
Collaborator

Mimiix commented Dec 2, 2020

@canedje In ha, it creates a Consumption and Power entity. Mostly named sensor.power_22 or something like that.

@canedje
Copy link
Author

canedje commented Dec 2, 2020

No it isn't
EDIT:
I did remove and repair the devices.
Now it is showing indeed the power entity.
I 'm only not possible to repair both of the devices again
One is working oke now
The other I can not pair anymore
It is showing up in VNC but not with a name.
I tried several times to repair, but without any luck.
Any Advice?
image
It only creates this node as above in VNC.
No device in the Phoscon app

If I look into the Docker Log I do see this message:
image

Then after restarting Deconz Docker, there are no light visible anymore in the app.
I do need to restore a backup to get my lights back???

@Diondk
Copy link

Diondk commented Dec 10, 2020

I have the same issue as described above. i received 2 blitzwolfs but 1 of them isnt providing the power meter sensor in home assistant.

When i check the log files i also have this error:

09:31:08:227 Tuya debug 7 : Missing manufacture name for 0x588e81fffeff5d5f
09:31:08:227 DB SELECT manufacturername FROM nodes WHERE mac LIKE '58:8e:81:ff:fe:ff:5d:5f%' COLLATE NOCASE: _TZ3000_g5xawfcq

Already tried repairing the device but no luck.

image

@caro7372
Copy link

No it isn't
EDIT:
I did remove and repair the devices.
Now it is showing indeed the power entity.
I 'm only not possible to repair both of the devices again
One is working oke now
The other I can not pair anymore
It is showing up in VNC but not with a name.
I tried several times to repair, but without any luck.
Any Advice?
image
It only creates this node as above in VNC.
No device in the Phoscon app

If I look into the Docker Log I do see this message:
image

Then after restarting Deconz Docker, there are no light visible anymore in the app.
I do need to restore a backup to get my lights back???

How did you manage to repair one of the plugs?

@J05HI
Copy link

J05HI commented Dec 25, 2020

I have the same problem. Ordered one again with the name "_TZ3000_g5xawfcq" now. Has the manufacturer changed something?

@jimz011
Copy link

jimz011 commented Dec 29, 2020

Same problem here, received 2 today and only on/off is showing. I see people talking about repairing, though how can we do that?

@J05HI
Copy link

J05HI commented Dec 30, 2020

Same problem here, received 2 today and only on/off is showing. I see people talking about repairing, though how can we do that?

I already removed it and repaired several times. This doesn't solve the problem.
I repaired an old one and have the same problem for it too. Looks like there is a bug in the latest version.

@ghost
Copy link

ghost commented Jan 10, 2021

I have the same issue with 3 newly ordered BW-SPH13's. Three 'older' ones work including power and consumption. Repairing does not work. No idea how to repair them, but apparently this does not work.

@Smanar
Copy link
Collaborator

Smanar commented Jan 11, 2021

Someone that have a working and a not working one can compare the cluster list to check if they have not a difference somewhere ?

@J05HI
Copy link

J05HI commented Jan 15, 2021

@Smanar
The only difference I can see is the Application Version and Manufacturer Name.

Old working:
image

New not working:
image

@Smanar
Copy link
Collaborator

Smanar commented Jan 15, 2021

It s not a small change ^^.
Both create the sensor device ? (with consumption) ?
If not can you give me the manufacture number (in node information) and the 6 first character in MAC adress.

For information, the working one natively use

    { VENDOR_NONE, "TS0121", silabs3MacPrefix }, // Tuya/Blitzwolf smart plug
    { VENDOR_EMBER, "TS0121", silabs3MacPrefix }, // Tuya/Blitzwolf smart plug

VENDOR_NONE = 0x0000
VENDOR_EMBER = 0x1002
silabs3MacPrefix = 0xec1bbd......

In reality the white list is more permissive, but the one you have can have an impact on detection.
It work too with emberMacPrefix, konkeMacPrefix, silabs5MacPrefix, silabs7MacPrefix.

If both create the sensor entry, forget my previous comments, and pls check for cluster list.

@luchtenburger
Copy link

I have similar issues with my two BW-SHP13 plugs, purchased from Banggood.
First I've used the deConz addon for the connection in HA. For one plug (Plug 2) I had both power and engergy data, for the other plug (Plug 3), I had no sensor data (only On and Off switch).

I've removed the deConz addon and installed the ZHA integration.
Now I have the power reading for both plugs and no energy sensor (same for both plugs)

This is the data I have in the ZHA integration:
image

The energy sensor is created, but the data is unknown:
image

@Mimiix
Copy link
Collaborator

Mimiix commented Jan 15, 2021

@luchtenburger As this is about zha, it doesn't add much here. Only the ID I guess. The rest is irrelevant. @Smanar, is this a new version?

@LodewijkSioen
Copy link

This is what happened to me with the new version (TZ3000_g5xawfcq).
I paired the plugs in Phoscon and gave them a new name. They appeared in Home Assistant with the new name, but without power sensors. After a while the power sensors appeared in Home Assistant, but with random names. The names of the devices then also reverted back to a random name in Home Assistant.
Phoscon
HomeAssistant
What other information can I give?

@Mimiix
Copy link
Collaborator

Mimiix commented Jan 18, 2021

I've asked Manuel to reply here. See what goes. I understand that there might be something wrong here.

@userMak
Copy link

userMak commented Jan 18, 2021

This is what happened to me with the new version (TZ3000_g5xawfcq).
I paired the plugs in Phoscon and gave them a new name. They appeared in Home Assistant with the new name, but without power sensors. After a while the power sensors appeared in Home Assistant, but with random names. The names of the devices then also reverted back to a random name in Home Assistant.
Phoscon
HomeAssistant
What other information can I give?

I have exactly the same problem.

@jimz011
Copy link

jimz011 commented Jan 18, 2021

Funny how so many of you have power readings at all. I have repaired my devices a bunch of times and even let it run for a few days. No power sensor at all in Home Assistant.

I see people talking about the name not corresponding though I believe that is the normal behavior since my other blitwolfs (the ones that do show power consumption) also have random names. Though they are shown in the device list (when you click on devices in HA you can see which sensors are associated with that device).

The ones that don't work (the ones with the same serial as the ones posted here) do not show any power consumption at all.

I really wonder how you guys were able to get power consumption readings at all.

@jimz011
Copy link

jimz011 commented Jan 18, 2021

Not working:

Screenshot_20210118-124111_Home Assistant.jpg

Working:
Screenshot_20210118-124133_Home Assistant.jpg

@userMak
Copy link

userMak commented Jan 18, 2021

Funny how so many of you have power readings at all. I have repaired my devices a bunch of times and even let it run for a few days. No power sensor at all in Home Assistant.

I see people talking about the name not corresponding though I believe that is the normal behavior since my other blitwolfs (the ones that do show power consumption) also have random names. Though they are shown in the device list (when you click on devices in HA you can see which sensors are associated with that device).

The ones that don't work (the ones with the same serial as the ones posted here) do not show any power consumption at all.

I really wonder how you guys were able to get power consumption readings at all.

It is very strange. I bought 4 plugs from the same shop. 3 of them are working (with power consumption etc) and one of them it is not.

@LodewijkSioen
Copy link

LodewijkSioen commented Jan 19, 2021

One extra thing: I can turn the plug on/off from the Phoscon UI, but using the Switch Entity from Home Assistant doesn't work. The toggle reflects the current state of the plug, but using it as a switch does nothing.
Using the Deconz group as a Switch in Home Assistant works though.

@J05HI
Copy link

J05HI commented Jan 19, 2021

@Smanar
I've reset the plug to the factory defaults through deCONZ. Afterwards I've repaired the device. After reloading the integration in Home Assistant it shows the power and consumption and everything works as it should.
Where's the key problem here?

@userMak
Copy link

userMak commented Jan 19, 2021

@Smanar
I've reset the plug to the factory defaults through deCONZ. Afterwards I've repaired the device. After reloading the integration in Home Assistant it shows the power and consumption and everything works as it should.
Where's the key problem here?

How did you reset the plug through Deconz please?

@Mimiix
Copy link
Collaborator

Mimiix commented Jan 19, 2021

@userMak Please read the manual for that.

On a moderation note: Please don't clutter the issue with #metoo or #howdoi questions.

@Smanar @manup @SwoopX Is this a issue of the device (firmware) or something we can fix. Either way, we need a way forward.

@manup
Copy link
Member

manup commented Jan 19, 2021

We put the devices and a bunch of other Tuya stuff on the order list, hard to tell what's actually going on otherwise.

https://de.banggood.com/BlitzWolf-BW-SHP13-Zigbee-3_0-Smart-WIFI-Socket-16A-EU-Plug-Electricity-Metering-APP-Remote-Controller-Timer-Work-with-Amazon-Alexa-Google-Home-p-1679992.html?cur_warehouse=CN&rmmds=search

They seem not to be available on Amazon :/

@up2datecyborg
Copy link

Hi,
I have exactly the same problem, but I'll explain what happened in my case:

  • I had a running Home Assistant with a Conbee II USB stick.
  • I first paired a SHP13 with success
  • I bought another Conbee II, to migrate to a new raspberry with a new case, etc
  • I can pair the same plug with the new Conbee II, and see it as a light in Phoscon (until this step, everything ok)
  • When I sync in Home Assistant, I only see the plug, no power and no power consumption
  • Deconz seems to see the info of power and consumption, but, calling the API I only see the plug, no power and no power consumption, for other SHP13s I can see plug+power+consumption

Another plug I wanted to migrate worked succesfully.

I bought 18 more SHP13 plugs, and when pairing them for the first time, I don't get any issue with them. So I don't know if it has something to do with the fact that it was already paired once...

I tried to repair it more than 20 times, I tried what @J05HI said about factory reset through deconz, but no luck with this plug.
I also tried to backup and restore conbee config via phoscon web page, but no luck neither.

If you need any useful info calling the API, or screenshot of deconz, I'd be pleased to help to resolve this problem.

@github-actions github-actions bot added the stale label Apr 15, 2022
@github-actions
Copy link
Contributor

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.

@Remc000tje
Copy link

Seems to be a new one. @Smanar Can this be done with DDF?

Hi all, is : _TZ3000_amdymr7l fixable through DDF, and if so, how should I do this?

kind regards

@Smanar
Copy link
Collaborator

Smanar commented May 7, 2022

Hello, can try this DDF

{
  "schema": "devcap1.schema.json",
  "manufacturername": "_TZ3000_amdymr7l",
  "modelid": "TS011F",
  "vendor": "Tuya",
  "product": "XXXX",
  "sleeper": false,
  "status": "Gold",
  "subdevices": [
    {
      "type": "$TYPE_ON_OFF_PLUGIN_UNIT",
      "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"
        },
        {
          "name": "attr/type"
        },
        {
          "name": "attr/uniqueid"
        },
        {
          "name": "state/alert"
        },
        {
          "name": "state/on",
          "refresh.interval": 360
        },
        {
          "name": "state/reachable"
        }
      ]
    },
    {
      "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"
        },
        {
          "name": "attr/type"
        },
        {
          "name": "attr/uniqueid"
        },
        {
          "name": "config/on"
        },
        {
          "name": "config/reachable"
        },
        {
          "name": "state/consumption",
          "refresh.interval": 360,
          "parse": {
            "at": "0x0000",
            "cl": "0x0702",
            "ep": 1,
            "eval": "Item.val = Attr.val * 10;"
          }
        },
        {
          "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"
        },
        {
          "name": "attr/type"
        },
        {
          "name": "attr/uniqueid"
        },
        {
          "name": "config/on"
        },
        {
          "name": "config/reachable"
        },
        {
          "name": "state/current",
          "refresh.interval": 360
        },
        {
          "name": "state/lastupdated"
        },
        {
          "name": "state/power",
          "refresh.interval": 360
        },
        {
          "name": "state/voltage",
          "refresh.interval": 360
        }
      ]
    }
  ],
  "bindings": [
    {
      "bind": "unicast",
      "src.ep": 1,
      "cl": "0x0006",
      "report": [
        {
          "at": "0x0000",
          "dt": "0x10",
          "min": 1,
          "max": 300
        }
      ]
    },
    {
      "bind": "unicast",
      "src.ep": 1,
      "cl": "0x0702",
      "report": [
        {
          "at": "0x0000",
          "dt": "0x25",
          "min": 1,
          "max": 300,
          "change": "0x0000000A"
        }
      ]
    },
    {
      "bind": "unicast",
      "src.ep": 1,
      "cl": "0x0B04",
      "report": [
        {
          "at": "0x0505",
          "dt": "0x21",
          "min": 1,
          "max": 300,
          "change": "0x00000001"
        },
        {
          "at": "0x0508",
          "dt": "0x21",
          "min": 1,
          "max": 300,
          "change": "0x00000064"
        },
        {
          "at": "0x050B",
          "dt": "0x29",
          "min": 1,
          "max": 300,
          "change": "0x00000001"
        }
      ]
    }
  ]
}

I don't know your model id so have used this one

"modelid": "TS011F",

@manup
Copy link
Member

manup commented May 7, 2022

Suppose this is the same Blitzwolf BW-SHP13 we can add the modelid and manufacturername combo to the existing DDF device/blitzwolf/bw_shp13_smart_plug.json.

{
  "manufacturername": ["_TZ3000_g5xawfcq", "_TZ3000_amdymr7l"],
  "modelid": ["TS0121", "TS011F"],
}

Note the modelid TS011F might be different and must be the one shown in Basic cluster.

@Remc000tje
Copy link

So this is the "new"one, below the earlier working (in HA and Grafana) SHP13.
image

image

does this help?

@Smanar
Copy link
Collaborator

Smanar commented May 8, 2022

Can you try this DDF ?

{
  "schema": "devcap1.schema.json",
  "manufacturername": ["_TZ3000_g5xawfcq", "_TZ3000_amdymr7l"],
  "modelid": ["TS0121", "TS011F"],
  "product": "BW-SHP13",
  "vendor": "Blitzwolf",
  "sleeper": false,
  "status": "Gold",
  "subdevices": [
    {
      "type": "$TYPE_SMART_PLUG",
      "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/tuya_swversion.js"},
          "read": {"fn": "zcl", "ep": 1, "cl": "0x0000", "at": "0x0001"}
        },
        {
          "name": "attr/type"
        },
        {
          "name": "attr/uniqueid"
        },
        {
          "name": "state/alert",
          "default": "none"
        },
        {
          "name": "state/on",
          "refresh.interval": 5
        },
        {
          "name": "state/reachable"
        }
      ]
    },
    {
      "type": "$TYPE_POWER_SENSOR",
      "restapi": "/sensors",
      "uuid": [
        "$address.ext",
        "0x01",
        "0x0b04"
      ],
      "fingerprint": {
        "profile": "0x0104",
        "device": "0x0051",
        "endpoint": "0x01",
        "in": [
          "0x0000",
          "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/tuya_swversion.js"}
        },
        {
          "name": "attr/type"
        },
        {
          "name": "attr/uniqueid"
        },
        {
          "name": "config/on"
        },
        {
          "name": "config/reachable"
        },
        {
          "name": "state/current",
          "refresh.interval": 300
        },
        {
          "name": "state/lastupdated"
        },
        {
          "name": "state/power",
          "refresh.interval": 300
        },
        {
          "name": "state/voltage",
          "refresh.interval": 300
        }
      ]
    },
    {
      "type": "$TYPE_CONSUMPTION_SENSOR",
      "restapi": "/sensors",
      "uuid": [
        "$address.ext",
        "0x01",
        "0x0702"
      ],
      "fingerprint": {
        "profile": "0x0104",
        "device": "0x0051",
        "endpoint": "0x01",
        "in": [
          "0x0000",
          "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/tuya_swversion.js"}
        },
        {
          "name": "attr/type"
        },
        {
          "name": "attr/uniqueid"
        },
        {
          "name": "config/on"
        },
        {
          "name": "config/reachable"
        },
        {
          "name": "state/consumption",
          "read": {"at": "0x0000", "cl": "0x0702", "ep": 0, "fn": "zcl" },
          "parse": {"at": "0x0000", "cl": "0x0702", "ep": 0, "eval": "Item.val = Attr.val * 10"},
          "refresh.interval": 300
        },
        {
          "name": "state/lastupdated"
        }
      ]
    }
  ],
  "bindings": [
    {
      "bind": "unicast",
      "src.ep": 1,
      "cl": "0x0006",
      "report": [
        {
          "at": "0x0000",
          "dt": "0x10",
          "min": 1,
          "max": 300
        }
      ]
    },
    {
      "bind": "unicast",
      "src.ep": 1,
      "cl": "0x0702",
      "report": [
        {
          "at": "0x0000",
          "dt": "0x25",
          "min": 1,
          "max": 300,
          "change": "0x0000000A"
        }
      ]
    },
    {
      "bind": "unicast",
      "src.ep": 1,
      "cl": "0x0B04",
      "report": [
        {
          "at": "0x0505",
          "dt": "0x21",
          "min": 1,
          "max": 300,
          "change": "0x00000001"
        },
        {
          "at": "0x0508",
          "dt": "0x21",
          "min": 1,
          "max": 300,
          "change": "0x00000064"
        },
        {
          "at": "0x050B",
          "dt": "0x29",
          "min": 1,
          "max": 300,
          "change": "0x00000001"
        }
      ]
    }
  ]
}

@Remc000tje
Copy link

Remc000tje commented May 9, 2022

I would love to do this, but I do not know how to find the folder. I am on a Synology NAS with the VM version of HomeAssistant. within HomeAssistant I use the Deconz Addon.

image

I did, however, gave the Blitzwolf to a friend of mine who is using the ZHA-addon, also with a conbeeII , and this is how it looks on that side.

image

so in basic some mesurements / identity's that are actually in the sensor is not passed through to HA.

what to do?

@Smanar
Copy link
Collaborator

Smanar commented May 9, 2022

Perhaps this can help you to edit the file on HA https://forum.phoscon.de/t/how-to-add-edit-a-ddf-on-home-assistant-using-text-editor/1839/2

@nohn
Copy link

nohn commented May 9, 2022

Those devices are broken, see Koenkk/zigbee2mqtt#11800 for an analysis and can't be fixed. Only way to minimize the impact is pulling the metrics constantly and frequently.

@Smanar
Copy link
Collaborator

Smanar commented May 9, 2022

If I m right It's done too by the setting

"refresh.interval": 300

@Remc000tje
Copy link

Hi, tried the suggestion in finding where the files are stored, but I don't no a CLI editor to create a new DDF. but: edited the device/blitzwolf/bw_shp13_smart_plug.json in Deconz, saved the file and Hot-reloaded, but no effect. the BW13 still looks for the "new" TS011F.json. in order to the refresh interval.. it has always been at an interval of 5 sec, now it it 300 . in changing the DDF , it will react as entered, but after a reboot of HA the new default value of 300 is returned again.

is it possible to help me out?

@Smanar
Copy link
Collaborator

Smanar commented May 18, 2022

Hot-reloaded, but no effect

For me the change need to be immediate for plug devices ...

the new default value of 300 is returned again

Deconz doesn't overwrite DDF, so was probably because the change was not applied.

the BW13 still looks for the "new" TS011F.json

I don't understand you haven't saved on the same file ? and have created a new DDF called "TS011F.json" ?

Else about the priority

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.

Perhaps this can help you https://forum.phoscon.de/t/how-to-add-edit-a-ddf-on-home-assistant-using-text-editor/1839

@Pedder007
Copy link

Pedder007 commented May 20, 2022

Hi again, also coming back here after half a year 😅
I got some additonal SHP-13's and they are also the '_TZ3000_amdymr7l' typ.
Binded them first as light (via Phoscon) and then tried sensor binding, incl. 'clicking around and switching on and off' to integrate Power, Voltage, etc. like hell, as I did it with the former types, which worked last year, but with this new devices now failed 😢

I came back here and found @Smanar 's explanations around the DDFs (= .json files, I guess?) and followed up. Understood to create a file with the above content, named 'w_shp13_smart_plug.json' in the respective folder (/usr/share/deCONZ/devices/blitzwolf) and learned the plug newly by Phoscon as light.
Afterwards started again the sensor search, but again got no consumption data. Also further attempts, incl. clicking around, only caused a deCONZ restart (not quiet sure), as couple of other plugs/lights suddenly switched and also some shutters went up, which wasn't funny at that time with the whole family at home 😞

In the deConz gui I can read the values and they are also properly updated, but they are not handed over to ioBroker, as also the sensor discovery never ended with a green bar in Phoscon.

Does someone maybe have any additional hints?
Cheers and good night for today!

@Smanar
Copy link
Collaborator

Smanar commented May 21, 2022

You have used this DDF #3788 (comment)
So your device is this one

  "manufacturername": ["", "_TZ3000_amdymr7l"],
  "modelid": ["", "TS011F"],

If you select the node, and make "edit DDF", it will open the DDF editor, on the window title, it s your DDF file ?

If yes can try a "hot relaod" in the menu and looking on logs for an error message.

@Pedder007
Copy link

Pedder007 commented May 21, 2022

Hi @Smanar, thanks for coming back 👍
Yes, everything as you described, but I missed the edit DDF/hot reload, if that might have been already somewhere in the thread above.
I did it now with both plugs and the Debug DDF result is as following:

17:20:37:523 update ddf TS011F index 103
17:20:40:220 60:a4:23:ff:fe:ff:8a:f1-01/state/on expression: Item.val = Attr.val --> false
17:20:41:227 60:a4:23:ff:fe:5e:2a:9f-01/state/on expression: Item.val = Attr.val --> false
17:20:42:178 60:a4:23:ff:fe:65:1e:43-01/state/on expression: Item.val = Attr.val --> false
17:20:57:037 00:17:88:01:08:63:5e:ef-02-0402/state/temperature expression: Item.val = Attr.val + R.item('config/offset').val --> 2036
17:21:11:270 00:17:88:01:08:63:5e:ef-02-0406/state/presence expression: Item.val = Attr.val --> 0
17:21:22:207 60:a4:23:ff:fe:65:1f:20-01/state/on expression: Item.val = Attr.val --> false
17:22:02:478 60:a4:23:ff:fe:65:1f:20-01-0702/state/consumption expression: Item.val = Attr.val * 10 --> 460550
17:22:08:764 update ddf TS011F index 103
17:22:12:214 60:a4:23:ff:fe:ff:8a:f1-01/state/on expression: Item.val = Attr.val --> false
17:22:12:258 60:a4:23:ff:fe:ff:8a:f1-01-0b04/state/power expression: if (Attr.val != -32768 && Attr.val != 32768) { Item.val = Attr.val; } --> 0
17:22:12:298 60:a4:23:ff:fe:ff:8a:f1-01-0b04/state/voltage expression: if (Attr.val != 65535) { Item.val = Attr.val; } --> 231
17:22:12:462 60:a4:23:ff:fe:ff:8a:f1-01-0b04/state/current expression: if (Attr.val != 65535) { Item.val = Attr.val; } --> 0
17:22:13:237 60:a4:23:ff:fe:5e:2a:9f-01/state/on expression: Item.val = Attr.val --> false
17:22:13:321 60:a4:23:ff:fe:5e:2a:9f-01-0b04/state/power expression: if (Attr.val != -32768 && Attr.val != 32768) { Item.val = Attr.val; } --> 0
17:22:13:545 60:a4:23:ff:fe:5e:2a:9f-01-0b04/state/voltage expression: if (Attr.val != 65535) { Item.val = Attr.val; } --> 231
17:22:13:637 60:a4:23:ff:fe:5e:2a:9f-01-0b04/state/current expression: if (Attr.val != 65535) { Item.val = Attr.val; } --> 0
17:22:14:225 60:a4:23:ff:fe:65:1e:43-01/state/on expression: Item.val = Attr.val --> false
17:22:23:119 00:0d:6f:00:0f:bf:98:a6-01-0402/state/temperature expression: Item.val = Attr.val + R.item('config/offset').val --> 2055
17:22:36:532 00:17:88:01:08:63:5e:ef-02-0400/state/lightlevel expression: const tholddark = R.item('config/tholddark').val;
const tholdoffset = R.item('config/tholdoffset').val;
const measuredValue = Attr.val;

R.item('state/dark').val = measuredValue <= tholddark;
R.item('state/daylight').val = measuredValue >= tholddark + tholdoffset;
if (measuredValue > 0 && measuredValue < 0xffff) {
	const exp = measuredValue - 1;
	const l = Math.pow(10, exp / 10000.0) + 0.5;
	R.item('state/lux').val = Math.round(l);
}
Item.val = measuredValue;
 --> 14590
17:22:53:785 60:a4:23:ff:fe:65:1e:43-01-0702/state/consumption expression: Item.val = Attr.val * 10 --> 172070
17:22:54:205 60:a4:23:ff:fe:65:1f:20-01/state/on expression: Item.val = Attr.val --> false
17:22:54:255 60:a4:23:ff:fe:65:1f:20-01-0b04/state/power expression: if (Attr.val != -32768 && Attr.val != 32768) { Item.val = Attr.val; } --> 0
17:22:54:316 60:a4:23:ff:fe:65:1f:20-01-0b04/state/voltage expression: if (Attr.val != 65535) { Item.val = Attr.val; } --> 221
17:22:54:385 60:a4:23:ff:fe:65:1f:20-01-0b04/state/current expression: if (Attr.val != 65535) { Item.val = Attr.val; } --> 0
17:23:44:172 60:a4:23:ff:fe:ff:8a:f1-01/state/on expression: Item.val = Attr.val --> false
17:23:45:176 60:a4:23:ff:fe:5e:2a:9f-01/state/on expression: Item.val = Attr.val --> false
17:23:46:183 60:a4:23:ff:fe:65:1e:43-01/state/on expression: Item.val = Attr.val --> false
17:23:46:243 60:a4:23:ff:fe:65:1e:43-01-0b04/state/power expression: if (Attr.val != -32768 && Attr.val != 32768) { Item.val = Attr.val; } --> 0
17:23:46:309 60:a4:23:ff:fe:65:1e:43-01-0b04/state/voltage expression: if (Attr.val != 65535) { Item.val = Attr.val; } --> 220
17:23:46:467 60:a4:23:ff:fe:65:1e:43-01-0b04/state/current expression: if (Attr.val != 65535) { Item.val = Attr.val; } --> 0
17:24:21:794 60:a4:23:ff:fe:5e:2a:9f-01-0702/state/consumption expression: Item.val = Attr.val * 10 --> 111990
17:24:26:205 60:a4:23:ff:fe:65:1f:20-01/state/on expression: Item.val = Attr.val --> false
17:24:42:511 a4:c1:38:b8:3a:a2:8e:ad-01/attr/manufacturername expression: Item.val = Attr.val --> _TZ3000_amdymr7l
17:24:42:516 a4:c1:38:b8:3a:a2:8e:ad/attr/manufacturername expression: Item.val = Attr.val --> _TZ3000_amdymr7l
17:24:42:594 a4:c1:38:b8:3a:a2:8e:ad-01/attr/manufacturername expression: Item.val = Attr.val --> _TZ3000_amdymr7l
17:24:42:599 a4:c1:38:b8:3a:a2:8e:ad/attr/manufacturername expression: Item.val = Attr.val --> _TZ3000_amdymr7l
17:24:42:657 a4:c1:38:b8:3a:a2:8e:ad-01/attr/modelid expression: Item.val = Attr.val --> TS011F
17:24:42:662 a4:c1:38:b8:3a:a2:8e:ad/attr/modelid expression: Item.val = Attr.val --> TS011F
17:24:43:544 00:15:8d:00:06:e4:9b:86-01-0402/state/temperature expression: Item.val = Attr.val + R.item('config/offset').val --> 2300
17:24:43:623 00:15:8d:00:06:e4:9b:86-01-0405/state/humidity expression: Item.val = Attr.val + R.item('config/offset').val --> 4686
17:24:43:715 00:15:8d:00:06:e4:9b:86-01-0403/state/pressure expression: Item.val = Attr.val + R.item('config/offset').val --> 993
17:24:50:322 60:a4:23:ff:fe:ff:8a:f1-01-0702/state/consumption expression: Item.val = Attr.val * 10 --> 20920
17:25:12:695 00:17:88:01:08:63:5e:ef-02-0406/config/sensitivity expression: Item.val == 0 ? Item.val = Attr.val : Item.val --> 2
17:25:12:726 00:17:88:01:08:63:5e:ef-02-0406/config/ledindication expression: Item.val = Attr.val --> false
17:25:12:734 00:17:88:01:08:63:5e:ef-02-0406/config/usertest expression: Item.val = Attr.val --> false
17:25:12:740 00:17:88:01:08:63:5e:ef-02-0400/config/ledindication expression: Item.val = Attr.val --> false
17:25:12:745 00:17:88:01:08:63:5e:ef-02-0400/config/usertest expression: Item.val = Attr.val --> false
17:25:12:751 00:17:88:01:08:63:5e:ef-02-0402/config/ledindication expression: Item.val = Attr.val --> false
17:25:12:759 00:17:88:01:08:63:5e:ef-02-0402/config/usertest expression: Item.val = Attr.val --> false
17:25:12:805 00:17:88:01:08:63:5e:ef-02-0406/config/battery expression: Item.val = Attr.val / 2 --> 63
17:25:14:142 00:17:88:01:08:63:5e:ef-02-0400/config/battery expression: Item.val = Attr.val / 2 --> 63
17:25:15:164 00:17:88:01:08:63:5e:ef-02-0402/config/battery expression: Item.val = Attr.val / 2 --> 63
17:25:19:636 60:a4:23:ff:fe:ff:8a:f1-01/state/on expression: Item.val = Attr.val --> false
17:25:20:678 60:a4:23:ff:fe:5e:2a:9f-01/state/on expression: Item.val = Attr.val --> false
17:25:21:748 60:a4:23:ff:fe:65:1e:43-01/state/on expression: Item.val = Attr.val --> false

@Pedder007
Copy link

Pedder007 commented May 21, 2022

aha, I guess now I understood the concept 😄
It is possible to creat an own device-.json simply by drag and drop with the DDF editor.
Thus I added some 'parameters' to one of my SHP-13:
grafik

But what after this, restart deCONZ?
I did a new 'hot reload' and also restarted the adapter in ioBroker, but currently no additional objects are shown in ioBroker.
Or do I have to learn the device again via Phoscon and then the right file (ts011f.json) will be taken for the sensor objects?

Thanks for the next tip? 😃

@Smanar
Copy link
Collaborator

Smanar commented May 21, 2022

So the DDF on the previous link is working ? (To add it officially)
From that I m seing, it s complete, no need to add item ?

From log you have the voltage, current , consumption and power

17:22:54:255 60:a4:23:ff:fe:65:1f:20-01-0b04/state/power expression: if (Attr.val != -32768 && Attr.val != 32768) { Item.val = Attr.val; } --> 0
17:23:46:309 60:a4:23:ff:fe:65:1e:43-01-0b04/state/voltage expression: if (Attr.val != 65535) { Item.val = Attr.val; } --> 220
17:23:46:467 60:a4:23:ff:fe:65:1e:43-01-0b04/state/current expression: if (Attr.val != 65535) { Item.val = Attr.val; } --> 0
17:24:21:794 60:a4:23:ff:fe:5e:2a:9f-01-0702/state/consumption expression: Item.val = Attr.val * 10 --> 111990

After that, you just need to save the DDF.
It will be used on new future detected device, or on actual one (that are already in the API) at next reload, or immediatly if you make the "hot reload".

Third app can have skipped the change, so you can take a look in the API to be sure (in phoscon / help / Api Information)
Or generaly just restart the third app (I think all of them resynchronise at start)

@Pedder007
Copy link

I thought the same, that the consumption info was already in the new file. However, I put it additionally with the DDF editor, as a comparison btw. my older SHP-13s and the new ones showed, that in the old one, the parameters have been in (like in the screenshoot above) and in the new ones not. Although I used your prepared file (from above).

However, I just did some additional steps and now its working 😄
1st: I additionally (in the DDF editor) changed the paramater 'Status' from 'Draft' to 'Gold', reloaded, but no change (means, measures in deConz, but not in my Home Automation)
2nd: Then deleted the one plug from Phoson/deConz and learned it newly. And now, when learning it secondly as a sensor, the pairing also their ended 'green' and the values were added to my HA 👍

Thus as my learning:
First DDF file has to be confirgured propperly, incl. all values and setting it to 'Gold'.
Then the device has to be learned newly to Phoscon/deConz, first as light, afterwards as sensor.
(I had a little load on it, only as a hint, as this was also a prerequisite when learning the older devices)

Thanks @Smanar for your support, with the right hints 'users' become able to tackle the rest 😄

@Smanar
Copy link
Collaborator

Smanar commented May 22, 2022

But the status is "Gold" ?
#3788 (comment)

@Pedder007
Copy link

I saw in your file source code that it was GOLD, but however the DDF editor showed it as DRAFT. Thus I set it manually to GOLD.
Maybe an individual ‚problem‘!?
Now it works and that is fine 😊

@Pedder007
Copy link

Hi again,
having now a rough understanding how the DDF editor works and that one as me might be able to configure personal device configurations in deCONZ, another idea popped up in my mind.

I'm using a couple of shutter devices of the type TS130F (e.g. _TZ3000_fccpjz5z and others). Since I'm using them, I never found a way to trigger the 'stop' function, which the devices do have in deCONZ (gui), from my HA in a smooth way. Means, there was always a respective datapoint missing.
Thus, when steering a shutter manually, I always was forced to stop it's movement by a work around and executing a shell command like: 'curl -X PUT http://127.0.0.1:80/api/Axxxxxxxxx/lights/xx/state -d '{"stop":true}' -s'
This works, but isn't really convenient.

Now I searched in the DDF editor, but also didn't find a respective item there like a 'stop' for the shutter devices.
Would it be possible to implement such?

@Mimiix
Copy link
Collaborator

Mimiix commented May 23, 2022

@Pedder007 For that, you need to create a differnet issue. But, if the rest api works with the STOP then it's a HA issue as HA talks to the API (so does phoscon).

@Smanar
Copy link
Collaborator

Smanar commented May 23, 2022

Yep, sorry it s the official method to stop covering, using {"stop":true}
But I don't understand why this request is less convenient than the {"open":true} ?

@Pedder007
Copy link

Pedder007 commented May 23, 2022

Hi and thanks to you both!
I feared for such an answer and thus I asked for a maybe possible solution via the DDF editor 😉
And the solution isn’t for sure less convenient then the one for ‘open’, but I don’t need to use the one for open, as I have the ‘level’ object/data point in my HA (ioBroker) and this I can steer with simply putting in numbers, like ‚0‘ or ‚100‘.

@Mysticsilent
Copy link

I can also confirm that the energy information is not coming through on the TZ3000_amdymr7l variant. The TZ3000_g5xawfcq works just fine. Can this be supported?
Can i somehow help provide the needed information?

@Smanar
Copy link
Collaborator

Smanar commented Jun 16, 2022

It s a clone ? The same device (To know if we need to create a new DDF or use the same)

Edit the bw_shp13_smart_plug.json file and add the second one

"manufacturername": ["_TZ3000_g5xawfcq", "TZ3000_amdymr7l"],
"modelid": ["TS0121", "TS0121"],

@Mysticsilent
Copy link

It should be a clone. Same manufacturer, same device, same functionality but different device identity.

@Smanar
Copy link
Collaborator

Smanar commented Jun 21, 2022

And the DDF is working with the previous modification with your device ?

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.