File tree Expand file tree Collapse file tree 3 files changed +2
-8
lines changed
drivers/SmartThings/zigbee-switch/src
zigbee-dual-metering-switch Expand file tree Collapse file tree 3 files changed +2
-8
lines changed Original file line number Diff line number Diff line change 1515local zigbee_constants = require " st.zigbee.constants"
1616local configurations = require " configurations"
1717
18- local ZIGBEE_METERING_SWITCH_FINGERPRINTS = {
19- { model = " E240-KR116Z-HA" }
20- }
21-
2218local do_init = function (self , device )
2319 device :set_field (zigbee_constants .SIMPLE_METERING_DIVISOR_KEY , 1000000 , {persist = true })
2420 device :set_field (zigbee_constants .ELECTRICAL_MEASUREMENT_DIVISOR_KEY , 1000 , {persist = true })
Original file line number Diff line number Diff line change @@ -22,8 +22,8 @@ local mt = {
2222
2323local track = function (t )
2424 local proxy = {
25- __reads = {},
26- __writes = {},
25+ __reads = {},
26+ __writes = {},
2727 }
2828 proxy [index ] = t
2929
Original file line number Diff line number Diff line change @@ -18,11 +18,9 @@ local OnOff = clusters.OnOff
1818local ElectricalMeasurement = clusters .ElectricalMeasurement
1919local utils = require " st.utils"
2020local configurations = require " configurations"
21- local lazy_require = utils .lazy_require
2221
2322local CHILD_ENDPOINT = 2
2423
25-
2624local function do_refresh (self , device )
2725 device :send (OnOff .attributes .OnOff :read (device ))
2826 device :send (ElectricalMeasurement .attributes .ActivePower :read (device ))
You can’t perform that action at this time.
0 commit comments