Hello everyone, a new guy to AppDaemon here, and very excited to start using it looking at the possibilities it offers.
I just installed following the Readme (using pip3) and when running the daemon manually I get an error:
2016-12-10 12:23:43.213919 INFO AppDaemon Version 1.3.6 starting
2016-12-10 12:23:44.537659 WARNING ------------------------------------------------------------
2016-12-10 12:23:44.540546 WARNING Unexpected error:
2016-12-10 12:23:44.543361 WARNING ------------------------------------------------------------
2016-12-10 12:23:44.573171 WARNING Traceback (most recent call last):
File “/usr/local/lib/python3.4/dist-packages/appdaemon/appdaemon.py”, line 763, in run get_ha_state()
File “/usr/local/lib/python3.4/dist-packages/appdaemon/appdaemon.py”, line 726, in get_ha_state states = ha.get_ha_state()
File “/usr/local/lib/python3.4/dist-packages/appdaemon/homeassistant.py”, line 166, in get_ha_state return r.json()
File “/usr/local/lib/python3.4/dist-packages/requests/models.py”, line 850, in json return complexjson.loads(self.text, **kwargs)
File “/usr/lib/python3.4/json/init.py”, line 318, in loads return _default_decoder.decode(s)
File “/usr/lib/python3.4/json/decoder.py”, line 343, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File “/usr/lib/python3.4/json/decoder.py”, line 361, in raw_decode raise ValueError(errmsg(“Expecting value”, s, err.value)) from None
ValueError: Expecting value: line 1 column 1 (char 0)
2016-12-10 12:23:44.577585 WARNING ------------------------------------------------------------
2016-12-10 12:23:44.580293 WARNING Not connected to Home Assistant, retrying in 5 seconds
I’m currently using HA (0.34.4) through SSL using a cert signed with Let’s Encrypt, I’m not sure if the problem may be there. I tried adding both the CA cert (a fullchain.pem: combination of server, root and intermediate certificates) and the private key (a privkey.pem) but none of them work and throw an error.
So, is it needed to add any of those certs or is the cert_path referring to something else? If I need to add them, what I’m doing wrong? And, finally, if that’s not the problem, what could be?
Thank you very much in advance!