I just want to show individual buttons for my amplifiers for volume up and down (2 buttons) / power on off (one button). They are classed as media_player in HA but just want to use the + - and power on off options rather than have the full card
you could create an input slider and an automation that sets the volume based on the slider and then add the slider to the dashboard.
same for power, create an input boolean or template switch for that.
This widget will toggle the play/pause for your media player. You should be able to figure out how to adjust the volume from this also by using the services media_player/volume_up and media_player/volume_down instead of media_play_pause. Use media_player/toggle as service to switch on/off. For the volume though, I think an input slider as per Reneās suggestions would be more handy to control.
using the build in functions at the command line. wow never thought of that.
i guess the dashboard is already more flexible then i did think off.
thanks for pointing that out to me.
and indeed service call widget was already on my list from things that are needed.
but pointing this out to me makes me think that it only needs a yaml file.
Thanks for the input and suggestions.
The slider is the best idea, however on of my older Sony amps using the broadlink media player (IR) so Iām not sure I could use the slider for that?.. there will be no status as such being IR.
When you both mention the command line option, i donāt think Iāve used this in the past with the dashboard, could you eloborate?
My goal is to have Plex in a iframe (which is working well, using chrome), when using Plex on chrome even via the iframe in the dashboard you can cast to devices which works well for my needs. So under the iframe I want my basic control for onkyo zones 1-3 my Sony receiver (IR only), plus a couple of older amps one a car amp switched on via relays in the loft for music in bedrooms and bathroom. So again simple enough on off for these as they will be set ambient levels Iāve no need for volume.
Whole house audio I just cast to a group via Plex. Which in turn I will have a button whole house audio on/off input Boolean.
Just need it all to look simple and keep the wife happy.
Check out vxg media player too, works well in a iframe for real time rtsp streams.
In the javascript widget that I suggested that you could use for your switches, I made calls to internal widget functions like the call_service() function. Rene only pointed out that he hadnāt considered that this was possible. By using the javascript widget as a switch, you can basically implement any functionality you need.
broadlink media player?
you mean you use a broadlink to create switches? or is there a custom component?
if you have a broadlink then you normally got 2 switches for the volume up and down.
in that case you can use 2 switches on the dashboard also.
Iām not sure to be honest, Iām only using it on a windows machine with chrome which runs my 26ā touch wall panel with Hadashboard on. I assume it will do or at least on chrome for iOS.
And canāt try it on my mobile at the minute as itās running via the mongoose web server on said machine and canāt acces on the normal lan due to its on local addressing.
Yes thereās a custom component available works really well.
If it was just broadlink switched, I could do what Iām trying. Just donāt know enough about programming. The media player sub entities such as vol channel/input etc donāt seem to have there own sub entities, which is why Iām struggling I suppose.
do you have the normal broadlink component setup in HA?
and can you show me how that mediaplayer is setup in HA, and/or a link to where the component is?
yea i sort of do that for the other IR devices, however the onkyo is controlled over IP rather than IR. The Sony AMP is controlled via the IR broadlink Media_player. I have a ESP-01 attached to the amp, which in turn the custom component pings, so i know the status of the power.
Iāll have a play about, its probably more the onkyo as im using the native component, so extracting the vol up down into a button needs doing. Theres probably some sort of script/boolean i can do within HA, but need to get my head round it more.