Works great! I set it up last week so that when we all leave from home, the water is turned off. When someone comes home, the water is turned on.
However, I noticed that when I just restarted Home Assistant I got a notice that the device could not be setup. I had to go through the procedure again for getting the refresh token. The new one I got was different from the old and swapping them out fixed the problem (after another restart of hass of course).
Was this a fluke, or do I need to get a new refresh token every time I restart hass in the future?
After 2020.12.0 the integration no longer works. In the log I get:
2020-12-16 07:45:51 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: grohe_sense
2020-12-16 07:46:20 DEBUG (MainThread) [custom_components.grohe_sense] Exception for http post request to https://idp-apigw.cloud.grohe.com/v3/iot/oidc/refresh, verify=False: Cannot connect to host idp-apigw.cloud.grohe.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1124)')]
Glad you like it. Grohe refresh tokens last a few months, so that behaviour is unfortunately expected to re-occur every few months (but thankfully not every restart at least). Itās annoying, but unfortunately, only Grohe can change that. Hopefully, some day, Grohe might create a more official API with better support.
Thanks for the ping here. Iāve been busy, so didnāt have time to update my home assistant or fix this until now. The latest version should fix this.
I would strongly advice against turning off SSL verification - that removes important security properties. If someone intercepted your network traffic with SSL verification off, they can now essentially control everything you can with your Grohe installation until the refresh token times out.
What happened was that Groheās TLS certificate was signed by an old CA which was deprecated. Eventually, support for that CA was removed from a lot of places, including home assistant. Grohe had set up a new server, with a new TLS certificate signed by a better CA, so by re-pointing there, things work fine again.
Iām using it with my Grohe Sense Guard setup - and it works fine. I can shut the mains water off, monitor and log water pressure, temperature and flow.
What part of the login are you having trouble with?
Iām treferring to this address https://idp2-apigw.cloud.grohe.com/v3/iot/oidc/login, which seems not to work. Firefox gives āThe address wasnāt understoodā, Chrome doesnāt do anything. Must be something simple Iām missingā¦
Youāre right, the link on Chrome doesnāt do anything - however, it does work on Edge and you can login and then continue following the instructions as listed
Another question: should this work with HA OS?
When adding āgrohe_sense:ā the to configuration.yaml, this error message comes up:
Component error: grohe_sense - Integration āgrohe_senseā not found.
Canāt figure this out.
Firstly, the only thing that āconfiguration.yamlā needs is the refresh token i.e:
grohe_sense:
refresh_token:
"VERY_LONG_TOKEN"
Secondly, make sure that the integration is in your ācustom_componentsā directory in a folder named āgrohe_senseā
Thirdly, you might need to add a version number to the āmanifest.jsonā file - because later versions of HA need this to validate an integration. Here is a generic version of the file for you.
Thank You. Since Iām using HA OS, I thought that it is more restricted. Iāve tried the installation according to the instructions multiple times (and days :-D). The problem remains that somehow the whole grohe_sense directory is not recognized in the custom_components dir. Go figure.
Iāll follow this thread and will report if I get it at some point.
Correct, nothing else in the logs related to this.
From the Home Assistant docs check_config - Home Assistant I found the configuration checker ā at least in my system the command hass in not availableā¦ feels like HA OS is not meant for these sort of integrations?
Could try to install another instance to a spare RPI to play with.
Just to be clear - did you create the custom_components directory yourself? and is it as the same level at the configuration.yaml file?
Also, did you add the version number to the manifest.json - the component will not be recognised otherwise, and it is not included in the code on github.
Finally, did you reboot the whole instance rather than just restarting the HA server component?
Thanks again isujosh. Yes, yes and yes to all of those
Restarting the HA server component is not possible since the configuration.yaml does not pass the validity test. Thought that rebooting makes no difference, did it already earlier. BUT it did now, Grohe items are populated on the UI(!).
I get the correct water consumption value, temperatures etc. Wonāt just mention, that the valve switch does nothing .
Happy with this now, only a bit shame that took your time.
Thatās great newsā¦ and I have had the problem with the valve switch not working intermittently (just what you need when youāre relying on it to shut off your water!)
I found that if I used the HA app on my phone - it would start working - but not if I was trying through the web UI on my main computerā¦ go figure that one out! I have a feeling it is a wifi issue. So do try it on the phone app and see if this works.