Grohe sense watersensor support

Use this forum to discuss possible implementation of a new feature before opening a ticket.
A developer shall edit the topic title with "[xxx]" where xxx is the id of the accompanying tracker id.
Duplicate posts about the same id. +1 posts are not allowed.

Moderators: leecollings, remb0

Driekus
Posts: 1
Joined: Saturday 28 October 2017 16:44
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Grohe sense watersensor support

Post by Driekus »

Hi

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

Driekus
User avatar
mack
Posts: 14
Joined: Friday 08 April 2016 8:23
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: Dallas, USA
Contact:

Re: Grohe sense watersensor support

Post 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.
User avatar
LouiS22
Posts: 433
Joined: Friday 27 February 2015 13:21
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Budapest, Hungary
Contact:

Re: Grohe sense watersensor support

Post 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.
svalavuo
Posts: 10
Joined: Sunday 06 May 2018 17:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Location: Rauma, Finland
Contact:

Re: Grohe sense watersensor support

Post 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
User avatar
FireWizard
Posts: 1905
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: Grohe sense watersensor support

Post 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
svalavuo
Posts: 10
Joined: Sunday 06 May 2018 17:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Location: Rauma, Finland
Contact:

Re: Grohe sense watersensor support

Post 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
User avatar
FireWizard
Posts: 1905
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: Grohe sense watersensor support

Post by FireWizard »

Hi,

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

Regards
svalavuo
Posts: 10
Joined: Sunday 06 May 2018 17:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Location: Rauma, Finland
Contact:

Re: Grohe sense watersensor support

Post 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
User avatar
FireWizard
Posts: 1905
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: Grohe sense watersensor support

Post 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 1996 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 1996 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 1996 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
svalavuo
Posts: 10
Joined: Sunday 06 May 2018 17:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Location: Rauma, Finland
Contact:

Re: Grohe sense watersensor support

Post 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
svalavuo
Posts: 10
Joined: Sunday 06 May 2018 17:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Location: Rauma, Finland
Contact:

Re: Grohe sense watersensor support

Post 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...
svalavuo
Posts: 10
Joined: Sunday 06 May 2018 17:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Location: Rauma, Finland
Contact:

Re: Grohe sense watersensor support

Post 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
User avatar
FireWizard
Posts: 1905
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: Grohe sense watersensor support

Post 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
svalavuo
Posts: 10
Joined: Sunday 06 May 2018 17:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Location: Rauma, Finland
Contact:

Re: Grohe sense watersensor support

Post 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
User avatar
FireWizard
Posts: 1905
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: Grohe sense watersensor support

Post by FireWizard »

Hi,

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

Regards SW
svalavuo
Posts: 10
Joined: Sunday 06 May 2018 17:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Location: Rauma, Finland
Contact:

Re: Grohe sense watersensor support

Post 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
BarryT
Posts: 369
Joined: Tuesday 31 March 2015 22:06
Target OS: Linux
Domoticz version: 2024.3
Location: east netherlands
Contact:

Re: Grohe sense watersensor support

Post 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!
svalavuo
Posts: 10
Joined: Sunday 06 May 2018 17:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Location: Rauma, Finland
Contact:

Re: Grohe sense watersensor support

Post 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
BarryT
Posts: 369
Joined: Tuesday 31 March 2015 22:06
Target OS: Linux
Domoticz version: 2024.3
Location: east netherlands
Contact:

Re: Grohe sense watersensor support

Post by BarryT »

Good to hear you fixed it! ;)
User avatar
FireWizard
Posts: 1905
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: Grohe sense watersensor support

Post 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
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest