Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow event server URL to be configured #80

Closed
jason0x43 opened this issue Oct 23, 2020 · 4 comments
Closed

Allow event server URL to be configured #80

jason0x43 opened this issue Oct 23, 2020 · 4 comments
Labels
enhancement New feature or request

Comments

@jason0x43
Copy link
Owner

Currently the event server port can be manually set. There are also setups where it would be useful to manually set the event server port, such as when HA is running in a VM that isn't bridged to the same network that Hubitat is on.

@ryanmellish
Copy link
Contributor

Thanks for this! It seems the 'Event server port' assigned in HA isn't making it to the 'URL to send device events to by POST' in Maker API. The server URL is working fine. Please let me know if I can assist in testing or add any other info.

2020-11-13 23:42:06 DEBUG (MainThread) [custom_components.hubitat.device] Handling options update... 2020-11-13 23:42:06 DEBUG (MainThread) [custom_components.hubitat.device] Setting event listener port to 8124 2020-11-13 23:42:06 DEBUG (MainThread) [hubitatmaker.hub] Listening on 172.17.0.2:8124 2020-11-13 23:42:06 INFO (MainThread) [hubitatmaker.hub] Setting event update URL to http%3A%2F%2F192.168.10.2%3A8124 2020-11-13 23:42:08 DEBUG (MainThread) [custom_components.hubitat.device] Set event server port to 8124 2020-11-13 23:42:08 DEBUG (MainThread) [custom_components.hubitat.device] Setting event server URL to http://192.168.10.2 2020-11-13 23:42:08 INFO (MainThread) [hubitatmaker.hub] Setting event update URL to http%3A%2F%2F192.168.10.2 2020-11-13 23:42:13 DEBUG (MainThread) [custom_components.hubitat.device] Set event server URL to http://192.168.10.2

@jason0x43
Copy link
Owner Author

If you set the event server URL, you'll need to include the port as well (e.g., http://192.168.10.2:8124).

@ryanmellish
Copy link
Contributor

If you set the event server URL, you'll need to include the port as well (e.g., http://192.168.10.2:8124).

Thanks, didn't realize the port was needed in both fields. I'm all set!

@jason0x43
Copy link
Owner Author

It's really only needed in one. If you provide the port, HA will use the URL default_schema://default_host:your_port. If you provide the URL, HA will use that URL, as is, and ignore the custom port.

Hmmm...I could make that a bit more clear. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants