Added refresh interval and set it to one hour
"name": "config/battery",
"awake": true,
"parse": {"fn": "zcl", "ep": 0, "cl": "0x0001", "at": "0x0021", "eval": "Item.val = Attr.val / 2"},
- "read": {"fn": "zcl", "ep": 0, "cl": "0x0001", "at": "0x0021"}
+ "read": {"fn": "zcl", "ep": 0, "cl": "0x0001", "at": "0x0021"},
+ "refresh.interval": 3600
},
{
"name": "config/on"
{
"name": "config/battery",
"parse": {"fn": "zcl", "ep": 0, "cl": "0x0001", "at": "0x0021", "eval": "Item.val = Attr.val / 2"},
- "read": {"fn": "zcl", "ep": 0, "cl": "0x0001", "at": "0x0021"}
+ "read": {"fn": "zcl", "ep": 0, "cl": "0x0001", "at": "0x0021"},
+ "refresh.interval": 3600
},
{
"name": "config/offset"
{
"name": "config/battery",
"parse": {"fn": "zcl", "ep": 0, "cl": "0x0001", "at": "0x0021", "eval": "Item.val = Attr.val / 2"},
- "read": {"fn": "zcl", "ep": 0, "cl": "0x0001", "at": "0x0021"}
+ "read": {"fn": "zcl", "ep": 0, "cl": "0x0001", "at": "0x0021"},
+ "refresh.interval": 3600
},
{
"name": "config/on"
