Hey guys,
So I’m trying to get my Octoprint instance connected up to Home Assistant. In octoprint I have the API turned on with CORS turned off.
Here is my entry in my config file:
octoprint:
- host: http://killinhassio.duckdns.org
port: !secret octoprint_port
api_key: !secret octoprint_API_key
name: Prusa MK3
sensors:
monitored_conditions:
- 'Current State'
- 'Temperatures'
- 'Job Percentage'
- 'Time Elapsed'
- 'Time Remaining'
I have tried coping and pasting the URL out of host and adding the Port that I have in my secrets file to the end and I can pull up my octoprint instance, so I know that information is right and I’ve triple checked my API Key.
The error message that I see in my hassio log is
Endpoint: printer Failed to update OctoPrint status. Error: HTTPConnectionPool(host='http', port=80): Max retries exceeded with url: //killinhassio.duckdns.org:{portremoved}/api/printer (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x707db950>: Failed to establish a new connection: [Errno -2] Name does not resolve'))
The error message makes me think DNS or host URL issue, but again, I can copy and past that URL out of my config file and it hits my home network. Not sure what is going on and any help would be appreciated.