Post Requests for Edge Drivers Here (community-created)

I use it as well, so hoping a driver will be created esp for the LED notification setting which was the primary reason I bought this device

Hello, long time user user here who had no problem using groovy ide along with WebCore to modify device handers to my requirements, but am finding github / edge drivers a bit beyond my skill set as of now.

Would anyone be able to publish a variation of the zigbee power meter edge driver SmartThings/zigbee-power-meter/ to add a user defined variable for the divisor key?

For some reason, my UK electric supplier has installed a smart meter that doesn’t use the standard 1000 led pulses per kWh (mine used 3200 flashes), so I might not be alone in this use case.

I use the Frient Power Meter, and the beta Edge Driver pick up the device fine, it just overreads.

It’s line 44 of SmartThingsCommunity/SmartThingsEdgeDrivers/blob/main/drivers/SmartThings/zigbee-power-meter/src/frient/init.lua that needs attention.

device:set_field(constants.SIMPLE_METERING_DIVISOR_KEY, 1000, {persist = true})

It’s the “1000” that needs to be a user defined value.
I would assume there are similar lines of code in the handlers for the other manufactures.

Many Thanks.

tagging @Mariano_Colmenarejo

Is it possible to create a edge virtual device that Acts like a timer? For a routine example, button x gets pressed – then-- timer/delay edge device turns on( but only turns on after x amount of time).
Is this possible?
As SHM does not have a arm delay I will have to be creative when webcore goes away.

here is a timer but doubt it works with STHM so you may want to inquire in that thread for more details or if the developer might be able to modify for your needs :man_shrugging:

Hi @Jaz666

And what value do you want to put as a divisor?

That value is the divider used in the calculation of the power for this device, it should be independent of who your supplier is, or I may have misunderstood the post.

If you want, I can modify the value and make a test driver.

Also here is a Tutorial link on how to modify the lua code and create a new driver

2 Likes

Hello @Mariano_Colmenarejo, how are you my friend?
could you add this siren?

Thanks for the link, I’ve spent all morning trying to get my head around the CLI, but there are just too many steps for me at this time. I’m still using my modified ide handler, but am trying to migrate across to edge before the ide gets switched off.

The Frient Power Meter is the type that uses a sensor placed over the flashing LED, and it is hardcoded to assume 1000 pulses = 1 kWh. A quick search shows (mainly on the home assistant forums) plenty of users like me who have a meter that pulses at a different rate.
3200 per kWh in my case, but this can vary according to manufacturer.
Frient have not provided a way for users to alter this number (it is there in the firmware, but altering it is beyond a normal user).

As a result, the readings from both the old groovy Device Handler here and the new Edge Driver result in readings too high or too low for users who’s meter pulses differently.
In my case, 3.2 times too high.

The way around this I found was to alter the groovy code to compensate.
In my use case, in the old groovy code, altering powerDivisor activePowerDivisor and energyDivisor all to 3.2 resulted in readings that matched my Smart Meter Display.

If it is possible, rather than just produce a modified Edge Driver just for me, it might be useful to make the SIMPLE_METERING_DIVISOR_KEY and ELECTRICAL_MEASUREMENT_DIVISOR_KEY constants in the new Edge Driver user set variables instead.

I hope that makes sense.

Hello Niquini, I’m very well, I hope you are well too

I added the fingerprints to this driver, but I have no idea about this driver, it is the stock driver to which I added a model like this a long time ago and it seems to work.

try to see what happens

┌─────────────┬──────────────────────────────────────┐
│ Name        │ Zigbee Siren Mc                      │
│ Version     │ 2022-08-23T14:44:12.715616001        │
└─────────────┴──────────────────────────────────────┘
  - id : Zigbee/_TYZB01_0wcfvptl
    deviceLabel : Zigbee Siren
    manufacturer : _TYZB01_0wcfvptl
    model : TS0216
    deviceProfileName : switch-alarm
  - id : Zigbee/_TYZB01_8scntis1
    deviceLabel : Zigbee Siren
    manufacturer : _TYZB01_8scntis1
    model : TS0216
    deviceProfileName : switch-alarm

Hi @Jaz666

Okay, I’m going to do it, I’ll let you know in a while when it’s done

I will put two preferences so that you can modify the dividers to your liking, with the driver defaults.

I think for that purpose, The vEdge Momentary Button (Virtual Momentary Button) would do what you want, if it works with SHM, not sure one way or the other.

You can find it in here, somehere.

Ultimately, the driver is in @TAustin 's Virtual Edge Drivers on his Channel

1 Like

Modified the stock driver so that the reference meters have in preferences the settings of the divisors for power and energy

preferences:
  - name: "simpleMeteringDivisor"
    title: "Simple Metering Divisor key"
    description: "Simple Metering Divisor for Power Calculation (default: 1000)"
    required: false
    preferenceType: number
    definition:
      minimum: 1
      maximum: 100000
      default: 1000
  - name: "electricalMeasureDivisor"
    title: "Electrical Measure Divisor key"
    description: "Electrical Measure Divisor for Energy Calculation (default: 10000)"
    required: false
    preferenceType: number
    definition:
      minimum: 1
      maximum: 100000
      default: 10000

The defaults are the same as the stock driver, try different values to see what you see.
The Electrical Measure Divisor key setting should not affect if you don’t have an energy meter.

Download install in your hub this driver from my channel and then do a driver change to this from stock

┌─────────────┬──────────────────────────────────────┐
│ Name        │ Zigbee Power/Meter-Test              │
│ Version     │ 2022-08-23T15:43:30.589419958        │
└─────────────┴──────────────────────────────────────┘

Is there a zigbee edge driver for blinds from the community? I see one from the smartthings beta channel but not sure who can add the fingerprints for this one

Any edge driver for
Ecolink Water/Freeze Sensor ?

zw:S type:0701 mfr:014A prod:0005 model:0010 ver:10.09 zwv:4.38 lib:06 cc:5E,86,72,5A,73,80,30,71,85,59,84

Also

  • MSR: 0063-4944-3038
  • manufacturer: Jasco Products

ANy edge driver ?

How about this one?

This is in the stock zwave-sensor driver. The fingerprint is currently commented out in the production version, but is available in the beta.

Driver below for double tap and all config options. Or the stock zwave-switch driver has just the indicator config option.

Another one

Got some light with a custom handler to call govee
Govee LED Strips (DBDEV)

parameter
apikey
deviceID
modelNum

seem to call the govee api to make it work

1 Like

If someone would make a driver for the Fibaro Smart Implant, that would make me very happy!

Thank you, this works perfectly.
As expected, entering 3200 for the Simple Meter Divisor Key gives me the correct reading for the instantaneous Power Meter, maybe rename that to “Pulses per kWh” to make it easier to understand for other users.

I’ve only tested it for 20 minutes, but putting 32,000 as the Electrical Measure Divisor Key seems to be giving the correct output for the overall Energy Consumption. So it’s possible that can be hard coded to 10 times the Pulses per kWh figure.