@frenck Can correct me, but although the API is in 2.1.12, I don’t believe the hass.io supports it until the appdaemon3 addon.
3.0 is now out of beta, so it’s a good time to upgrade
@frenck Can correct me, but although the API is in 2.1.12, I don’t believe the hass.io supports it until the appdaemon3 addon.
3.0 is now out of beta, so it’s a good time to upgrade
The latest version of the AppDaemon2 add-on for Hass.io contains AppDaemon 2.1.12 and supports the API of AppDaemon.
IT’S WORKING.
After shelving this project for a while out of frustration, I revisited it today and finally figured it out. What I needed to fix:
Changing the api_port to 5050. It seems to be a hass.io limitation that only one open port is supported, as outlined here by @Mark_Boss. I don’t currently use the Dashboard anyway so I disabled it and hijacked port 5050.
Adding {} to the Data/File section of my Tasker task (or if using curl, -d ‘{}’
Switching /appdaemon/api for /api/appdaemon
So the final command that got it working was:
curl -i -X POST -H "Content-Type: application/json" http://myaddress:5050/api/appdaemon/endpointname?api_password=mypassword -d '{}'