Is there a way to consolidate the networking information into the header (just to tidy this up)?
As this is a list of sources is there a better way to prevent the information than a set of on/off switches because only one of these can be selected at any one time.
As for the volume, this is going to be a bit more complex as I would like two communication to have a slider in lovelace.
From what I have read I’ll need to setup templating to extract the part I am interested in, which is ‘Volume’. To date, I’m not sure how to do this part or where to implement it.
I assume that once I’m able to extract that information I can advance with creating a volume slider.
(also I want the volume number so I can display this on my TV via notifications).
Could someone help get the ball rolling and I’ll tackle the interfacing with the volume after this.
Create a shell command for each option (instead of switches).
Create an input select that lists the available sources.
Create an automation that calls the appropriate shell command when the input select is changed.
You have a method to retrieve the current volume but you have not indicated you have a method to set the volume. Both would be required to create a volume slider.
From my understanding, a shell is a script with a reference (eg. ‘218cd’ as a reference using the example above). thus allowing me to call on that reference within other scripts.
As for volume commands, I have 2 different ways for control. Either an incremental increase or decrease using ‘VP’ or ‘VM’ from the code above or I can access a number from 1 -99 with ‘SVN 45’ (45 being the example volume level).
All of this control is transmitted using RAW TCP packets as per the manufacturers API document.
I’m starting to make some progress, thank you! Once I have this put together I’ll share my code for others.
I am really struggling with Templating. All documentation I have read describes extracting value from the attributes of a sensor. the problem is the feedback from my sensor is placed into the state.
‘refused to provide’ is such a harsh way of explaining that, nickrout. I said there wasn’t a link, it’s a PDF I have saved on my local disk. Not sure I can upload attachments.