### Link
https://www.aliexpress.com/item/1005007549776847.html?spm=a2g0o.order_…list.order_list_main.21.2bd51802BEBPeT
### Database entry
Zigbee Model TS0601 Zigbee Manufacturer _TZE284_eaet5qt5 IEEE Address 0x30fb10fffe181013 Network address 0xD2A7 / 53927
### Zigbee2MQTT version
1.41.0-1
### Comments
Created a new definition for the AliExpress dual water meters TS0601 _TZE284_eaet5qt5
Can control it ok, but cannot get the battery to report correctly at all, and cannot get a configure line to work at all so the data values were a lot of guess work
### External definition
```shell
const fz = require('zigbee-herdsman-converters/converters/fromZigbee');
const tz = require('zigbee-herdsman-converters/converters/toZigbee');
const exposes = require('zigbee-herdsman-converters/lib/exposes');
const reporting = require('zigbee-herdsman-converters/lib/reporting');
const modernExtend = require('zigbee-herdsman-converters/lib/modernExtend');
const e = exposes.presets;
const ea = exposes.access;
const tuya = require('zigbee-herdsman-converters/lib/tuya');
const utils = require('zigbee-herdsman-converters/lib/utils');
const definition = {
fingerprint: [
{
modelID: 'TS0601',
manufacturerName: '_TZE284_eaet5qt5',
},
],
model: 'SGW08Z',
vendor: 'Tuya',
description: 'Smart Dual Water Timer',
fromZigbee: [tuya.fz.datapoints, tuya.fz.battery],
toZigbee: [tuya.tz.datapoints],
onEvent: tuya.onEventSetTime,
exposes: [
e.battery(), //Doesnt appear to give real values - Can't find the Voltage either
e.binary('state_l1', ea.STATE_SET, true, false).withLabel('Valve 1'),
e.binary('state_l2', ea.STATE_SET, true, false).withLabel('Valve 2'),
e.numeric('Countdown_Timer_1', ea.STATE_SET).withValueMin(0).withValueMax(255).withUnit('min').withDescription('Countdown timer until shutoff'),
e.numeric('Countdown_Timer_2', ea.STATE_SET).withValueMin(0).withValueMax(255).withUnit('min').withDescription('Countdown timer until shutoff'),
e.binary('Valve_State_1', ea.STATE, 'open', 'closed').withDescription('Binary Valve 1 State'),
e.binary('Valve_State_2', ea.STATE, 'open', 'closed').withDescription('Binary Valve 2 State'),
],
meta: {
tuyaDatapoints: [
[1, 'state_l1', tuya.valueConverter.raw], //Can get and set the left valve
[2, 'state_l2', tuya.valueConverter.raw], //Can get and set the right valve
[13, 'Countdown_Timer_1', tuya.valueConverter.countdown], //Can get and set the left valve countdown timer
[14, 'Countdown_Timer_2', tuya.valueConverter.countdown], //Can get and set the right valve countdown timer
[104, 'Valve_State_1', tuya.valueConverterBasic.lookup({ //Only get left valve value
open: tuya.enum(0),
closed: tuya.enum(2),
})], //0 when on, 2 when off
[105, 'Valve_State_2', tuya.valueConverterBasic.lookup({ //Only get right valve value
open: tuya.enum(0),
closed: tuya.enum(2),
})], //0 when on, 2 when off
],
},
};
module.exports = definition;
```
### What does/doesn't work with the external definition?
Data points all work, can control the timer and turn on and off.
Cannot get a configure line to work, and it doesn't appear to want to act like a switch.
Battery value is very wrong (reports 10 when mostly full)