[FIX] Corrected sp2610zb current calculation
Corrected Current value calculation because did not take care of divisor then was not reported in Amp. Reduced refresh interval
},
{
"name": "state/current",
- "refresh.interval": 300,
+ "refresh.interval": 30,
"read": {
"at": "0x0508",
"cl": "0x0b04",
"at": "0x0508",
"cl": "0x0b04",
"ep": 1,
- "eval": "if (Attr.val != 65535) { Item.val = Attr.val; }"
+ "eval": "if (Attr.val != 65535) { Item.val = Attr.val / 100; }"
}
},
{
},
{
"name": "state/power",
- "refresh.interval": 300,
+ "refresh.interval": 30,
"read": {
"at": "0x050b",
"cl": "0x0b04",
},
{
"name": "state/voltage",
- "refresh.interval": 300,
+ "refresh.interval": 30,
"read": {
"at": "0x0505",
"cl": "0x0b04",
