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.
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
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.