New widgets: media source select, climate operation mode select and media player with volume slider

How did you get the cover art to display in HAdashboard?

theres awhole nother thread that shows how i get mine Need help with appending entity_picture url attribute to ha url

it states is playing. the media title says the station

media_title: 104.3 104.3 Jams Chicago, IL

btw these are connected to my tvs too so sometimes source is tv

Look at the camera widget settings as mentioned in the documentation: https://appdaemon.readthedocs.io/en/latest/DASHBOARD_CREATION.html#camera

As url enter the url of the entity_picture of your media_player

If you need help than post a screnshot of your media_player-entity like it is displayed in HA.

Dont waste too much of your time. I really appreciate it, i like the look with the volume and was hoping for grouping but no biggie. I spent a lot of my time and pestering @ReneTode to get mine setup. I could never be happy with my dashboards until I got them like this, been in use for over a month with no issues.

you didnt bother me :wink:
i just pressed you to go on untill you found something you would love :wink:

No problem. I found it interesting to know. I think that the radio list that you have is basically a playlist and the way to change the radio station is done by the service media_player.play_media and not with the service media_player.select_source.

I can not simulate the behaviour since i do not have playlist in my media_player an my radio stations are choosen via favorites.

@ReneTode I know i liked it :slight_smile: I just gotta give credit whenever possible

@gcosta74 thanks I appreciate you trying to help figure it out.

If you look at source_list that is all of my favorites that can be called from HA. radio is played by tunein and i store the startions I listen to in favorites and then they show up in ha. to call that station or playlist i use

rapcaviar:
  alias: "RapCaviar"
  sequence:
    - service: media_player.sonos_join
      data:
        master: media_player.basement
      entity_id:
        - media_player.basement
        - media_player.bedroom
        - media_player.living_room
    - service: media_player.volume_set
      data:
        entity_id:
          - media_player.basement
          - media_player.bedroom
          - media_player.living_room
        volume_level: "0.4"
    - service: media_player.select_source
      data_template:
        entity_id:
          - media_player.basement
          - media_player.bedroom
          - media_player.living_room
        source: 'RapCaviar'
1 Like

I get a
Unable to find widget type ‘media_with_volume’

any suggestions?

Have you downloaded all the files and put them inside the subfolder custom_widgets ?

Thanks for replying!

The custom_widgets folder is in the config folder. It contains the downloaded files.
image

Still getting the Unable to find widget type ‘media_with_volume’

Har uninstalled and reinstalled AppDaemon2 several times and I am pretty sure it is from the right repo.

Greatfull for help on this one.

wrong config directory.
you need to use the config directory from appdaemon, where alse the file appdaemon.yaml is.

Thanks, @ReneTode. I actually go it in that folder as well. Dosn`t make any difference. Same result:

Thus is from my dash.dash firle:

your_speaker:
widget_type: media_with_volume
title: Anlegg
title2:
entity: media_player.reciever_stue
icon_on: mdi-speaker
icon_off: mdi-speaker-off
step: 3

your_media_select:
widget_type: media_select
entity: media_player.your_media_player
title: Musikk
title2: Your Subtitle

so you got all files?
configdir/custom_widgets/base_media_with_volume/base_media_with_volume.js
configdir/custom_widgets/base_media_with_volume/base_media_with_volume.html
configdir/custom_widgets/base_media_with_volume/base_media_with_volume.css
configdir/custom_widgets/media_with_volume.yaml

and appdaemon has rights there?

Yep, and just went from bad to worse. Getting an:

2018-02-03 18:44:14.224380 WARNING ------------------------------------------------------------
2018-02-03 18:44:14.225779 INFO function [get_dashboard] finished in 1524 ms
Error handling request
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/aiohttp/web_protocol.py”, line 410, in start
resp = yield from self._request_handler(request)
File “/usr/lib/python3.6/site-packages/aiohttp/web.py”, line 325, in _handle
resp = yield from handler(request)
File “/usr/lib/python3.6/site-packages/aiohttp/web_middlewares.py”, line 93, in impl
return (yield from handler(request))
File “/usr/lib/python3.6/asyncio/coroutines.py”, line 213, in coro
res = yield from res
File “/usr/lib/python3.6/site-packages/appdaemon/rundash.py”, line 130, in load_dash
return web.Response(text=response, content_type=“text/html”)
File “/usr/lib/python3.6/site-packages/aiohttp/web_response.py”, line 471, in init
type(text))
TypeError: text argument must be str (<class ‘dict’>)

Me and HA=not getting along

that happens most of the time when people change something in their dashboard.
dashboard is yaml, so needs to be exactly from indention.
if you have trouble then start small.
first 1 widget, check if you got it right then add another untill you know that you dont make errors anymore.

1 Like

franck addon puts file in appdaemon, other plugin (from other developer) puts in hadaemon. I suggwst you install only one plugin to avoid confusion

I am running hassio and have installed appdaemon 3. My dashboard is working but wanted to install gcosta74 new widgets. Downloaded all of the files and placed them in the appdaemon folder which is in the confg folder. All I get is Unable to find widget type ‘media_with_volume’ message. I don’t see any error messages coming from appdaemon. His instructions in GitHub are:

Placed the files in the directory /conf/custom_widgets edit variables.yaml in your own or the default skin. the lines to add can be found in here in custom_css/default/variables.yaml.

I don’t understand can’t find a “variables.yaml” file so don’t understand his directions. Also the development docs indicate that all you need to do is put all the files in a directory called CUSTOM_WIDGETS.

SOLVED.

I removed the CUSTOM.CSS file from the download and all worked. The downloaded files (CUSTOM.WIDGETS) are stored in the appdaemon directory all of the downloaded files are untouched except for the removal of the CUSTOM.CSS file that was in the download. I guess I made a mistake by saving the entire download and should have just put the CUSTOM.WIDGETS in my appdaemon directory.