deconz-rest-plugin icon indicating copy to clipboard operation
deconz-rest-plugin copied to clipboard

LIDL PARKSIDE Smart Watering Timer PSBZS A1

Open ojcalvo opened this issue 4 years ago • 264 comments
trafficstars

Hello, this smart watering dont refresh its state and dont work well. Thanks

Device

Product name: PARKSIDE Smart Watering Timer PSBZS A1 Manufacturer: _TZE200_htnnfasr Model identifier: TS0601. Device type : Other: Smart watering timer

Screenshots

imagen

imagen

imagen

Other clusters that are not mentioned above

ojcalvo avatar May 31 '21 17:05 ojcalvo

Do you mean this one? https://www.lidl.de/de/parkside-smarter-bewaesserungscomputer-zigbee-smart-home/p375570

ottelo9 avatar Jun 01 '21 10:06 ottelo9

I'm having issues with the device, too. It does pair via Phoscon, but switching it manually is neither reported in the UI, nor does controlling the device via the UI work.

Yes, it's the linked device from the LIDL Online Shop.

stefangries avatar Jun 01 '21 14:06 stefangries

Yes, is exactly like this. In phoscon It's integrated likea light, but dont refresh the state and dont show any sensor of battery level, etc. Thanks.

ojcalvo avatar Jun 01 '21 14:06 ojcalvo

As some screenshots are hard to read, I added some in higher resolution:

image image image

Btw, for me, these buttons are working: image

BUT, clicking the light button in phoscon isn't doing anything: image

When controlling the device via deconz, however, phoscon is able to show the correct state of the device (on/off).

When controlling it via the Home Assistant integration, it's a little bit different. You can switch the device on/off correctly, but the switch in Home Assistant stays at the old state. When switching it via deconz, the correct state is indicated in Home Assistant.

So for me, it seems like deconz/phoscan has problems reading the current state of the device.

stefangries avatar Jun 01 '21 17:06 stefangries

Hello, can you show the device JSON pls ?

Smanar avatar Jun 01 '21 17:06 Smanar

Can you give me a hint, where to find it? I couldn't find the information, where to get the JSON here.

stefangries avatar Jun 01 '21 17:06 stefangries

I am not able to find the parkside watercomputer via phoscon. Any hints?

flausen avatar Jun 01 '21 17:06 flausen

I am not able to find the parkside watercomputer via phoscon. Any hints?

It shows like a light in phoscon.

ojcalvo avatar Jun 01 '21 17:06 ojcalvo

Hello, can you show the device JSON pls ?

Is it this, what you are asking for?

{
   "etag":"9e8cc3af3dd044b93eafa4d7c1cafe6f",
   "hascolor":false,
   "lastannounced":null,
   "lastseen":"2021-06-01T17:16Z",
   "manufacturername":"_TZE200_htnnfasr",
   "modelid":"TS0601",
   "name":"On/Off light 14",
   "state":{
      "alert":"none",
      "on":false,
      "reachable":true
   },
   "swversion":null,
   "type":"On/Off light",
   "uniqueid":"84:71:27:ff:fe:d3:4a:81-01"
}

By the way, when I turn on the device, whether via Deconz or manually via button, it automatically turns off after 60 seconds. Is this also the case for you?

stefangries avatar Jun 01 '21 17:06 stefangries

The auto-off timer is the best thing about this device! 😁 unfortunately you can’t change the timer yet. I hope the device support comes very soon. 😀 I have 3 devices in use. And with this price and the auto-off function, there are sure to be even more!

SmartHomeForDummies avatar Jun 01 '21 18:06 SmartHomeForDummies

By now I am able to open the waterflow, but the switch turns off immediately, so that I can’t Stop the waterflow using a device. Only manual at the parkside computer

flausen avatar Jun 01 '21 19:06 flausen

@stefangries yes exactly, thx.

For thoses one that can act on the device using deconz, but not working using phoscon (or API)

You have the procedure here https://github.com/dresden-elektronik/deconz-rest-plugin#install-deconz-development-package-optional-linux-only (but need a linux machine with full OS) So for you, after having installed deconz :

sudo apt install deconz-dev
git clone --branch watering https://github.com/Smanar/deconz-rest-plugin.git
cd deconz-rest-plugin
qmake && make -j2
sudo cp ../libde_rest_plugin.so /usr/share/deCONZ/plugins

Still need to check for timer.

Smanar avatar Jun 01 '21 19:06 Smanar

Ok, so for the timer, nothing about this device on other project, so you need to search ^^. On the description they say the device can work with philips HUE gateway, so I don't think they use the tuya cluster (good new)

With the GUI : Take a look on cluster 0x0006 (on/off), on attribute 0x4002 "off wait time". Can try too the command "on with timed off"

This device can just use the "ontime" param curl -H 'Content-Type: application/json' -X PUT -d '{"on": true, "ontime": 600}' http://192.168.1....

Smanar avatar Jun 01 '21 19:06 Smanar

So this should just turn the device on for 90 seconds, right? image It does turn on, but goes off after 60 seconds.

Btw, this device is very new, offical release was yesterday. I was not successful in pairing it with the hue bridge.

stefangries avatar Jun 01 '21 20:06 stefangries

I ordered, too. I‘m hoping that deconz will include this new device :)

ottelo9 avatar Jun 02 '21 05:06 ottelo9

Just by curiosity, someone can take a look in logs for line starting by

Tuya debug ....................

Smanar avatar Jun 02 '21 15:06 Smanar

I didn't find any, Here are the logs, filtered with the device id:

image

stefangries avatar Jun 02 '21 15:06 stefangries

And neither if using the device manualy ?

Smanar avatar Jun 02 '21 17:06 Smanar

Regardless of whether I switched the device via deconz or manually, I could not find "tuya" in the log. I use the Home Assistant addon, and have set all debug flags to 1.

stefangries avatar Jun 02 '21 18:06 stefangries

Ok, so we are blocked for the moment. No tuya request.

Have you tried too with the "off wait time" in the deconz GUI ?

Someone have tried to compile the new code to check if the device is working in the API with it ?

Smanar avatar Jun 02 '21 19:06 Smanar

Ok, so we are blocked for the moment. No tuya request.

Just to make sure: which debug level should be enabled to see the tuya request? image

Have you tried too with the "off wait time" in the deconz GUI ?

You mean this? image Didn't changed anything.

Attributes are read only: image

Someone have tried to compile the new code to check if the device is working in the API with it ?

No, I'm only running the docker container and don't have a full linux machine, sorry :-/

stefangries avatar Jun 02 '21 20:06 stefangries

The off timer starts from the new one, if On is sent again. My workaround For a watering duration of 5 min (295s), the sequence is repeated 5 times (on, wait 59s)

SmartHomeForDummies avatar Jun 02 '21 20:06 SmartHomeForDummies

To have tuya log you just need the flag "info", so you was fine

You mean this?

Yep, but with changing the 0 value (yeah I know, not logic, but tuya is magic ...)

No, I'm only running the docker container and don't have a full linux machine, sorry :-/

It s possible too with docker https://github.com/dresden-elektronik/deconz-rest-plugin/issues/4841#issuecomment-852157541

Smanar avatar Jun 02 '21 20:06 Smanar

Yep, but with changing the 0 value (yeah I know, not logic, but tuya is magic ...)

Now I tried this command, which instantly turns on the device. But it turns off automatically after 60s, too. image

It s possible too with docker #4841 (comment)

Building containers is quite a stressing task for my NUC J4005 :-D Do I have to use tuya_trv_12 branch as well? I was able to build it, but currently having trouble to pair the device.

stefangries avatar Jun 02 '21 21:06 stefangries

Now I was able to pair it. Here are some debug outputs (filtered for "tuya"):

21:49:03:602 Tuya debug 1 : Time sync request
21:49:03:605 Send Tuya command 0x24, data: 000060b7fccf60b7fccf
21:49:32:532 Send Tuya request: Dp_type: 0x01, Dp_identifier 0x68, data: 01
21:49:35:178 Send Tuya request: Dp_type: 0x01, Dp_identifier 0x68, data: 00

When trying to toggle in phoscon: image

The server replies: [{"error":{"address":"/lights/1/state","description":"parameter, transitiontime, not available","type":6}}]

stefangries avatar Jun 02 '21 21:06 stefangries

Have just updated the code for the "transitiontime" error.

But for the tuya log it s strange, this command is send when using "alert" in the request ....

Smanar avatar Jun 03 '21 15:06 Smanar

I have the device in my hands now, too. Do the same that described from @stefangries . It shows in phoscon and deconz (I use the Home Assistant Addon on my Rpi3B). The state is not updated in HA but I can switch it on/off. The device switch always off after 60s.

ottelo9 avatar Jun 03 '21 19:06 ottelo9

To avoid the 60s auto off timer I use two scripts in Home Assistant as a workaround to switch on (for 1h) and switch off the valve. See the pics:

script turn on (send a switch on command every 50s) 2021-06-03 21_58_09-Configuration - Home Assistant

script turn off device and script 2021-06-03 21_58_25-Configuration - Home Assistant

ottelo9 avatar Jun 03 '21 19:06 ottelo9

The Parkside watering meter is a Tuya device: https://zigbeealliance.org/zigbee_products/smarter-water-computer/

fluppie avatar Jun 04 '21 22:06 fluppie

Is there any chance that this device will be implemented in near future? Otherwise I send it back and buy WOOX R7060.

ottelo9 avatar Jun 06 '21 10:06 ottelo9