Just ran an upgrade process for appdaemon (not sure which version i was running before) and everything broke down. First an error about a missing apps.yaml. Figured out i had to move all my apps to it? So it looks like this
kodi select:
module: kodi
class: DynamicKodiInputSelect
KodiYoutube:
module: youtube_search
class: YoutubeSearch
input_select: input_select.kitchen_youtube_videos
input_text: input_text.kitchen_youtube
media_player: media_player.kodi_kitchen
youtube_key: HereWasTheKey
And nothing works. Was trying the KodiYoutube (code from here Rule for searching youtube (KODI)) When i try the youtube search i get the following error now
2018-01-27 17:48:22.563512 WARNING ------------------------------------------------------------
2018-01-27 17:48:22.564532 WARNING Unexpected error in worker for App KodiYoutube:
2018-01-27 17:48:22.565335 WARNING Worker Ags: {'entity': 'input_text.kitchen_youtube', 'id': UUID('HEREWASKEY'), 'function': <bound method YoutubeSearch.new_youtube_query of <youtube_search.YoutubeSearch object at 0x75a4eeb0>>, 'attribute': 'state', 'kwargs': {}, 'type': 'attr', 'name': 'KodiYoutube', 'old_state': '', 'new_state': 'АН-24'}
2018-01-27 17:48:22.565987 WARNING ------------------------------------------------------------
2018-01-27 17:48:22.569731 WARNING Traceback (most recent call last):
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/appdaemon/appdaemon.py", line 512, in worker
utils.sanitize_state_kwargs(args["kwargs"]))
File "/home/homeassistant/.homeassistant/appdaemon/apps/youtube_search.py", line 83, in new_youtube_query
options=[DEFAULT_ACTION] + labels)
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/appdaemon/appapi.py", line 20, in func_wrapper
return(func(*args, **kwargs))
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/appdaemon/appapi.py", line 513, in call_service
return utils.call_service(service, **kwargs)
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/appdaemon/utils.py", line 425, in call_service
r.raise_for_status()
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/requests/models.py", line 935, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: https://www.MYURL:8123/api/services/input_select/set_options
2018-01-27 17:48:22.570597 WARNING ------------------------------------------------------------
Although in the appdaemon.log i can clearly see the youtube was queried and results returned
2018-01-27 18:53:26.986162 INFO youtube_search: New youtube query with “test”
2018-01-27 18:53:27.399491 INFO youtube_search: YOUTUBE QUERY FOUND:
[(‘tpLLst4-3fw’, ‘7 Riddles That Will Test Your Brain Power’)
and many lines more’]
2018-01-27 18:53:27.641943 WARNING Logged an error to /var/log/appdaemon_error.log