Custom port for Octoprint

Hi there,

is there a way to set a custom port for octoprint? https://home-assistant.io/components/octoprint/

Port 80 is already in use with at my raspberry-pi, which runs octoprint…

Best,
Bernd

Are you saying you have your octoprint server running on another port and want home assistant to talk to it on that port?

Octoprint already runs haproxy to forward web traffic (port 80) to the octoprint ui (5xxx something), If octoprint is answering on port 80, why do you need to point HA to a different port?

@w1ll1am23, that’s my point… Any ideas?

The perfect solution for me would be:

octoprint:
  host: YOUR_OCTOPRINT_HOST
  api_key: YOUR_API_KEY
  bed: false
  number_of_tools: 1

something like

port: YOUR_PORT

:wink:

It should be possible to add this. You could just try setting the port in the host portion of the config.

host: 192.168.x.x:1234