I'm having a strange problem with Homebridge/MakerAPI. The homebridge is not receiving POST events because it's setting it's own POST url incorrectly. The IP address it uses is correct, but it sets the port incorrectly. The end effect is that changes which aren't made in homekit aren't reflected in homekit.
I turned on all logging to find this problem, and I see this:
Homebridge Logs:
[Hubitat (C7-MakerAPI) hhm:0.4.15] Setting MakerAPI post URL to http://172.16.0.25:20011/event at http://172.16.0.5/apps/api/15/
[Hubitat (C7-MakerAPI) hhm:0.4.15] homebridge-hubitat-makerapi server listening on 20011
[Hubitat (C7-MakerAPI) hhm:0.4.15] MakerAPI postURL successfully activated
Hubitat MakerAPI Instance Logs:
app:15 debug url=http://172.16.0.25:20010/event
app:15 debug setPostURL called
The MakerAPI instance is setting the Post URL incorrectly, off by one. In this case the homebridge plugin started it's server on 20011 and asked the server to set the post URL to 20010. I'm a bit flabbergasted by the whole situation. Any suggestions or advice appreciated.
When homebridge-maker-api starts up, it fires an api call to http://<hubitat.local.address>/apps/api/14/postURL/[URL] which automatically configures the post back. That's what I take the "MakerAPI postURL successfully activated" log message to mean.
On the MakerAPI side, setPostURL called is the message indicating that hubitat-side endpoint has been hit, and url=http://... is the url that it received.
The problem I'm trying to illustrate here is that the nodejs plugin is automatically (and repeatedly) attempting to configure the server to hit port 20011 but the makerAPI is actually configuring it for 20010. This is where the mismatch is coming from.
That's the only URL in the config and that number at the end (258) must match the MakerAPI instance. Verify that you're copying the URL from MakerAPI correctly
This seems to have broken on me with a recent update. I have several instances of homebridge running and all the ones that use this plug-in are crashing to the point that the interface won’t load. I’m running the oznu homebridge docker image.
I’m getting the following error and the web interface won’t load:
npm WARN Could not resolve dependency:
npm WARN peer eslint@"^6.0.0 || ^7.0.0 || ^8.0.0" from @typescript-eslint/eslint-plugin@5.28.0
npm WARN node_modules/.pnpm/homebridge-config-ui-x@4.47.0/node_modules/homebridge-config-ui-x/node_modules/@typescript-eslint/eslint-plugin
npm WARN dev @typescript-eslint/eslint-plugin@"^5.18.0" from homebridge-config-ui-x@4.47.0
npm WARN node_modules/.pnpm/homebridge-config-ui-x@4.47.0/node_modules/homebridge-config-ui-x
npm WARN ERESOLVE overriding peer dependency
My philosophy has been that unless there's a new must-have homebridge or homebridge-ui-x feature, I leave them alone. My homebridge installation is on version 1.2.5, and homebridge-ui-x is at 4.4.3.