valiquette / homebridge-rachio-irrigation

Provides Homebridge support for Rachio controller
MIT License
21 stars 4 forks source link

Webhook question #33

Closed mbierman closed 1 year ago

mbierman commented 2 years ago

Hope this isn't a stupid question, I'm not sure I'm using webhooks correctly. If I don't set up basic auth, I get a message like this:

[12/12/2021, 10:36:59 PM] [Rachio] Webhook received from an unknown external id Homebridge-5cb44a1b-23de-4d42-*

If I set basic auth, I get this which seems like it is saying something is wrong whether I use the app or the test url:

[12/12/2021, 10:05:53 PM] [Rachio] Expecting webhook authentication

Sending the wrong auth in the test URL seems to give the same result as the correct auth.

What should the proper configuration look like? How do I know if all is good?

valiquette commented 2 years ago

It sounds like there may be an extra Webhook defined on the Rachio side, maybe from a different plugin or app. If so deleting them and starting from scratch should do the trick. There is an checkbox in the plugin config under Webhooks/Extra stuff called "Delete all current webhook IDs". This box does not need to be checked permanently, one restart should be fine.

if correct you should see a line line this Sidewalk Started, started for duration 3 mins. in your log when you start a zone from Rachio

mbierman commented 2 years ago

Used the option to delete other webhooks, restarted. turned that option off, restarted. still get

2/13/2021, 9:09:30 AM] [Rachio] Expecting webhook authentication

But there are messages that look like Rachio is updating homebridge when I use the rachio app to turn on a zone.

valiquette commented 2 years ago

I see some messages like that from time to time and have been trying to debug it, maybe this is a benign error. I'll look into it more, but it sounds like you're working ok. There is a beta version you could try, it cleaned up some of the extra logging that I had in place around this. If it is still there, I would need to see some debug logging that captured the webhook traffic, which would be really helpful. Thanks

balboafer commented 2 years ago

Hi! I followed carefully all the instructions to set up the plug in but I still can’t see the accessories in the homekit app, maybe I’m doing something wrong with the webhooks config! I’ll leave you a few screen shots to see if you can tell me what I’m doing wrong. 7BE2703D-2BC0-4ECE-BD14-F459E8FD0114 7FD7089F-D65A-46FF-9FF8-B9638FCA0893 Also here are the logs: [16/05/22, 18:13] [Rachio Irrigation] Configuration change [16/05/22, 18:13] [Hub] rachioirrigation stopping [16/05/22, 18:13] [Hub] rachioirrigation stopping [16/05/22, 18:13] [Hub] Rachio Irrigation starting [16/05/22, 18:13] [Rachio Irrigation] Loaded plugin 'homebridge-rachio-irrigation' [16/05/22, 18:13] [Rachio Irrigation] Registering platform 'homebridge-rachio-irrigation.rachio' [16/05/22, 18:13] [Rachio Irrigation] Loading 1 platforms... [16/05/22, 18:13] [Rachio Irrigation] Starting Rachio Platform with homebridge API 2.7 [16/05/22, 18:13] [Rachio Irrigation] [WARNING] Cannot validate webhook destination address, please check webhook config settings. Will not set Webhooks [16/05/22, 18:13] [Rachio Irrigation] Getting Person info... [16/05/22, 18:13] [Rachio Irrigation] [WARNING] Webhook support is disabled. This plugin will not sync Homekit to realtime events from other sources without Webhooks support. [16/05/22, 18:13] [Rachio Irrigation] Bridge is running on port 51856. [16/05/22, 18:13] [Rachio Irrigation] Found Person ID a47c0289-c62b-41df-9966-fd3d60c6691d [16/05/22, 18:13] [Rachio Irrigation] Getting Person ID info... [16/05/22, 18:13] [Rachio Irrigation] Getting Location info... [16/05/22, 18:13] [Rachio Irrigation] Found Account for username balboaf25 [16/05/22, 18:13] [Rachio Irrigation] Found Location: id=f84f5fe2-a9a9-4626-be18-23e2ec2966cc address=Sendero del Lago 130 geo={ latitude: 20.681613696633, longitude: -101.394771621692 } [16/05/22, 18:13] [Rachio Irrigation] Found Location: device id=4af91ed1-a1fe-42b1-9aaa-0b82c074fe92 [16/05/22, 18:13] [Rachio Irrigation] Skipping controller Residencial Pontevedra at Sendero del Lago 130 , not found at the configured location: Sendero del lago 130 [16/05/22, 18:18] [Rachio Irrigation] Configuration change [16/05/22, 18:18] [Hub] rachioirrigation stopping [16/05/22, 18:18] [Hub] rachioirrigation stopping [16/05/22, 18:18] [Hub] Rachio Irrigation starting [16/05/22, 18:18] [Rachio Irrigation] Loaded plugin 'homebridge-rachio-irrigation' [16/05/22, 18:18] [Rachio Irrigation] Registering platform 'homebridge-rachio-irrigation.rachio' [16/05/22, 18:18] [Rachio Irrigation] Loading 1 platforms... [16/05/22, 18:18] [Rachio Irrigation] Starting Rachio Platform with homebridge API 2.7 [16/05/22, 18:18] [Rachio Irrigation] [WARNING] Cannot validate webhook destination address, please check webhook config settings. Will not set Webhooks [16/05/22, 18:18] [Rachio Irrigation] Getting Person info... [16/05/22, 18:18] [Rachio Irrigation] [WARNING] Webhook support is disabled. This plugin will not sync Homekit to realtime events from other sources without Webhooks support. [16/05/22, 18:18] [Rachio Irrigation] Bridge is running on port 51856. [16/05/22, 18:18] [Rachio Irrigation] Getting Person ID info... [16/05/22, 18:18] [Rachio Irrigation] Found Person ID a47c0289-c62b-41df-9966-fd3d60c6691d [16/05/22, 18:18] [Rachio Irrigation] Found Account for username balboaf25 [16/05/22, 18:18] [Rachio Irrigation] Getting Location info... [16/05/22, 18:18] [Rachio Irrigation] Found Location: id=f84f5fe2-a9a9-4626-be18-23e2ec2966cc address=Sendero del Lago 130 geo={ latitude: 20.681613696633, longitude: -101.394771621692 } [16/05/22, 18:18] [Rachio Irrigation] Found Location: device id=4af91ed1-a1fe-42b1-9aaa-0b82c074fe92 [16/05/22, 18:18] [Rachio Irrigation] Skipping controller Residencial Pontevedra at Sendero del Lago 130 , not found at the configured location: Sendero del lago 130 [16/05/22, 18:21] [Hub] [WARNING] device reboot command received [16/05/22, 18:21] [Hub] Initilizing interface 'homebridge-lutron-caseta-leap' [16/05/22, 18:21] [Hub] Registering route 'homebridge-lutron-caseta-leap:search' on 'lutroncasetaleapbridge' [16/05/22, 18:21] [Hub] Shutting down [16/05/22, 18:21] [Hub] Stopped [16/05/22, 18:21] [Hub] hub is running on port 8080 [16/05/22, 18:21] [Hub] Initilizing interface 'homebridge-lutron-caseta-leap' [16/05/22, 18:21] [Hub] Registering route 'homebridge-lutron-caseta-leap:search' on 'lutroncasetaleapbridge' [16/05/22, 18:21] [Hub] Tuya Web Bridge starting [16/05/22, 18:21] [Hub] Lutron Caseta Leap Bridge starting [16/05/22, 18:21] [Hub] Sensibo Ac Bridge starting [16/05/22, 18:21] [Hub] Camera FFmpeg Bridge starting [16/05/22, 18:21] [Hub] Switchbot Bridge starting [16/05/22, 18:21] [Hub] SmartThings Bridge starting [16/05/22, 18:21] [Hub] Govee starting [16/05/22, 18:21] [Hub] August Locks starting [16/05/22, 18:21] [Hub] Rachio Irrigation starting [16/05/22, 18:22] [Rachio Irrigation] Loaded plugin 'homebridge-rachio-irrigation' [16/05/22, 18:22] [Rachio Irrigation] Registering platform 'homebridge-rachio-irrigation.rachio' [16/05/22, 18:22] [Rachio Irrigation] Loading 1 platforms... [16/05/22, 18:22] [Rachio Irrigation] Starting Rachio Platform with homebridge API 2.7 [16/05/22, 18:22] [Rachio Irrigation] [WARNING] Cannot validate webhook destination address, please check webhook config settings. Will not set Webhooks [16/05/22, 18:22] [Rachio Irrigation] [WARNING] Webhook support is disabled. This plugin will not sync Homekit to realtime events from other sources without Webhooks support. [16/05/22, 18:22] [Rachio Irrigation] Getting Person info... [16/05/22, 18:22] [Rachio Irrigation] Bridge is running on port 51856. [16/05/22, 18:22] [Rachio Irrigation] Found Person ID a47c0289-c62b-41df-9966-fd3d60c6691d [16/05/22, 18:22] [Rachio Irrigation] Getting Person ID info... [16/05/22, 18:22] [Rachio Irrigation] Found Account for username balboaf25 [16/05/22, 18:22] [Rachio Irrigation] Getting Location info... [16/05/22, 18:22] [Rachio Irrigation] Found Location: id=f84f5fe2-a9a9-4626-be18-23e2ec2966cc address=Sendero del Lago 130 geo={ latitude: 20.681613696633, longitude: -101.394771621692 } [16/05/22, 18:22] [Rachio Irrigation] Found Location: device id=4af91ed1-a1fe-42b1-9aaa-0b82c074fe92 [16/05/22, 18:22] [Rachio Irrigation] Skipping controller Residencial Pontevedra at Sendero del Lago 130 , not found at the configured location: Sendero del lago 130 [16/05/22, 18:25] [Rachio Irrigation] Configuration change [16/05/22, 18:25] [Hub] rachioirrigation stopping [16/05/22, 18:25] [Hub] Rachio Irrigation starting [16/05/22, 18:25] [Rachio Irrigation] Loaded plugin 'homebridge-rachio-irrigation' [16/05/22, 18:25] [Rachio Irrigation] Registering platform 'homebridge-rachio-irrigation.rachio' [16/05/22, 18:25] [Rachio Irrigation] Loading 1 platforms... [16/05/22, 18:25] [Rachio Irrigation] Starting Rachio Platform with homebridge API 2.7 [16/05/22, 18:25] [Rachio Irrigation] [WARNING] Cannot validate webhook destination address, please check webhook config settings. Will not set Webhooks [16/05/22, 18:25] [Rachio Irrigation] [WARNING] Webhook support is disabled. This plugin will not sync Homekit to realtime events from other sources without Webhooks support. [16/05/22, 18:25] [Rachio Irrigation] Getting Person info... [16/05/22, 18:25] [Rachio Irrigation] Bridge is running on port 51856. [16/05/22, 18:25] [Rachio Irrigation] Found Person ID a47c0289-c62b-41df-9966-fd3d60c6691d [16/05/22, 18:25] [Rachio Irrigation] Getting Person ID info... [16/05/22, 18:25] [Rachio Irrigation] Found Account for username balboaf25 [16/05/22, 18:25] [Rachio Irrigation] Getting Location info... [16/05/22, 18:25] [Rachio Irrigation] Found Location: id=f84f5fe2-a9a9-4626-be18-23e2ec2966cc address=Sendero del Lago 130 geo={ latitude: 20.681613696633, longitude: -101.394771621692 } [16/05/22, 18:25] [Rachio Irrigation] Found Location: device id=4af91ed1-a1fe-42b1-9aaa-0b82c074fe92 [16/05/22, 18:25] [Rachio Irrigation] Skipping controller Residencial Pontevedra at Sendero del Lago 130 , not found at the configured location: Irapuato [16/05/22, 18:26] [Rachio Irrigation] Configuration change [16/05/22, 18:26] [Hub] rachioirrigation stopping [16/05/22, 18:26] [Hub] rachioirrigation stopping [16/05/22, 18:26] [Hub] Rachio Irrigation starting [16/05/22, 18:26] [Rachio Irrigation] Loaded plugin 'homebridge-rachio-irrigation' [16/05/22, 18:26] [Rachio Irrigation] Registering platform 'homebridge-rachio-irrigation.rachio' [16/05/22, 18:26] [Rachio Irrigation] Loading 1 platforms... [16/05/22, 18:26] [Rachio Irrigation] Starting Rachio Platform with homebridge API 2.7 [16/05/22, 18:26] [Rachio Irrigation] [WARNING] Cannot validate webhook destination address, please check webhook config settings. Will not set Webhooks [16/05/22, 18:26] [Rachio Irrigation] [WARNING] Webhook support is disabled. This plugin will not sync Homekit to realtime events from other sources without Webhooks support. [16/05/22, 18:26] [Rachio Irrigation] Getting Person info... [16/05/22, 18:26] [Rachio Irrigation] Bridge is running on port 51856. [16/05/22, 18:26] [Rachio Irrigation] Found Person ID a47c0289-c62b-41df-9966-fd3d60c6691d [16/05/22, 18:26] [Rachio Irrigation] Getting Person ID info... [16/05/22, 18:26] [Rachio Irrigation] Found Account for username balboaf25 [16/05/22, 18:26] [Rachio Irrigation] Getting Location info... [16/05/22, 18:26] [Rachio Irrigation] Found Location: id=f84f5fe2-a9a9-4626-be18-23e2ec2966cc address=Sendero del Lago 130 geo={ latitude: 20.681613696633, longitude: -101.394771621692 } [16/05/22, 18:26] [Rachio Irrigation] Found Location: device id=4af91ed1-a1fe-42b1-9aaa-0b82c074fe92 [16/05/22, 18:26] [Rachio Irrigation] Skipping controller Residencial Pontevedra at Sendero del Lago 130 , not found at the configured location: Irapuato

Hope you can help me.

balboafer commented 2 years ago

Solved partially: removed http:// from the external IP address field and leave blank the street name! now I only see one button with two buttons on it, one to run all the zones and the other, I suppose to leave them in stand by mode, but no buttons for individual zones! ![Uploading 8988F031-CC4D-4E1C-B649-EB956465FDF8.png…]()

balboafer commented 2 years ago

FFD89793-2D44-4EFB-BB7A-60BAA6C56E1F

valiquette commented 2 years ago

Updated version 1.2.11. added additional info to both the readme and the logging if a domain address fails validation hoping this will help others in the future. As for missing zones, the is a known issue since Apple IOS 15.4.1. zones may appear with long press (press and hold). IOS 15.5 released today does not appear to have fixed this.

valiquette commented 2 years ago

As a work around to this current bug, you may can uncheck show as irrigation in the plugin config. You may have to remove and re add the device in IOS. If you can see all the zones in IOS you can group as a single tile.