Just came across this tread as well, and I have now added your app from Github in Appdaemon. Unfortunately I have not been able to get this working so far. This is the log from Appdaemon. Any idea of what is wrong?
[22:03:12] INFO: Starting AppDaemon...
2019-06-02 22:03:22.162682 INFO AppDaemon Version 3.0.5 starting
2019-06-02 22:03:22.163473 INFO Configuration read from: /config/appdaemon/appdaemon.yaml
2019-06-02 22:03:22.167909 INFO AppDaemon: Starting Apps
2019-06-02 22:03:22.188468 INFO AppDaemon: Loading Plugin HASS using class HassPlugin from module hassplugin
2019-06-02 22:03:23.057717 INFO AppDaemon: HASS: HASS Plugin Initializing
2019-06-02 22:03:23.059071 INFO AppDaemon: HASS: HASS Plugin initialization complete
2019-06-02 22:03:23.060468 INFO Starting Dashboards
2019-06-02 22:03:23.084990 INFO API is disabled
2019-06-02 22:03:23.109139 INFO AppDaemon: HASS: Connected to Home Assistant 0.93.2
2019-06-02 22:03:23.698777 INFO AppDaemon: Got initial state from namespace default
2019-06-02 22:03:25.210243 INFO AppDaemon: Reading config
2019-06-02 22:03:25.225741 INFO AppDaemon: /config/appdaemon/apps/apps.yaml added or modified
2019-06-02 22:03:25.226431 INFO AppDaemon: /config/appdaemon/apps/apps.yaml added or modified
2019-06-02 22:03:25.227127 INFO AppDaemon: App 'tv_lights_sync' added
2019-06-02 22:03:25.228281 INFO AppDaemon: Adding /config/appdaemon/apps to module import path
2019-06-02 22:03:25.229970 INFO AppDaemon: Loading App Module: /config/appdaemon/apps/tv_lights_sync.py
2019-06-02 22:03:25.233144 WARNING AppDaemon: ------------------------------------------------------------
2019-06-02 22:03:25.233900 WARNING AppDaemon: Unexpected error loading module: /config/appdaemon/apps/tv_lights_sync.py:
2019-06-02 22:03:25.234581 WARNING AppDaemon: ------------------------------------------------------------
2019-06-02 22:03:25.240876 WARNING AppDaemon: Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/appdaemon/appdaemon.py", line 2026, in check_app_updates
self.read_app(mod["name"], mod["reload"])
File "/usr/local/lib/python3.7/site-packages/appdaemon/appdaemon.py", line 1809, in read_app
self.modules[module_name] = importlib.import_module(module_name)
File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 724, in exec_module
File "<frozen importlib._bootstrap_external>", line 860, in get_code
File "<frozen importlib._bootstrap_external>", line 791, in source_to_code
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/config/appdaemon/apps/tv_lights_sync.py", line 7
<!DOCTYPE html>
^
SyntaxError: invalid syntax
2019-06-02 22:03:25.241582 WARNING AppDaemon: ------------------------------------------------------------
2019-06-02 22:03:25.242603 WARNING AppDaemon: Removing associated apps:
2019-06-02 22:03:25.243927 WARNING AppDaemon: tv_lights_sync
2019-06-02 22:03:25.246722 INFO AppDaemon: App initialization complete
2019-06-02 22:04:45.921106 INFO AppDaemon: Reading config
2019-06-02 22:04:45.941962 INFO AppDaemon: /config/appdaemon/apps/apps.yaml added or modified
2019-06-02 22:04:45.942603 INFO AppDaemon: App 'tv_lights_sync' changed
2019-06-02 22:04:45.944269 INFO AppDaemon: Terminating tv_lights_sync
2019-06-02 22:04:45.945180 INFO AppDaemon: Initializing app tv_lights_sync using class tv_lights_sync from module tv_lights_sync
2019-06-02 22:04:45.947996 WARNING AppDaemon: ------------------------------------------------------------
2019-06-02 22:04:45.948657 WARNING AppDaemon: Unexpected error initializing app: tv_lights_sync:
2019-06-02 22:04:45.949194 WARNING AppDaemon: ------------------------------------------------------------
2019-06-02 22:04:45.950687 WARNING AppDaemon: Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/appdaemon/appdaemon.py", line 2051, in check_app_updates
self.init_object(app)
File "/usr/local/lib/python3.7/site-packages/appdaemon/appdaemon.py", line 1567, in init_object
modname = __import__(app_args["module"])
File "/config/appdaemon/apps/tv_lights_sync.py", line 7
<!DOCTYPE html>
^
SyntaxError: invalid syntax
2019-06-02 22:04:45.951263 WARNING AppDaemon: ------------------------------------------------------------
This is my settings in apps.yaml:
Not sure if I did the photo_attribute right.
tv_lights_sync:
module: tv_lights_sync
class: tv_lights_sync
ha_url: http://hassio/homeassistant
media_player: media_player.chromecast
photo_attribute: '{{ states.media_player.chromecast.attributes.entity_picture }}'
condition:
entity: input_boolean.sync_tv_lights
state: 'on'
lights:
- light.livingroom