Cannot connect to 3D printer with Octoprint

Hello,

I need help getting my 3D printer integrated with Home assistant.

This is my configuration in configuration.yaml:
‘’’
octoprint:
host: BROKER IP (RASPBERRY)
api_key: OCTOPRINT API (SAME API THAT I HAVE IN OCTOPRINT SETTINGS UNDER API Key
bed: true
number_of_tools: 1
‘’’

I can access to Octoprint page through OPEN WEB UI link of Octoprint add-on
There I downloaded mqtt plug-in and filled out all the settings of the broker.

When I try to connect, I can choose just AUTO or VIRTUAL in Serial Port and I get this message in the terminal:
‘’’
“Changing monitoring state from “Offline” to “Detecting serial port”
Serial port list: [‘VIRTUAL’]
Connecting to: VIRTUAL
Changing monitoring state from “Detecting serial port” to “Error: Connection error, see Terminal tab”
Unexpected error while connecting to serial port: AUTO SerialException: ‘[Errno 2] could not open port VIRTUAL: [Errno 2] No such file or directory: ‘VIRTUAL’’ @ comm.py:_openSerial:2308 (hook default)”
‘’’

I tried to connect arduino’s USB to all the 4 USB ports of Raspberry with the same result.

Can somebody help me?

Thank you

What is this “broker” ? You should be putting the IP of Octoprint.

I had Raspberry’s IP (192.168.1.10). Now I tried OCTOPRINT’S IP (192.168.1.10:5000)

But I have the same problem

What is the error message in Home Assistant?

In Home Assistant log I have this kind of messages:

Update of sensor.octoprint_actual_bed_temp is taking over 10 seconds

9:40 __main__.py (WARNING) - message first occured at 13 luglio 2019, 20:36 and shows up 60 times

Updating octoprint sensor took longer than the scheduled update interval 0:00:30

9:40 helpers/entity_platform.py (WARNING) - message first occured at 13 luglio 2019, 20:31 and shows up 378 times

Update of binary_sensor.octoprint_printing_error is taking over 10 seconds

9:40 __main__.py (WARNING) - message first occured at 13 luglio 2019, 20:31 and shows up 182 times

Check your home-assistant.log file for errors.

Some of the errors are these:

Endpoint: printer Failed to update OctoPrint status.   Error: Expecting value: line 1 column 1 (char 0)

Endpoint: job Failed to update OctoPrint status.   Error: HTTPConnectionPool(host='http', port=80): Max retries exceeded with url: //192.168.1.10:5000:80/api/job (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7fb37794a8>, 'Connection to http timed out. (connect timeout=9)'))

Setup of platform octoprint is taking over 10 seconds.

Hello, I have not installed the “Octoprint add-on”. I just added these lines in the “configuration.yaml” and it works fine …