I can’t integrate Octoprint in Hassio. This is my setup:
- Hassio in a raspberry
- Octoprint in an other raspberry but with installation under raspbian. In this raspberry there are also PiHole, Unifi Controller and motionEye. Due to port conflict among the programs Octoprint is installed to be reachable at port 5000.
This is config.yaml:
octoprint:
host: 192.168.10.3
api_key: #################
name: Ender3 pro
bed: true
number_of_tools: 1
This is the error in log:
Logger: homeassistant.setup
Source: components/octoprint/__init__.py:241
First occurred: 8:50:36 (1 occurrences)
Last logged: 8:50:36
Error during setup of component octoprint
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 213, in _async_setup_component
result = await task
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/octoprint/__init__.py", line 158, in setup
octoprint_api.get("printer")
File "/usr/src/homeassistant/homeassistant/components/octoprint/__init__.py", line 241, in get
self.printer_last_reading[0] = response.json()
File "/usr/local/lib/python3.8/site-packages/requests/models.py", line 900, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/local/lib/python3.8/site-packages/simplejson/__init__.py", line 525, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.8/site-packages/simplejson/decoder.py", line 370, in decode
obj, end = self.raw_decode(s)
File "/usr/local/lib/python3.8/site-packages/simplejson/decoder.py", line 400, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
simplejson.errors.JSONDecodeError: Expecting value: line 2 column 5 (char 5)
I think the problem is that HASSIO look for Octoprint at the default port 80, but at that port there is PiHole.
How can i fix this?
Thanks in advance