Iframe errors

I am currently setting up my HADashboard and would like to use an iframe to embed plex as seen here. But am running into some difficulties and was wondering if someone could help.

The iframe is setup follows:

plexscreen:
  widget_type: iframe
  url_list: http://[InternalIPAddresshere]:32400/web/index.html

(I have also tried to load external websites such as http://www.google.com but get the same error.)

Initially, I was getting 500 Internal Server Error’s. The error log pointed me to create two files h_body.html and h_head.html. These were located in /home/homeassistant/appdaemon/compiled/html/default.

Now I am finding that it is trying to locate a dashboard ‘h’ (Please see error logs below). Any help would be hugely appreciated!

I am running hassbian on a PI3B.

Log is below:

2019-04-26 20:17:39.558996 INFO AppDaemon Version 3.0.4 starting
2019-04-26 20:17:39.559992 INFO Configuration read from: /home/homeassistant/appdaemon/appdaemon.yaml
2019-04-26 20:17:39.566250 INFO AppDaemon: Starting Apps
2019-04-26 20:17:39.568026 WARNING config_dir: /home exists, but is not writeable, owner: root
2019-04-26 20:17:39.576395 INFO AppDaemon: Loading Plugin HASS using class HassPlugin from module hassplugin
2019-04-26 20:17:39.774602 INFO AppDaemon: HASS: HASS Plugin Initializing
2019-04-26 20:17:39.776074 INFO AppDaemon: HASS: HASS Plugin initialization complete
2019-04-26 20:17:39.777356 INFO Starting Dashboards
2019-04-26 20:17:39.780955 WARNING css: /home exists, but is not writeable, owner: root
2019-04-26 20:17:39.783933 WARNING javascript: /home exists, but is not writeable, owner: root
2019-04-26 20:17:39.798550 INFO API is disabled
2019-04-26 20:17:39.996859 INFO AppDaemon: HASS: Connected to Home Assistant 0.91.4
2019-04-26 20:17:40.058511 INFO HADashboard: New dashboard connected: Main Panel
2019-04-26 20:17:40.210834 INFO AppDaemon: Got initial state from namespace default
2019-04-26 20:17:42.113128 INFO AppDaemon: Reading config
2019-04-26 20:17:42.116480 WARNING AppDaemon: File '/home/homeassistant/appdaemon/apps/apps.yaml' invalid structure - ignoring
2019-04-26 20:17:42.121544 INFO AppDaemon: /home/homeassistant/appdaemon/apps/apps.yaml added or modified
2019-04-26 20:17:42.122892 INFO AppDaemon: /home/homeassistant/appdaemon/apps/apps.yaml added or modified
2019-04-26 20:17:42.124387 INFO AppDaemon: Adding /home/homeassistant/appdaemon/apps to module import path
2019-04-26 20:17:42.126097 INFO AppDaemon: Adding /home/homeassistant/appdaemon/apps/dashboards to module import path
2019-04-26 20:17:42.129311 INFO AppDaemon: App initialization complete
2019-04-26 20:17:42.134333 INFO HADashboard: New dashboard connected: Main Panel
2019-04-26 20:17:48.586579 INFO Compiling dashboard 'Home2'
2019-04-26 20:17:50.494715 INFO function [get_dashboard] finished in 1930 ms
2019-04-26 20:17:50.505689 INFO HADashboard: Dashboard disconnected
2019-04-26 20:17:51.265731 INFO HADashboard: New dashboard connected: Main Panel
2019-04-26 20:17:53.423456 INFO Compiling dashboard 'plex'
2019-04-26 20:17:54.510926 INFO function [get_dashboard] finished in 1097 ms
2019-04-26 20:17:54.566758 INFO HADashboard: Dashboard disconnected
2019-04-26 20:17:54.828892 INFO HADashboard: New dashboard connected: Main Panel
2019-04-26 20:17:54.844197 INFO Compiling dashboard 'h'
2019-04-26 20:17:55.359878 WARNING Dashboard 'h' not found
2019-04-26 20:17:55.440362 INFO function [get_dashboard] finished in 606 ms

Please find my appdaemon.yaml below:

log:
  logfile: /home/homeassistant/.homeassistant/dashboards/appdaemon.log
  errorfile: /home/homeassistant/.homeassistant/dashboards/appdaemonerror.log
appdaemon:
  threads: 10
  plugins:
    HASS:
      type: hass
      ha_url: https://[address].ddns.net
      token: [token]
hadashboard:
  dash_url: http://[internal]:5050
  dashboard_dir: /home/homeassistant/.homeassistant/dashboards

The url_list need to be a proper yaml list:

plexscreen:
  widget_type: iframe
  url_list: 
    - http://[InternalIPAddresshere]:32400/web/index.html
1 Like

Tomas. You are an absolute legend! Thank you! :smiley:

1 Like

You are welcome Richard. Please mark this as solved for the benefit of others in the community.

Hi @fastrax
Interested in your Plex setup code?
Did you add Plex and custom components or how did you setup Plex to want to use the iframe?

I am looking to add Plex as next step so very interested in your
Cheers Bruce