Page 1 of 2

Grohe sense watersensor support

Posted: Saturday 28 October 2017 16:48
by Driekus
Hi

Is there support for the Grohe sense watersensor?
https://pro.grohe.com/ie/34666/for-your ... ohe-sense/

Driekus

Re: Grohe sense watersensor support

Posted: Saturday 28 October 2017 21:27
by mack
I see nothing in domoticz, or the forum, or the wiki about it. Since it connects via wi-fi to proprietary mobile app, there's no easy way to get domoticz involved. My google search didn't even turn up anyone hacking at the protocol to see how it communicates.
Since it's a Europe- and Middle East-only device, maybe someone in Europe knows more.

Re: Grohe sense watersensor support

Posted: Saturday 28 October 2017 21:44
by LouiS22
Driekus wrote: ↑Saturday 28 October 2017 16:48 Hi

Is there support for the Grohe sense watersensor?
https://pro.grohe.com/ie/34666/for-your ... ohe-sense/

Driekus
If you don't own this hardware (hope you aren't) then my advice is to stay away from them. As the previous poster noted it's connecting to a proprietary app and that's always the sign of NO GO. And for this price you can grab a z-wave stick and a cheaper water sensor from china.

Re: Grohe sense watersensor support

Posted: Tuesday 31 December 2019 21:03
by svalavuo
I got Grohe from my Insurance company and would like to use it with my Domoticz.
I found this: https://www.openhab.org/addons/bindings/groheondus/
How can I have that same to Domoticz? Wouldn't like to change to openhab now when I have managed to get about everything else functioning (RFLink, zigbee2mqtt, 1-wire (via owfs), squeezelight, sony-bravia, BroadlinkRM2, wol, IP cameras, lua -scripts, ...).

Is there a way to convert openhab plugin to domoticz plugin? :-)

- Samuli

Re: Grohe sense watersensor support

Posted: Wednesday 01 January 2020 14:07
by FireWizard
Hi,

As OpenHab is able to interface, it should be possible for others as well.
Home Assistant is able to interface as well.

As there seem to exist an API, it should not be too difficult.

Haveyou seen this:
https://flows.nodered.org/node/node-red ... cial-sense

In this case you can communicate with Domoticz with MQTT.

Regards

Re: Grohe sense watersensor support

Posted: Wednesday 01 January 2020 22:01
by svalavuo
Hi,

I can communicate Domoticz with MQTT, but...
I'm not (yet) familiar with node-red. That is something I'll have to learn.

Just installed node-red and that addon to it.

If there is someone that wants to give me a hint how to continue my trip... :-)

- Samuli

Re: Grohe sense watersensor support

Posted: Wednesday 01 January 2020 22:07
by FireWizard
Hi,

Can you provide a screenshot, what you have installed in Node Red?

Regards

Re: Grohe sense watersensor support

Posted: Thursday 02 January 2020 10:38
by svalavuo
Do you mean these?
ImageImageImage

Didn't actually get how to make it communicate with grohe -site, but... still trying to learn :-)

-Samuli

Re: Grohe sense watersensor support

Posted: Thursday 02 January 2020 14:12
by FireWizard
Hello svalavuo,

Actually I only meant the nodes installed under "sense",but it is ok.

I don't know what you have done/tried so far, but I suggest to start as follows.

Use https://flows.nodered.org/node/node-red ... cial-sense as guideline.

1. Drag and drop the node (under sense), called "sense-update" to the Work Space.
2. Double click on the node and the properties of the node will open.

Screenshot_Sense1.png
Screenshot_Sense1.png (12.69 KiB) Viewed 1998 times

3. Click on the pencil right of "Add new sense-config".
4. The configuration of the node will open. (This is a one time action and the data is stored in a hidden node).

Screenshot_Sense2.png
Screenshot_Sense2.png (15.87 KiB) Viewed 1998 times

5. Give the config a name, e,g, Sense Water Monitor, what ever you want (Sense Energy Monitor as in the picture is also OK).
6. Fill in your credentials (email and password).
7. Click on "Add". and the "Config" node will close.
8. Interval is optional and you can leave it as default (0) for know.
9. Name of this node is completely up to you, but give it a name that make sense, e.g. Sense Water Monitor.
10. See, if it communicates and connect 1 debug node (from the common section).

Screenshot_Sense3.png
Screenshot_Sense3.png (5.07 KiB) Viewed 1998 times
11. You have 2 nodes now, the sense-update and the debug (msg.payload) node.
12. Check the output in the debug pane (to be activated by CTR-g and then d).
13. If you see output, please post the result.

Regards

Re: Grohe sense watersensor support

Posted: Thursday 02 January 2020 18:55
by svalavuo
Thanks for detailed instructions!
That's about how far I have succeeded to go (didn't notice the debug -node).

Few points where I'm a bit lost:
* Grohe URL isn't inserted anywhere - how does that know where to contact, or is it built in to sensor?
* How do I start this flow?

Sorry, but as I wrote before, node-red is a new thing for me.

-Samuli

Re: Grohe sense watersensor support

Posted: Thursday 02 January 2020 20:51
by svalavuo
Some more information:
I run node-red with pm2 and in pm2 error log there is:

Code: Select all

{ Error: Unhandled "error" event. (Invalid email or password)
    at EventEmitter.emit (events.js:186:19)
    at Promise (/usr/local/lib/node_modules/node-red/node_modules/unofficial-sense/index.js:88:22)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:189:7) context: 'Invalid email or password' }
So it seems that my credentials are wrong. Now I'm not sure which credentials I should insert there.
My inserted credentials work in page https://idp2-apigw.cloud.grohe.com/v3/iot/oidc/login

My journey continues...

Re: Grohe sense watersensor support

Posted: Thursday 02 January 2020 21:27
by svalavuo
And now I realized, that this is nothing to do with my setup. :(
sense.com is not Grohe site and is for energy monitoring, not Grohe Sense -site.

- Samuli

Re: Grohe sense watersensor support

Posted: Thursday 02 January 2020 21:29
by FireWizard
Hi,

After reading a couple of threads on OpenHab and Home Assistant forums and Github, I start to believe that the Grohe Sense has nothing to do with the Sense nodes.
So, that explains, why you can' t login.

It is far more complex. A refresh token is required.
See: https://community.home-assistant.io/t/g ... /92835.and
https://community.athom.com/t/grohe-sen ... guard/1150.
Also: https://www.openhab.org/addons/bindings/groheondus/
https://github.com/FlorianSW/grohe-ondus-api-java

So except that this was a nice introduction for you in Node Red, this is a "Dead end street".
I think, you can delete this flow and remove the nodes.

Sorry for this, but you can try to make some steps, with the links above.

Regards

Re: Grohe sense watersensor support

Posted: Friday 03 January 2020 7:04
by svalavuo
This is something I'm currently trying to implement:
https://github.com/philipparndt/groheondus-to-mqtt-gw
Got something to mqtt allready. Next step is to get those sensors and readings to Domoticz. :-)

- Samuli

Re: Grohe sense watersensor support

Posted: Friday 03 January 2020 9:48
by FireWizard
Hi,

Can you post what you get in MQTT?
Is it the same as in the example?

Regards SW

Re: Grohe sense watersensor support

Posted: Friday 03 January 2020 19:53
by svalavuo
Hi,

I installed a php -script to subscribe to mqtt and display the messages.
With that:

Code: Select all

Got a message on topic grohe/Oikokatu 5/Keittiö 1/MINUN SENSE with payload:
{"wifi_quality":0,"serialnumber":"XxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXx","temperature":17.6,"humidity":37,"connection":1,"battery":100,"timestamp":"2020-01-03T01:55:16.000+02:00"}
Node-red:
Image
Image

My msg4.payload is somehow off, because in Domoticz I have:
Image

But the main thing is that I do have data from Grohe to Domoticz! \o/ 8-)

- Samuli

Re: Grohe sense watersensor support

Posted: Friday 03 January 2020 20:40
by BarryT
Just use a 24V watervalve (https://www.googleadservices.com/pagead ... RBe&adurl=) for 20 bucks, and you're good to go.
Have it for some years now, works perfect.
When we are not home, and all (water needed) washing machines are off, the water goes byeye ;)
Much easier then grohe sense!

Re: Grohe sense watersensor support

Posted: Friday 03 January 2020 20:56
by svalavuo
As I said earlier, in my case I had Grohe installed by my Insurance Company and thus it was free for me.
Because I have Domoticz and (almost) everything else is integrated to it, it was quite clear to me that I wanted Grohe data there too. Now it's implemented. :)

- Samuli

Re: Grohe sense watersensor support

Posted: Friday 03 January 2020 20:57
by BarryT
Good to hear you fixed it! ;)

Re: Grohe sense watersensor support

Posted: Friday 03 January 2020 21:15
by FireWizard
Great,

You managed it :D :D :D

Your msg4. Shouldn't that be: msg.temphum.payload?
I think it is even better if you change it to payload.temphum in line 6 and then in 10 msg.payload.temphum.

Regards