Support for "Parkside Smart Watering Timer"
Dear all, I tried to create support for the Parkside Smart Watering Timer, but failed catastrophically :)
I created a .js file for Tuya like explained in the tutorial - but then Z2M will not start anymore. I copied the content on the bottom of the message. If anyone is willing to help, I'd highly appreciate.
Thanks and best regards
Information about the device + link
Parkside Smart Watering Timer https://www.lidl.de/de/parkside-smarter-bewaesserungscomputer-zigbee-smart-home/p375570
Failure message when starting Z2M
[08:04:41] INFO: Handing over control to Zigbee2mqtt Core ...
[email protected] start /app node index.js (node:398) UnhandledPromiseRejectionWarning: ReferenceError: tuya is not defined (Use
node --trace-warnings ...to show where the warning was created) (node:398) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag--unhandled-rejections=strict(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (node:398) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
PSBZS.js
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 extend = require('zigbee-herdsman-converters/lib/extend'); const e = exposes.presets; const ea = exposes.access;_
const definition = { fingerprint: [ { modelID: 'TS0601', manufacturerName: '_TZE200_c88teujp' }, ], model: 'PSBZS A1', vendor: 'Lidl', description: 'Smart Watering Timer', supports: 'thermostat, temperature', fromZigbee: [ fz.ignore_basic_report, // Add this if you are getting no converter for 'genBasic' fz.tuya_data_point_dump, // This is a debug converter, it will be described in the next part ], toZigbee: [ tz.tuya_data_point_test, // Another debug converter ], onEvent: tuya.setTime, // Add this if you are getting no converter for 'commandSetTimeRequest' configure: async (device, coordinatorEndpoint, logger) => { const endpoint = device.getEndpoint(1); await reporting.bind(endpoint, coordinatorEndpoint, ['genBasic']); }, exposes: [ // Here you should put all functionality that your device exposes ], };
module.exports = definition;
Edit: Link to Zigbee Alliance https://zigbeealliance.org/zigbee_products/smarter-water-computer/
I also have this module :-) https://www.lidl-shop.be/nl-BE/PARKSIDE-Besproeiingscomputer-Smart-Home-PSBZS-A1/p100325201

Friendly name
0x847127fffea96df6
Device type
EndDevice
Zigbee model
TS0601
Support status
Unsupported
IEEE address
0x847127fffea96df6
Network address
0xFDB7
Power source
Battery
Interview completed
Yes
database.db entry:
{"id":17,"type":"EndDevice","ieeeAddr":"0x847127fffea96df6","nwkAddr":64951,"manufId":4098,"manufName":"_TZE200_htnnfasr","powerSource":"Battery","modelId":"TS0601","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":0,"inClusterList":[0,4,5,6,3,61184],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"modelId":"TS0601","manufacturerName":"_TZE200_htnnfasr","powerSource":3,"zclVersion":3,"appVersion":86,"stackVersion":0,"hwVersion":1,"dateCode":""}}},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":86,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"meta":{},"lastSeen":1622823507874}
This could be an interesting follow as well: https://github.com/dresden-elektronik/deconz-rest-plugin/issues/4958
I created a converter file that at least worked to switch the valve on and off:
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 extend = require('zigbee-herdsman-converters/lib/extend');
const e = exposes.presets;
const ea = exposes.access;
const definition = {
zigbeeModel: ['TS0601'], // The model ID from: Device with modelID 'lumi.sens' is not supported.
model: 'HG06875', // Vendor model number, look on the device for a model number
vendor: 'PARKSIDE', // Vendor of the device (only used for documentation and startup logging)
description: 'Smart Watering Timer', // Description of the device, copy from vendor site. (only used for documentation and startup logging)
fromZigbee: [fz.on_off], // We will add this later
toZigbee: [tz.on_off], // Should be empty, unless device can be controlled (e.g. lights, switches).
exposes: [e.switch()], // Defines what this device exposes, used for e.g. Home Assistant discovery and in the frontend
configure: async (device, coordinatorEndpoint, logger) => {
const endpoint = device.getEndpoint(1);
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff']);
await reporting.onOff(endpoint);
},
};
module.exports = definition;
The valve doesn't seem to report back if it is switched or not and also it switches of autmaticly after about 60 sec. This time intervall can possibly be changed using the lidl gateway but I didn't found any messages that gave me a hint how to do this in z2m. I also tryed to integrate the battery state but this also doesn't seems to be reported.
How did you manage to pair it? The Pressing the button for a few seconds until the left led is blinking does not seem to work for me. Im using an CC2652-P Stick.
Short press to "activate" the module and then long press untill the red led on the left starts blinking. @cru8602 where did you store this file? Or did you add this somewhere in the web UI of Z2M?
Short press to "activate" the module and then long press untill the red led on the left starts blinking. @cru8602 where did you store this file? Or did you add this somewhere in the web UI of Z2M?
Thank you, did just that. Left led starts blinking but nothing happening in Z2M in debug log
Thank you, did just that. Left led starts blinking but nothing happening in Z2M in debug log
You can try to reset the device by holding the button while inserting the battery.
Thank you, did just that. Left led starts blinking but nothing happening in Z2M in debug log
You can try to reset the device by holding the button while inserting the battery.
Thank you very much. I got it paired with another, similar CC2652p stick now. Just need to figure out why it wonβt pair with the first stick.
Using above mentioned converter I m able to control the valve.
EDIT: Unplugging the stick and a reboot fixed the issue. Now on to sniffing the device communication.
@fluppie I named the file HG06875.js and added it to the data folder in which the configuration.yaml is located. After that I used the front-end to add "HG06875.js" in the external converters section.
Seems to be a bit more complex ... I have setup a device via Tuya gateway with some intervals. This intervals still ongoing even Tuya gateway is out of range and device is paired with my testbed based on a CC2531. The GenOn seem to have the same behaviour as the manuall watering Button on the Device... This button activate the valve even for about 60 sec. Unfortunately I didn't get the Tuya datapoint debuging eorking on my test bed... However will continue to work on
same here, didn't get the debugging working. The valve has only one button but doesn't send any messages via zigbee while pressing the button.
Maybe thats why the datapoint debugging doesn't help....
I also have a problem with starting. Received message from unsupported device with Zigbee model 'TS0601' and manufacturer name '_TZE200_htnnfasr'
Hi,
I got the device myself. I do see it with deconz, and also the switching off after 60 seconds. Can I help? My setup: Conbee 2 stick, with deconz (which sees it as a light)
I think it's not usefull to sniff traffic between Conbee and the watering timer
You have to sniff the traffic between the original LIDL Gateway and the watering timer, to see which commands the original gateway is sending to the device.
My Lidl Gateway should arrive today,
argh, I now have a LIDL Gateway and the watering timer.... but ZSHARK doesn't work with a Conbee II, only with Conbee I -,-
I also have a "Slaesh's CC2652RB stick" but it's my production network stick and I dont want to destroy my Zigbee network with flashing this stick.
Any Ideas how to sniff with one of theese devices without destroing my Zigbee network ?
Only a cheap CC2531 stick comes to mind. I have a generic Tuya Gateway and Watering Timer here. Never sniffed zigbee before. I will try in the next days too.
@cru8602 Thanks for the converter file. At least I can use it as a switch now in Home Assistant.
I have setup a device via Tuya gateway I have a generic Tuya Gateway @Main-pinguin @dasfuu
Which gateways do you guys use?
I have setup a device via Tuya gateway I have a generic Tuya Gateway @Main-pinguin @dasfuu
Which gateways do you guys use?
I didn't have any of this gateways.. I tested it at riend of mine on Lidl gateway... When I visit my friend next time I will try to sniff the zigbee traffic between GW and valve ... But could't promise any timeline...
I have setup a device via Tuya gateway I have a generic Tuya Gateway @Main-pinguin @dasfuu
Which gateways do you guys use?
I have this one: https://www.amazon.de/gp/product/B08PF4ZYNY/ Parkside watering thing works perfectly with all features.