Update _TZ3000_t8hzpgnd_2gang_bat_switch.json
Added battery event
{
"name": "attr/uniqueid"
},
+ {
+ "name": "config/battery",
+ "awake": true,
+ "refresh.interval": 4000,
+ "read": {
+ "at": "0x0021",
+ "cl": "0x0001",
+ "ep": 1,
+ "fn": "zcl"
+ },
+ "parse": {
+ "at": "0x0021",
+ "cl": "0x0001",
+ "ep": 1,
+ "eval": "Item.val = Attr.val / 2"
+ },
+ "default": 0
+ },
{
"name": "config/on"
},
}
],
"bindings": [
+ {
+ "bind": "unicast",
+ "src.ep": 1,
+ "cl": "0x0001",
+ "report": [
+ {
+ "at": "0x0021",
+ "dt": "0x20",
+ "min": 60,
+ "max": 3600,
+ "change": "0x00000001"
+ }
+ ]
+ },
{
"bind": "unicast",
"src.ep": 1,
