I only get:
User_id, location_id, encryptedPassword and Token.
The logs so nothing.
I only get:
User_id, location_id, encryptedPassword and Token.
The logs so nothing.
Here you go:
And yes, please - it's your driver I just tweaked it Looking forward to seeing the changes!
Thank you all for the help identifying the device type for the smart water detector. The new app is in Hubitat Package Manager. It is completely independent of the old driver and will not upgrade or update it in any way. Automations you have currently won't be affected until pointed to new devices using the new app and drivers.
The new app is available in Hubitat Package Manager as Moen FLO Device Manager.
Once installed from HPM:
Once it's setup, the devices should show up in the devices tab, but there won't be any preferences to set -- just actions. To change polling frequency, etc. -- go to the Apps tab and select the device in the Apps list or inside the Moen Flo Device Manager app.
If you see "Unrecognized devices detected..." in red at the top of the Device Manager app then one of your devices doesn't match the device types that I've seen -- just let me know what it is and I'll map it to one of the drivers.
Just got arround to updateing. Everything is working! I've been testing the location with a rule to link that location to my Ring Alarm - all seems to be working. Next is to see how to better use the leak sensors.
I have this running on two hubs in two locations!
Thank you.
Dear David
I followed your instructions to remove all Flo drivers and install your new software update, Everything looks good, but the log shows some errors, please advise
Regards
@duchnguy I just pushed an update the should fix this specific. I'm not actually sure if the sensor device has alert data, so let me know if you see other errors.
I have been enjoying this integration very much and want to express my big thanks to @david2 for the great work.
In the Flo by Moen app on my phone, I have set up the Units option to Metric. However in my HE device list, it only reports Imperial measurements. Did I miss a setting in this app, or it simply has not been coded for that conversion?
Interestingly enough, I cannot find the option for Metric/Imperial measurements on the https://user.meetflo.com and wonder if it has anything to do with my issue.
Any thoughts would be appreciated. Thanks.
Hey @franquosino, I just pushed an update to hubitat package manager that will use the units reported by the API (from the app settings).
The drivers have been using what the API reports as the name of the attributes (e.g. gpm, psi) for pressure and flow rate, but Hubitat now has a device capability for pressure and liquidflowrate, so I've updated the driver to use those instead (pressure and rate). These will vary in unit based on what's set in the Moen app (kpa/psi or LPM/GPM respectively).
Temperature was already using the native attribute/capability, so that attribute remains the same, but will now respect the app preferences. FYI, the API is reporting my temperature as 225 degrees F all the time and is showing a "broken" health status for the temp. The app says something more reasonable (59 F). I am not really sure what's going on here. It may be specific to my Flo though. It doesn't freeze here (SoCal), so I've not checked with Moen. It should translate correctly if the API is reporting the correct temp for yours.
The location's consumption variable has been renamed to totalConsumptionToday and will flip to liters if the API reports metric.
David
Thank you @david2 for your quick response and I really appreciate your adding the metric units.
I realized that I had installed your previous driver, which I deleted, and started from scratch all over again. I took me a while as I was getting error messages relating to unauthorized or no password. Then, I realized that I had just installed the Moen FLO Device Manager without the drivers! You may consider adding that step into your installation guideline (for noobees like me ).
On the temperature matter, it shows "21.67" and I have no idea whether it's F or C degrees. On the phone app, it reports area temp at -2 C (which is local temp, not where the device is installed).
Otherwise, it's all working fine now.
@david2 Thanks for creating this. I don't have Flo yet, but since I'm going to be living with Poly-B plumbing in my new home until I can get a plumber in to replace all of it with PEX, I'm going to add a Moen Flo unit.
Just want to confirm, will I be able to get gpm and psi data in HE? I didn't notice it mentioned in your repo readme.md, but I see the attributes in your code.
@franquosino I was looking at the readme yesterday and thinking it all needs updating. Will try to do that over the holidays. Honestly, I'd like to get rid of the old driver, just am not sure if anyone is still using it.
Did you install with Hubitat Package Manager? That's what I recommend to keep everything up to date. You also don't have to install the apps/drivers individually that way.
Regarding the 21.67 -- if you add the shutoff to a Hubitat dashboard as a temperature tile it should show the unit being reported. That sounds like C to me though. I did open a ticket with Moen asking both if my device was borked and if the app was showing temps from some weather service.
@SmartHomePrimer, yes it reports psi and gpm if the account is in us/imperial mode (or kpa/lpm if its in metric).
The app is now using the PressureMeasurement and LiquidFlowRate device capabilities, so the attributes will show as pressure and rate and report the units (psi and gpm or kPA and lpm) separately.
Excellent! Thanks so much David.
@david2 Yes, I installed the HPM a while back. Both Moen FLO Device Manager and Moen Flo Smart Shutoff show up.
Regarding the 21.67 temp, I think you're right, it must be C degrees. Of what, though, I'm not sure. If it's inside my garage temp, that would make sense. However, the app on the phone doesn't show that number.
I had a call in with Moen support as my unit had been on "Learning" mode for over 2 weeks after installation. They told me that they had a server issue recently and that they were to push an updated firmware overnight. My current firmware is 3.5.14. That makes me wonder whether this temp issue is related to the firmware.
@franquosino Ah, I'm going to update the labeling for the old driver to make that clearer.
@david2 Here's a few more observations that hopefully are helpful to you in shaping this great app.
I installed the following in the Apps Code section: Moen FLO Device Manager, Moen FLO Location Instance, and Moen FLO Smart Shutoff Instance. In the Drivers Code section, I installed: Moen FLO Location and the Moen FLO Smart Shutoff.
I then installed the app, under the Add User App, and Logged in. I added my device under "Add Shutoff Valve." I also added a device under "Add Location." As a result, I now have 2 devices in my HE device list. One is for Moen FLO Smart Shutoff and the other one is for Moen FLO Location.
While having 2 new devices appear redundant at first look, they actually provide different information and options, albeit helpful.
Am I set up the way you intended it?
@franquosino yup, for just the shutoff valve that's correct. The "location" data (presence, consumption) is separate from the shutoff in the API, so with the new app/driver it's separated out in a virtual device.
FWIW, the old driver combines this data, but two different people found bugs in the old driver trying to use smart water detectors and shutoffs from different locations at the same time and this way the location polls it's data on it's own schedule and the shutoff on it's own. In more complex setups it could be possible for the location status to show different things on different devices, etc.
Also thanks for the feedback on the documentation/UX. I'm hoping to make it a little better -- I just got a C7 hub from the Saturday flash sale and up until now all my dev has been on my main hub, which makes it annoying to go through the install process or remove and reinstall for testing/documention.
@franquosino it looks like Hubitat Package Manager / HPM stores the manifest location for the installed driver even if the repo has been updated with the new location. I couldn't get it to go away without removing the driver and reinstalling it in HPM.
If you're now using the full blown app / Moen FLO Device Manager, you can remove the older package (Moen Flo Smart Shutoff) entirely in HPM.