ioBroker/ioBroker.zigbee

hallo, please add giex gx02 water timer

relup77 opened this issue · 4 comments

modelZigbee:TS0601
type:EndDevice
nwk:32260
manuf id:4417
manufacturer:_TZE200_7ytb3h8u
power:Battery
app version:72
hard version:1
zcl version:3
stack version:0
date code:
interviewed:true
configured:false
endpoint:1
profile:260
input clusters:genGroups (4)
genScenes (5)
manuSpecificTuya (61184)
genBasic (0)
output clusters:genOta (25)
genTime (10)

thx!!

const exposes = require('zigbee-herdsman-converters/lib/exposes');
const extend = require('zigbee-herdsman-converters/lib/extend');
const e = exposes.presets;
const ea = exposes.access;
const tuya = require('zigbee-herdsman-converters/lib/tuya');
const legacy = require('zigbee-herdsman-converters/lib/legacy');
const MINUTES_IN_A_DAY = 1440;
const SECONDS_IN_12_HOURS = 43200;

module.exports = [
{
fingerprint: [
{modelID: 'TS0601', manufacturerName: '_TZE204_7ytb3h8u'},
],
model: 'GX02',
vendor: 'GiEX',
description: 'GX02 GiEX Water Valve',
extend: [],
meta: {},
onEvent: tuya.onEventSetLocalTime,
fromZigbee: [legacy.fromZigbee.giexWaterValve],
toZigbee: [legacy.toZigbee.giexWaterValve],
exposes: [
e.battery(),
e.binary(legacy.giexWaterValve.state, ea.STATE_SET, 'ON', 'OFF')
.withDescription('State'),
e.enum(legacy.giexWaterValve.mode, ea.STATE_SET, ['duration', 'capacity'])
.withDescription('Irrigation mode'),
e.numeric(legacy.giexWaterValve.cycleIrrigationNumTimes, ea.STATE_SET)
.withValueMin(0)
.withValueMax(100)
.withDescription('Number of cycle irrigation times, set to 0 for single cycle'),
e.numeric(legacy.giexWaterValve.irrigationStartTime, ea.STATE)
.withDescription('Last irrigation start time'),
e.numeric(legacy.giexWaterValve.irrigationEndTime, ea.STATE)
.withDescription('Last irrigation end time'),
e.numeric(legacy.giexWaterValve.lastIrrigationDuration, ea.STATE)
.withDescription('Last irrigation duration'),
e.numeric(legacy.giexWaterValve.waterConsumed, ea.STATE)
.withUnit('L')
.withDescription('Last irrigation water consumption'),
e.numeric(legacy.giexWaterValve.irrigationTarget, ea.STATE_SET)
.withValueMin(0)
.withValueMax(SECONDS_IN_12_HOURS)
.withUnit('seconds or litres')
.withDescription('Irrigation target, duration in seconds or capacity in litres (depending on mode), ' +
'set to 0 to leave the valve on indefinitely, ' +
'for safety reasons the target will be forced to a minimum of 10 seconds in duration mode'),
e.numeric(legacy.giexWaterValve.cycleIrrigationInterval, ea.STATE_SET)
.withValueMin(0)
.withValueMax(SECONDS_IN_12_HOURS)
.withUnit('sec')
.withDescription('Cycle irrigation interval'),
],
},

Wrong project - that data is needed on zigbee2mqtt.io, not at iobroker.zigbee.

Using the posted code as external converter should allow for you to use the device until it is integrated in z2m.

Am

Please test with the current GitHub version. It should work now

Yes it works with the GitHub version!
Thank you!!!!!