-
Notifications
You must be signed in to change notification settings - Fork 502
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Device support request] Develco water leak detector FLSZB-110 #1960
Comments
Hey there! I might be able to help you out (on the weekend) but then you'd need to play my lab rat ;) In that sense, you must compile the plugin to have the code changes tested before issuing a PR... I'd assume that you also have 2 sensor nodes, temperature and water? Do they report values via API? |
Yes, one device with water leak alarm (23 HA) and temperature measurement (26 HA). REST API reports alarm state, but incorrectly (always "none"). REST API does not report temperature at all. Pairing as Light always succeeded without problems, but I'm not sure if this is the right way for this kind of device. I could not add it as Sensor. |
You might wanna give it a try with the changes from my repo You must compile the plugin with the given instructions. |
Thanks! I'll attempt to build it and try to pair the device. |
I was able to compile it to armhf architecture in raspbian/stretch docker container, but could not get it running in my RPi 3B+ + Raspbee + Hass.io environment. I modified official addon_core_deconz docker container https://github.com/home-assistant/hassio-addons/tree/master/deconz and altered run.sh script to copy compiled plugin to /usr/share/deCONZ/plugins/libde_rest_plugin.so Then I stopped and started container. Phoscon webapp starts, but REST API does not. Requests to /api are routed to webapp and it responds in html If I add dbg-error=1 to deCONZ parameters I can see from the logs some errors during plugin lookup:
Can you assist how compiled plugin can be tested in my environment? Or is there something in the plugin code that prevents loading the library? |
@jukmanty with the changes committed, you have to wait for .72 release to give it another try. I'd also be interested in seeing if your described issue is resolved:
It might be required to fiddle around with the values a bit more. Develco documentation is at time not as specific as I'd wish it to be... Btw, do you get an audio alert while "alarm 1" is set to true in deconz GUI? I'd assume the sensor gives audio alert? |
Hi! I'll give it a retry after next release finds it way to the hass.io deconz add-on. It usually happens quite soon after deCONZ REST plugin release. For some reason I not able to write "Alarm 1" value. When Develco water leak detector is NOT joined to Zigbee network then I can read 23 0500 id 0x0002 (IAS Zone > IAS Zone Cluster > Zone Status > read) values. Changing "Alarm 1" to true and executing Zone Status Change Notification does not work, it gives "status 93". I quess sensor needs to be connected to network. After setting group for "Warning device" in Phoscon app, link between raspbee controller and water leak detector appears in deCONZ GUI (VNC app). But after that I'm not able to read or write cluster attributes. Operations always timeout. |
That doesn't really make sense. Devices must be paired and online to get reasonable values. Btw, Zone Status is a read only attribute if I'm not mistaken and describes what the current device status is. If you want to have the alert value in the API to be changed, have you tried sprinkling it with water? |
Argh, missed it. Forget about the alert value for the light node. This is pretty much to trigger audio alerts. I'd assume that would go for the flood sensor as well. Check #1593 for more details. What really will give you the indication if it's wet or not will be in the water sensor, as it has a water value (in contrast to the alert you mentioned). That one will get its info from the zone status attribute ... |
Previously I saw that HA 23 0500 0x0002 16-bitmap changed from 0x0030 to 0x0031 - i.e. "Alarm 1" bit is set to true when water leak sensor gets wet (yes, I did it manually dropping it on top of small amount of water). I'm not sure if this the one that indicates wet status or not. Yes, it seems very strange that values cannot be read anymore when it's paired. I think before I managed to do this (looking at the screenshots in the first post in this issue). Perhaps I need to shutdown all other zigbee devices to see if it is a network communication issue. I could not add this device as sensor previously, only as Light. Is it possible to pair water leak detector as sensor and get the "is wet" value via REST API if your pull request included in the next release? |
Triggering audio alert via REST API is not that relevant. Wet warning status (yes or no) is valuable. |
Ah, now we're getting to the point :) I initially thought you would have had the sensors available. Have you tried that #2052 (comment) ? Anyway, the commit should do the trick. The ZHAwater sensor is the important one then.
In deconz GUI, that makes perfect sense. |
No, I haven't. I'll try that procedure. |
New beta is out which contains the commits. Feel free to give it a try. |
Phoscon app now found a new sensor after resetting the device couple of times. It does not appear in the list of Connected sensors. But I see it now in deconz REST API as type ZHAWater sensor and also nicely in Home Assistant. It responded correctly by changing water value to true after dropping it into little amount of water. But I cannot change water value back to false (Alarm 1 in deconz GUI) without resetting the device... I tried to execute some command via deconz GUI and also tried PUT "water": false via deconz REST API but none of these seem to work. Also reading state via deconz GUI seems to work only randomly. I'm using deconz rest plugin 2_05_74 now. |
Thanks for the feedback. As I see it, there's also alight being created and that's what you need to interact with in terms of the alert. Could you please also do a REST query against the corresponding light and provide the output as above for the sensor? You cannot set any values for sensors. If I recall correctly, you must set the alert state from the light to none (I'll try to dig it out). Eventually, some attitional tweaking might be required here. EDIT: |
Device is not exposed as light in deconz REST API. I see only the Raspbee Gateway and a pile of OSRAM plugs in |
Ok, then that might be the bit of tweaking required. I can check the code to learn how that is handled for other water leak sensors. For the smoke sensors, as you can use the siren also independently, a light had to be created where you can youse the alert attribute (see #1593 (comment) for reference). Btw, does it also have an audio alert when it gets wet? |
Thanks, I appreciate your effort! Previously it was found as Light in Phoscon app and it was exposed as light in REST API with alert attribute. Now it is found as Sensor and is exposed as sensor in REST API with water attribute, but not as light. Device gives very loud audio alert when it gets wet. |
Ok, looks like the device is not considered from the lights perspective. Shouldn't be such a big deal to implement it according to the smoke sensors as well. When done, you should at least be able to turn of the alarm via REST API (at least I hope so). Checked documentation and the technically proper way to disable the alarm would require some more effort and a specific zigbee packet to be send... |
Retested this now using deCONZ 2.05.76. I found it as sensor in Phoscon app. Water status can be read via REST API, as a sensor:
It is not exposed as light anymore and alert attribute is not there anymore, but that's fine. Home Assistant integration works: "light 1" is some dysfunction integration Status changes to wet when it gets wet :) Only thing that is missing is a way to set status back to |
Thanks for the feedback. It's strange that the light disappeared since no changes have been made in this regard. Maybe you just run light search again while reading the basic cluster in deconz GUI or re-read the simple descriptors. If you'd send, to the associated light, an API request with payload |
It seems this issue is resolved or otherwise inactive. If it is not, please re-open! |
I have attempted to add Develco water leak detector to hass.io home automation setup with deCONZ add-on. I've managed to get visible in hass.io, but state changes are not reflected to Home assistant correctly. Device is detected as Light. deCONZ REST API also reports in /api/apikey/lights/2
"state": { "alert": "none", "reachable": true }
even though "Alarm 1" is true:
I see that the device is not in the list of Supported Devices, but recently base support for the Develco products has been added. Here is the basic info for this device:
Link to the technical documentation of the device:
https://www.develcoproducts.com/media/3804/flszb-110-technical-manual-water-leak-detector.pdf
The text was updated successfully, but these errors were encountered: