My setup:
Hassio / ResinOS
Supervisor 118
Hardware Pi3B
Add-on: AppDaemon, Node Red. Problem with both.
Issue started this morning. My outside lights turned off fine at 3.40 CET, but during the morning it went wrong.
My log (from AppDaemon though):
2018-07-24 17:32:01.100086 WARNING AppDaemon: ------------------------------------------------------------
2018-07-24 17:48:12.888088 WARNING AppDaemon: ------------------------------------------------------------
2018-07-24 17:48:12.890092 WARNING AppDaemon: Unexpected error in worker for App Hjemme:
2018-07-24 17:48:12.893761 WARNING AppDaemon: Worker Ags: {'name': 'Hjemme', 'id': UUID('f435e8a1-cfcc-46a6-8265-f8dcb3ee4f1a'), 'type': 'attr', 'function': <bound method presence.hjemme of <presence.presence object at 0x746312b0>>, 'attribute': 'state', 'entity': 'device_tracker.samsung_galaxy_s7_edge', 'new_state': 'home', 'old_state': 'not_home', 'kwargs': {'handle': UUID('cf2086b5-a45b-4bb5-989d-510e03f82523')}}
2018-07-24 17:48:12.896426 WARNING AppDaemon: ------------------------------------------------------------
2018-07-24 17:48:12.900825 WARNING AppDaemon: Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/appdaemon/appdaemon.py", line 590, in worker
self.sanitize_state_kwargs(app, args["kwargs"]))
File "/config/appdaemon/apps/presence.py", line 15, in hjemme
self.turn_on("input_boolean.house_mode")
File "/usr/lib/python3.6/site-packages/appdaemon/plugins/hass/hassapi.py", line 22, in func_wrapper
return func(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/appdaemon/plugins/hass/hassapi.py", line 330, in turn_on
self.call_service("homeassistant/turn_on", **rargs)
File "/usr/lib/python3.6/site-packages/appdaemon/plugins/hass/hassapi.py", line 22, in func_wrapper
return func(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/appdaemon/plugins/hass/hassapi.py", line 457, in call_service
r.raise_for_status()
File "/usr/lib/python3.6/site-packages/requests/models.py", line 939, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: http://hassio/homeassistant/api/services/homeassistant/turn_on
2018-07-24 17:48:12.902024 WARNING AppDaemon: -------------------------------------
I get constant: "Login attempt failed
Login attempt or request with invalid authentication from 172.30.32.2"