Koenkk / zigbee2mqtt

Zigbee 🐝 to MQTT bridge 🌉, get rid of your proprietary Zigbee bridges 🔨
https://www.zigbee2mqtt.io
GNU General Public License v3.0
12.2k stars 1.68k forks source link

Smart Sprinkler Timer water metering #22813

Open derekangl opened 5 months ago

derekangl commented 5 months ago

Link

https://www.ebay.co.uk/itm/355700417511

Database entry

{"id":21,"type":"EndDevice","ieeeAddr":"0xa4c13869455a3642","nwkAddr":26812,"manufId":4417,"manufName":"_TZE204_uab532m0","powerSource":"Battery","modelId":"TS0601","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":81,"inClusterList":[0,4,5,61184],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"65487":14400,"65503":"b��-fc��-\u0012","65506":56,"65508":0,"stackVersion":0,"dateCode":"","appVersion":74}}},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":74,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"meta":{},"lastSeen":1716919405582}

Comments

hi, can you hellp me sport new device.Please. 20240528_182911 20240528_182853 (1)

const definition = { zigbeeModel: ['TS0601'], model: 'TS0601', vendor: '_TZE204_uab532m0', description: 'Automatically generated definition', extend: [], meta: {},

External definition

q
wifijt commented 2 months ago

The device will shut off if it doesn’t detect flow. Found the same thing on mine.

Still no battery for me…

On Mon, Sep 2, 2024 at 7:18 PM andrewcfitz @.***> wrote:

And I found another weird behavior. Looks like after we press the button, (doesn't matter remotely or physical) the device will switch off by itself after around 30 seconds, the reason is might because that there is no water through the valve, I have to test. Edit: Alright, I have tested, doesn't stop by itself, there is nothing to worry about this.

My deivce is turning off after 30 seconds, any idea what is going on?

— Reply to this email directly, view it on GitHub https://github.com/Koenkk/zigbee2mqtt/issues/22813#issuecomment-2325373670, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEIC4IC73UPVK6IJL5C6PHLZUTW5TAVCNFSM6AAAAABINOKII2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRVGM3TGNRXGA . You are receiving this because you commented.Message ID: @.***>

OgV1 commented 2 months ago

Hey @OgV1 I saw that @baggiowu added different models, which model appeared for you?

NAS-WV03B?

Hi @eerison so sorry for taking so long, now I'm using NAS-WV05B2 like @baggiowu mentioned in

ohhh .... it seems it may already exist? https://github.com/Koenkk/zigbee-herdsman-converters/blob/da65b1aeffd96527df02725b49de61e453fee059/src/devices/neo.ts#L130 just needs some tweaking?

Hi Guys, I have created that converter based on this fingerprint _TZE204_rzrrjkz2 in this pull request And actually not sure if I did it right, because I still don't have a chance to test with my own device (Guess it because the fingerprint is now _TZE204_uab532m0 and not the same as mine _TZE204_rzrrjkz2?) Anyone have any idea how to solve this? and why do we have different fingerprints on the same device? edit: Somehow, mine was slightly different with no Neo logo on it, is there any chances that it not actually Neo's ? image FYI this is the info from my vendor: he seems to be sure that this one is Neo's with model number NAS-WV03B

_TZE204_uab532m0 its unit is Imperial gallons. _TZE204_rzrrjkz2 its unit is US gallons. Their model is 'NAS-WV05B2'.

Here's the latest code that I'm using

const definition = {
    fingerprint: tuya.fingerprint('TS0601', ['_TZE204_rzrrjkz2', '_TZE204_uab532m0']),
    model: 'NAS-WV05B2',
    vendor: 'NEO',
    description: 'Smart sprinkler timer',
    fromZigbee: [tuya.fz.datapoints],
    toZigbee: [tuya.tz.datapoints],
    onEvent: tuya.onEventSetTime,
    configure: tuya.configureMagicPacket,
    exposes: [
        e.switch(),
        e.enum('status', ea.STATE, ['off', 'auto', 'disabled', 'app_manual', 'key_control']).withDescription('Status'),
        e.numeric('countdown', ea.STATE_SET).withUnit('min').withValueMin(1).withValueMax(60).withDescription('Count down'),
        e.numeric('countdown_left', ea.STATE).withUnit('min').withValueMin(1).withValueMax(60).withDescription('Countdown left time'),
        e.numeric('water_total', ea.STATE).withUnit('gal').withValueMin(0).withValueStep(0.001).withDescription('Water total (gal)'),
        e
            .numeric('water_current', ea.STATE)
            .withUnit('gal/min')
            .withValueMin(0)
            .withValueStep(0.001)
            .withDescription('Current water flow (gal/min)'),
        e.binary('current_switch', ea.STATE_SET, 'ON', 'OFF').withDescription('Flow switch'),
        e.binary('reset_switch', ea.STATE_SET, 'ON', 'OFF').withDescription('Total flow reset switch'),
        e.binary('child_lock', ea.STATE_SET, 'ON', 'OFF').withDescription('Child lock'),
        e.battery(),
    ],
    meta: {
        tuyaDatapoints: [
            [1, 'state', tuya.valueConverter.onOff],
            [
                3,
                'status',
                tuya.valueConverterBasic.lookup({
                    off: tuya.enum(0),
                    auto: tuya.enum(1),
                    disabled: tuya.enum(2),
                    app_manual: tuya.enum(3),
                    key_control: tuya.enum(4),
                }),
            ],
            [109, 'countdown', tuya.valueConverter.raw],
            [6, 'countdown_left', tuya.valueConverter.raw],
            [9, 'water_current', tuya.valueConverter.divideBy1000],
            [15, 'water_total', tuya.valueConverter.divideBy1000],
            [103, 'current_switch', tuya.valueConverter.onOff],
            [101, 'reset_switch', tuya.valueConverter.onOff],
            [104, 'child_lock', tuya.valueConverter.onOff],
            [11, 'battery', tuya.valueConverter.raw],
        ],
    },
};
bikingbadger commented 1 month ago

I just picked one of these up and had to add _TZE204_z7a2jmyy to the fingerprint:

fingerprint: tuya.fingerprint('TS0601', ['_TZE204_rzrrjkz2', '_TZE204_uab532m0','_TZE204_z7a2jmyy']),

I found it by accident looking at the About tab: image

Not sure if there is a way to add this too, my technical knowledge here is down to luck and copy and paste but sharing if someone else might come across this post