Connection issue with HA and AppDaemon

Moving from hass.io to straight Home Assistant as it offers more flexibility. Still new, so this might be a newb question, apologies in advance.

I have setup AppDaemon version 3.0.1. Created a test python app and placed in my /home/homeassistant/appdaemon/apps folder and added the apps.yaml file.

Here is my /home/homeassistant/appdaemon/appdaemon.yaml file:

log:
accessfile: /home/homeassistant/appdaemon/logs/access.log
errorfile: /home/homeassistant/appdaemon/logs/error.log
logfile: /home/homeassistant/appdaemon/logs/appdaemon.log
log_generations: 3
log_size: 1000000
appdaemon:
threads: 10
#api_port: 5000
#api_key: ************
#api_ssl_certificate: /home/homeassistant/dehydrated/certs/pharta.duckdns.org/fullchain.pem
#api_ssl_key: /home/homeassistant/dehydrated/certs/pharta.duckdns.org/privkey.pem
latitude: 35.******
longitude: -86.******
elevation: *******
time_zone: America/*******
plugins:
HASS:
type: hass
#ha_url: https://127.0.0.1:8123
#ha_url: http://hassio/homeassistant
ha_url: https://******.duckdns.org:8123
ha_key: ‘’ #Also tried by using my API key here from Home Assistant
cert_path: False

In my /home/homeassistant/appdaemon/logs/appdaemon.log file, appears to be a connection issue.

2018-08-11 11:24:04.632734 DEBUG AppDaemon: Event type:ha_disconnected:
2018-08-11 11:24:04.633839 DEBUG AppDaemon: {}
2018-08-11 11:24:04.634637 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds
2018-08-11 11:24:04.635319 WARNING AppDaemon: HASS: ------------------------------------------------------------
2018-08-11 11:24:04.636016 WARNING AppDaemon: HASS: Unexpected error:
2018-08-11 11:24:04.636710 WARNING AppDaemon: HASS: ------------------------------------------------------------
2018-08-11 11:24:04.642694 WARNING AppDaemon: HASS: Traceback (most recent call last):
File “/srv/appdaemon/lib/python3.5/site-packages/appdaemon/plugins/hass/hassplugin.py”, line 194, in get_updates
“{}/api/websocket”.format(url), sslopt=sslopt
File “/srv/appdaemon/lib/python3.5/site-packages/websocket/_core.py”, line 494, in create_connection
websock.connect(url, **options)
File “/srv/appdaemon/lib/python3.5/site-packages/websocket/_core.py”, line 217, in connect
options.pop(‘socket’, None))
File “/srv/appdaemon/lib/python3.5/site-packages/websocket/_http.py”, line 120, in connect
sock = _open_socket(addrinfo_list, options.sockopt, options.timeout)
File “/srv/appdaemon/lib/python3.5/site-packages/websocket/_http.py”, line 186, in _open_socket
raise error
File “/srv/appdaemon/lib/python3.5/site-packages/websocket/_http.py”, line 170, in _open_socket
sock.connect(address)
TimeoutError: [Errno 110] Connection timed out

I am able to hit my URL: https://***.duckdns.org:8123 just fine.

Any ideas on what I am doing wrong? THanks so much!

Did you try the below?

ha_url: http://127.0.0.1:8123 # http instead of https
ha_key: # the key you use to access home assistant

first i have to ask you to present code, yaml and logs as codeblocks as mentioned on top of the forum.
without that it is very hard to see what might be wrong.

second i need to ask if you did install the most recent version from HA and if so, if you use the new user/password authentication.
if so then you need to change to the "old"way because AD doesnt support the new version yet.

third the ha_url that you need to use in the yaml must be an url that you use in a browser to get to HA and the key is the password that you need to fill in when you open the HA page.
it needs to be an http address and not https if you only can use an https address then you need to use certification.

i got a proxy server in front of my HA so i can reach my HA with the local IP address. but if you did set certification and duckdns inside HA that is not possible.

if i am not mistaken that is why the options

      cert_path: <path/to/root/CA/cert>
      cert_verify: True

are created.

if you cant get it to work then please post your appdaemon.log from the start and tell us more about your setup.