TV HDMI Input Question


#1

1) Give a description of the problem
Need to turn the TV back to the TV channel it was on

2) What is the expected behaviour?
Changes the TV input back to the TV channel

3) What is happening/not happening?
Nothing yet

**4)

5) Attach logs after turning logging level to Full
(PASTE YOUR LOGS HERE THEN HIGHLIGHT ALL OF THE LOGS AND CLICK ON THE </> ICON TO FORMAT THEM CORRECTLY)

HI, the piston changes the TV input to HDMI2 and shows a feed from the outdoor security cameras
works ace… no problem

The issue is how can the TV input be changed back to the TV channel the TV was on before it was turned over to HDMI2

I have tried lots of things, just can’t get it to change back (unless this can’t be done!")
The last thing I tried was ‘setTVChannel():’ that’s the only reason it’s still in the piston

Any help would be greatly appreciated

Thanks


#2

If changing the source to HDMI2 switched to your cameras, then perhaps a similar command will switch sources back to TV.

(maybe setInputSource to HDMI1 or HDMI3?)


#3

Thanks for your reply

Unfortunately, there is no TV channel on HDMI1or3

If the input list is brought up on the TV it has

TV - HDMI1 - HDMI2 - HDMI3 so, in essence, the TV is playing a TV channel then swaps over to HDMI2 hopefully for 7 seconds or so, then automatically changes back to the TV again, just can’t see the command in WC (unless there isn’t one?)


#4

So can’t you change the input back to ‘TV’? Seems like that would change the input source b ack to what you want and it should still be on whatever channel was previously being viewed.


#5

I am not fluent in WC, most of my pistons have been gleaned/or helped via this forum

what would the command be for ‘TV’?
something like this?

image

or this?

image

Neither of them turns the TV back


#6

Sorry, If the name of the input is ‘TV’, I thought the second option would have worked. Not knowing what TV you are using or anything about it, it is hard to diagnose. So are you using OTA? is the input perhaps ‘Antenna’? Maybe the owner manual has information on the input names?


#7

TV model number is UE49NU7300

Just a 49" Samsung LED TV

You are dead right though - the input is labelled ‘TV’ - just can’t active it

as I mentioned to WCmore earlier, there are only 4 inputs - TV - HDMI1 - HDMI2 - HDMI3

I thought it would be just as simple as knowing the correct WebCore parameter

You got me to look again and found this…

image

But nope, it just won’t change the TV back


#8

The emphasis should be 100% on changing the source.
(IE: forget about changing the TV channel for now)

Maybe try:
setInputSource to HDMI4
(even though your TV does not list #4)


Note: if HDMI4 fails, I would also try 1 & 3… I have seen TVs where HDMI1 also works as a TV source.


#9

Great thinking - just tested it —
I changed the piston to go from HDMI2 to HDMI1

Contact opens = TV selects HDMI2
7 seconds later = Nothing!

It does not change from HDMI2 to HDMI1 either

Therefore, it acts like once the transition from TV to HDMI2 has been made it stays there

Do you think the piston is at fault?


#10

If it were me, I would try a single, one command piston:

execute
    With Switch 5
    Do
        setInputSource to HDMI4
    END WITH
end execute

No triggers, no waits… Nothing else but the above command.

Then save & press Test

If that fails, edit again, and try another number.


I am suggesting removing everything except the command in question, because after a WAIT, things don’t always go as expected. (this lets you easily focus on just the commands)

You may also find it helpful to set your Log Level to Full


#11

Good call - OK i will try it now

Brilliant - Good idea to take the ‘wait’ away

So now, I have two pistons

  1. DriveGate opens - TV switches to HDMI2
    Waits 7 seconds then calls 2nd piston

  2. Second piston changes HDMI1 over to HDMI2 — (to make sure its working)

Now all I need is the TV channel code

Next going to try you HDMI4 etc and see what happens


#12

Your test can be much simpler.

  • Manually switch sources to HDMI2 (camera)
  • Press Test on new piston (the single command)
  • Edit and try again, if necessary

Note, by the time we are done, the entire process will be back in a single piston.
This step is just testing unfamiliar commands to see what works with your device.


If 4, 1 & 3 all fail, it might be worth manually going to TV source, and then checking out the:
IDE > My Devices > Living Room TV

There is some info there that may help you to ‘guess’ the right command.


#13

Once again, great suggestion - thank you

I will check out the IDE and have a look on line for the Samsung TV commands
I have almost tried everything the TV is showing up - TV - TVplus - DTV - DTV Terrestrial etc


#14

Sounds good.

Before you get to the point of checking the IDE, I would first switch to the normal TV source… Wait two minutes, and then go check out the IDE. I am hoping it displays the internal name for the TV source. (The IDE takes a bit to update)


#15

Can you check the logs for the TV in the IDE and glean anything?


#16

Or when it is on TV, check the value of [TV Device:inputSource]. You might have to play around with it to see what the actual device attribute name is but webcore usually offers suggestions.

NOTE: ‘TV Device’ should be whatever the actual name is for your TV device.


#17

@WCmore @guxdude @Pantheon

All I can say is THANKS!

the answer was in the IDE as suggested — inputSource = digitalTv
The data is in the ‘Events’ list
image

(‘digitalTv’ - who would know that was the input source name?)

Thanks guy’s for all your help, it works like a charm