Modifying 'Billion Single Phase Smart Meter Device Type'

This commit is contained in:
Sai
2015-09-03 06:06:50 -05:00
parent 024a33e425
commit 395989785a

View File

@@ -175,15 +175,17 @@ def configure() {
meterConfig() + onOffConfig() + refresh() meterConfig() + onOffConfig() + refresh()
} }
// Meter reporting, min inteval 1 min and reporting interval if no activity as 4 min // Meter reporting, min inteval 3 min and reporting interval if no activity as 4 min
// min change in value is 01 // min change in value is 01
def meterConfig() { def meterConfig() {
[ [
"zcl global send-me-a-report 0x0702 0x8000 0x41 60 240 {01}", "zcl global send-me-a-report 0x0702 0x8000 0x41 180 240 {01}",
"send 0x${device.deviceNetworkId} 1 1", "delay 1500", "send 0x${device.deviceNetworkId} 1 1", "delay 1500",
] ]
} }
// Switch reporting, min interval 5 min and reporting interval if no activity as 10 min
// min change in value is 01
def onOffConfig() { def onOffConfig() {
[ [
"zcl global send-me-a-report 6 0 0x10 300 600 {01}", "zcl global send-me-a-report 6 0 0x10 300 600 {01}",
@@ -191,6 +193,7 @@ def onOffConfig() {
] ]
} }
// Read the meter and on/off cluster attributes
def refresh() { def refresh() {
[ [
"st rattr 0x${device.deviceNetworkId} 1 6 0", "delay 500", "st rattr 0x${device.deviceNetworkId} 1 6 0", "delay 500",