Is it possible to add Grohe Sense and Sense Guard to Homey?
No interest in this ?
i like that to
I would like that too. Having a switch to turn on and off water and saving water usage to insights would be nice features. I wish I knew how to develop apps…
For those interested in using the Grohe Sense Guard, I partly solved my problem with a Script instead of an app.
These are the steps I took to be able to turn on and off water from within a flow.
Steps 1 - XX are done using a Rest Client, like Postman
-
Get your Login token,
POST https://idp-apigw.cloud.grohe.com/v2/iot/auth/users/login
Body: {“username”:“XXXXX”,“password”:“XXXXXX”}
Header: Content-Type: application/json -
Get your Locations
GET https://idp-apigw.cloud.grohe.com/v2/iot/locations
Header: Content-Type: application/json
Header: Authorization:<Login Token from Step 1> -
Get Rooms
GET https://idp-apigw.cloud.grohe.com/v2/iot/locations/<Location ID from step 2>/rooms
Header: Content-Type: application/json
Header: Authorization:<Login Token from Step 1> -
Get Appliances
GET: https://idp-apigw.cloud.grohe.com/v2/iot/locations/<Location ID from step 2>/rooms/<Room ID from step 3>/appliances
Header: Content-Type: application/json
Header: Authorization:<Login Token from Step 1> -
Post Command to Close Water
POST https://idp-apigw.cloud.grohe.com/v2/iot/<Location ID from step 2>/rooms/<Room ID from step 3>/appliances/<Appliance ID from Step 4>/command
Body: { “type”: 103, “command”: { “valve_open”: false }}
Header: Content-Type: application/json
Header: Authorization:<Login Token from Step 1>
If everything works fine to step 5, just use this script with Homey.
postData(https://idp-apigw.cloud.grohe.com/v2/iot/locations/**<LocationID>**/rooms/**<RoomID>**/appliances/**<ApplianceID>**/command
, {“type”: 103,“command”: {“valve_open”: args[0]}})
.then(data => console.log(JSON.stringify(data)))
.catch(error => console.error(error));
function postData(url = ``, data = {}) {
// Default options are marked with *
return fetch(url, {
method: “POST”, // *GET, POST, PUT, DELETE, etc.
mode: “cors”, // no-cors, cors, *same-origin
cache: “no-cache”, // *default, no-cache, reload, force-cache, only-if-cached
credentials: “same-origin”, // include, *same-origin, omit
headers: {
“Content-Type”: “application/json”,
“Authorization”: “”,
},
redirect: “follow”, // manual, *follow, error
referrer: “no-referrer”, // no-referrer, *client
body: JSON.stringify(data), // body data type must match “Content-Type” header
})
.then(response => response.json()); // parses JSON response into native Javascript objects
}
The script is originally from this site: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch
There are a lot of improvements for the above script. For example, I am not sure how long the token will be valid for, so a new token could be needed once in a while. Could be solved using a script making a login request and store the token in a variable.
Hi
This seems very interesting. Do you know if there is a way of turning on and off a setting? Like the sprinkler water limit? For example I would
Like to set the timer for sprinkler to one hour from “now” when I start my sprinklers. Instead of being limited to the same time every day in settings.
I am not that skilled in scripts and just started with Homey after Home Assistant was a bit to complicated. I managed most but it took too long time.
Hi,
Sorry for late response. I could not find a way to set other settings than closing the valve. In the response from step 4 above, I can see those settings, but I do not know how to change them. Sorry.
Grohe Sense and Sense Guard are really good and most likely the best devices out there for water installation management and protection. I was looking at them year ago when I was installing water pipes but system was just announced and I didn’t consider it. Nonetheless in the future I really do plan to install it and would be great to have full support on homey for it.
Is it possible to read the current status from the Grohe Sense Guard, into Homey, without the script ?
Yes but someone has to create an app for it.
Here us some more info from other plugins that seem to have solved this:
- homebridge-grohe-sense - npm
- https://github.com/gkreitz/homeassistant-grohe_sense
- GROHE ONDUS - Bindings | openHAB
Maybe something for another day or if someone is willing to put in the time and effort I can support it.
I’d absolutely love to see Grohe Sense Guard support in Homey too - it’s one of the few devices I can’t get in there yet. Fingers crossed someone can get an app done!
I was glad to see similar product that is fully supported on homey exists. It’s from Rehau, device is called water control and the app is here: RE.GUARD Connector App for Homey | Homey
As I’m still evaluating solution I would eventually install I guess if grohe is not supported that one would be better choice. I will wait for some time more then decide.
Has anyone made progress getting Grohe Sense into Homey?
To my knowledge app does not exists. I would say rehau mentioned in previous post would be better choice for homey users.
Seems you’re right - however, I already have the Grohe system, so I was hoping someone would’ve come up with a solution.
I guess it’s a stand still position as athom expect it to be Grohe who invest their resources while grohe most likely do not care as it’s “The Grohe” …
I would suggest potentially writing to grohe about it as I was year or two ago. Even though they said there is no plan for similar integration, if all would write to them they could potentially change their mind.