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
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.
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
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.
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
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.
I did not understand your message and I apologize for this. Have you found a solution or a possible way to be able to use the LED grovee on smartthings?
LaMetric Time
I rely heavily on my LaMetric Time devices to keep me updated on what’s happening in and around my house. It tells me when the gate to my driveway is opened; an outside or garage door opens; if there is movement on the ground level after bedtime etc. I can’t imagine being without them after 30 September, and I don’t believe there is any alternative. The closest I know of, was Echo Speaks (if used with an Echo device with a screen) which is also no longer with us.
I can’t imagine why these devices are not commonly used in all home automation setups. I suppose the price could be a reason.
The LaMetric required a SmartApp and device driver to function. I haven’t figured out how devices which required SmartApps in the past, will work in the new environment.