Guys - I’m still working on this. Making slow progress. The problem for me is that I usually code late at night. These devices make an alarm noise so my wife wouldn’t be too happy if I kept setting it off at 1 am.
What are the outstanding issues as the code provided by James appears to be working as expected (wet/dry and temp. Have not verified battery) with the need to manually configure (initialize?).
I think the fingerprint still needs work, so that it will pair as the correct device (and configure correctly). I was just reading up on it a bit last night; the mfg code comes back from the device as hex with some commands, it’s in the ST creating a device handler documentation somewhere… I’ll see if I can’t play with that some this evening. But otherwise, I am using the code I posted with no issues and have included the devices I have set up with the Smart Home Monitor
Thanks Duane. Just trying to understand the ecosystem.
To be clear, the code I posted is dhelm’s. I just formatted it to be easier to cut paste directly from here. I’d much rather it be in the repo this way.
I just got a notification that my water sensor battery has died. It’s quite concerning since it is only about a week old.
Do you think our device handler caused it, or the unit needs a firmware update or what?
Just checked all of my battery levels in the sensors and they all looked fine…
Did you try setting it off manually to see if it is a battery issue or the DH reporting it incorrectly?
It works great once I did a manual configuration. Thanks guys for all your help…
FYI - System problem?
…So which post has working code? I seem to get any of them to work.
EDIT: I got it now… Took a while for it to start working. A while = 10-15 seconds.
Hey everyone. First thank you to everyone who got this working. I took the code above, cleaned it up made it so you don’t have to use the simulator to get it working.
Note: This code is by no means 100% all my work. This device handler is the work of SmartThings, @dhelm2, & @John_Luikart. I’ve simply adjusted for format, added better logging, and updated the code to not require the simulator to configure. The device configures itself sort of. I’ll continue to refine this this week.
1 - Pair
2 - Switch device handler
3 - Navigate to the device on your app, press the configure cog, hit done.
4 - Hit refresh.
Not sure if step 4 is required, for each of my 6 devices it took anywhere between 5 seconds and 2 minutes after #3 to begin reporting data. Hitting refresh seems to make that happen faster.
Edit: It worked after I ran it in the simulator. Had to run simulator for all 3 devices for them to start working.
I tried those exact steps multiple times. Tried a second water sensor. Tried unpair and paring again. Deleted and added the code again. I still see the same thing in the logs about 0b02 not supported when I refresh (after changing log level to debug). Nothing updates when I set off the alarm. Even if I refresh during the alarm. What am I missing?
leakSmart – parse(read attr - raw: CEF5010B0206000086, dni: CEF5, endpoint: 01, cluster: 0B02, size: 06, attrId: 0000, result: unsupported attr.
You hit the refresh button and not the “pull down” refresh right?
Attempting to resolve the pairing device identification and unsupported attr error. I have not tested this. Battery and temp work, not sure if alarm does. Give it a try if you want, otherwise I’ll test tonight.
Hi All,
My name is Augustin, I’m new to SmartThings and very excited… I have one leaksmart valve working, thanks to krlaframboise https://community.smartthings.com/t/release-leaksmart-water-valve/48669?u
I am trying to use the leaksmart sensors, I think Eric is doing a great job. The pairing is working just fine but the alarm no.
@Augustin - When you paired did smartthings recognize it was a leakSmart sensor or did you have to pick it? I am not at home so I can’t test my latest changes. I’ll revert the change I made that I think might have broken the alarm. The updated version can be found here…
Yes, was recognized automatically today at noon.
If I hit refresh button, has like 30 second delay or more and is showing just the temperature. The temp I think is off … +4 degrees.
I will try the update later. Thanks @whoismoses
Update: Updated version, paired and recognized, no battery, no temperature, no alert but now I can see it on the dashboard. Maybe I am doing something wrong… do I need to restart the Hub?
Just got home, taking a look now but all of mine are reporting both battery & temp. No alarm. Fixing now.
Maybe this helps … I just removed the smartapps links and now I can see battery and temp. No alarm.