Rachio integration not refeshing

My Rachio integration is not refreshing and wondering if some one else is having this issue. For example, when the rain sensor is showing wet on the Rachio app, it will show dry on the HA app. I need to restart HA for the rain sensor to show wet on the HA app. Same behaviour goes with Stand-by Mode and Rain Delay, etc.

Sounds like you don’t have external access set up correctly. Take a look here.

Thank you Brian. You saved me here. I am a newbie here. I read and followed the Rachio integration instructions and unless I missed it, I did not see a reference to the Setup basic information. That is new to me. So I apologize up front.

Glad you got it working. I thought the remote access link mentioned it but apparently not. Thanks for pointing that out.

Me again Brian. For some strange reason, the refresh stopped working yesterday. Thought I’d share that with you. I did add the following line "allowlist_external_urls" to the config file. I am glue less at moment. Thanks

homeassistant:
  allowlist_external_urls:
    - '"https://app.rach.io/locations/....API_Code...."'

That is strange. Could the external url have changed somehow?

I don’t think allowlist_external_urls Is what you need here.

Try adding the following to your configuration.yaml and restart. There should be a logbook entry that lists the url that homeassistant thinks it’s accessible from. See if that’s what you expect it to be.

logger:
  default: info
  logs:
    homeassistant.components.rachio: debug

It is indeed strange. Did what you asked me to do. Log says:

The url “https://xyz.synology.me:1234/api/webhook/” must be accessible from the internet in order to receive updates.

If I test this url in the log entry from my browser, it goes no where. If I test the url I put in the configuration file as you suggested couple of days ago, it goes to the Rachio interface which I believe is right. Then the latter suggests it is the right url I need for HA to update the Rachio integration.

If allowlist_external_urls is not what I should use, then what is it? Thanks

What is the url you put in external_url?

Thanks Brian for your assistance and there is no rush here at my end to fix this.

Here it is.

home_assistant:
  allowlist_external_urls:
     - `https://app.rach.io/locations/19327b419-736e-494a-8861-89451880bd9`

So is your NAS accessible from the outside currently? As in, can you log in to HA from somewhere not on your local network?

If so, that address is what needs to be inserted into the external_url field.

The allowlist_external_urls field is for accessing urls on your local network I believe.

So is your NAS accessible from the outside currently? Yes. As in, can you log in to HA from somewhere not on your local network? Yes

If so, that address is what needs to be inserted into the external_url field. That has already been set to this address since day one.

To recap, I can access HA locally and remotely using both the app and the web link. Could the web hook be wrong?

Very bizarre because it did work. Regards

And what web link is that? (Redact as necessary but just to get a general idea)

Please note I am not providing the real url and email address. But that should give you an idea of what I am reading. Hoping that helps.

Here’s the url I put in the external_url:
https://xyz.synology.me:1234

Here’s what the log says:

2021-09-27 21:29:21 DEBUG (SyncWorker_4) [homeassistant.components.rachio.device] Rachio controller "Rachio-D4D63C" has ID "4ede1c51-e859-494c-8c40-e883a2f23f26"
2021-09-27 21:29:21 INFO (SyncWorker_4) [homeassistant.components.rachio.device] Using Rachio API as user "[email protected]"
2021-09-27 21:29:21 INFO (MainThread) [homeassistant.components.rachio] 1 Rachio device(s) found; The url https://xyz.synology.me:1234/api/webhook/b4a55e09be394efcb803ff75c6f1139be9eb89ad863bf39ab95a7969d37c8c66 must be accessible from the internet in order to receive updates

That all seems correct from what I can tell…

Just making sure, you can reach HA from this address (the real one of course) remotely, correct?

It is very strange that it worked for a while then quit… I assume you’ve tried again since restarting and still have the same result.

When I follow the webhooks link from the logs I get a 405: Method Not Allowed error…are you seeing this?

Correct for both questions. I’m still digging at my end to see what is going on. Iy has to be something in my network/HA configuration.

The Standby, Rain Sensor and Rain Delay entities just started refreshing as they should. Very weird.

I still get the error about the The url https://xyz.synology.me:1234/api/webhook/b4a55e09be394efcb803ff75c6f1139be9eb89ad863bf39ab95a7969d37c8c66 must be accessible from the Internet in order to receive updates though.

Anyway, thanks again for assistance.

Well that’s good. Hopefully it keeps working this time :slight_smile:

The message in the logs about the url should be an info message, it shows up every start to help people troubleshoot webhook issues.

Just another piece to this. Had the same issue no updates from Rachio and or better said the states did not match from Rachio to Home Assistant and vice versa unless a reload of the Rachi Integration was done. Everything was configured per HA information, and I could see packets being sent to my HA instance from Rachio IP Address. The packet time stamps matched every change in state of Rachio (zone on, zone off etc…). Used Webhook.site to verify that Rachio was indeed sending the correct information to the desired location based on the HA config. It appears this was not working due to self-signed certificate. Changed to Let’s Encrypt signed certificate and all works as designed. So, if everything looks correct and you are using a self-signed cert try switching to an accepted CA.

Can you explain how to Change to Let’s Encrypt signed certificate ?