Hey, just getting started with openhab and trying to get my head wrapped around programming again after several years away from it. Anyway have a project in mind but am having a hard time finding good documentation or examples on certain elements. At this point just trying to get a bit of an example framework put together to show a friend what it will do for controlling his video switching at a sports grill.
Right now he is mainly DirecTV tuners on seperate TVs and 2 projectors, which is all well and good till he found out that DTV doesn’t have PAC12 network. The system worked fine running the DTV app for changing channels on each TV. Now to get PAC12 he got service with the local cable company that carries it, and the only way to get that channel on the system is a hacked together diplex a single cable channel on the same coax as DTV, then tune the TV to chan 3. Which is not simple for waitresses to figure out.
So I’m planning on putting a matrix switcher in that will give a little more functionality and allow expansion in the future. Controlling the matrix switcher through serial seems pretty straight forward, and the DTV tuners have a well documented IP command structure. But I’m having issue with getting my interface together how I want.
What I would like to do is have a frame/group with a separate selection item for each DTV tuner that has a dropdown with the most used channels programmed in. Got that figured out, but then I want another frame/group that has each TV in the system with a dropdown to select what tuner to display on it, except I want the mappings to dynamically update with what channel each tuner is set on, for example right now I have:
Selection item=tuner_1 label=“DTV Tuner 1” icon=television mappings=[0=“CBS Sports”, 1=“FOX Sports1”, …etc]
Selection item=tuner_2 label=“DTV Tuner 2” icon=television mappings=[0=“CBS Sports”, 1=“FOX Sports1”, …etc]
which works great, I have a rule set up to send the command to change channel when a new station is selected, no problem. But what I can’t figure out is how to take the text of the current selected mapping for tuner_1 through tuner_8 and populate the mappings for the TVs so you don’t have to go back to a different screen and see what tuner is on what station. for example…
Selection item=Bar_TV1 label=“Bar TV 1” mappings=[tuner_1.text???, tuner_2, tuner_3…]
this is where I’m lost. What am I missing?
Also it would be nice to build an array for the channel to station name mapping to make it easier for adding/changing channels in the future
Thanks in advance
-Greg