Zuhair Posted August 10, 2019 Share Posted August 10, 2019 I have EA-5 as the master controller and two EA-1s in the kitchen and living room. I wrote the below script to turn ON the kitchen and living rooms TVs and display the main gate Hikvision camera to both TVs. It's working successfully with the kitchen TV, on the living room TV it just display C4 main menu without switching to the camera. Troubleshooting we did with no luck: Removed the Navigation Agent, rebooted EA-5, reinstalled the agent again. Re-write the script as shown in the next screenshot. Rebooted all controllers. Rebooted the camera and the NVR. Quote Link to comment Share on other sites More sharing options...
msgreenf Posted August 10, 2019 Share Posted August 10, 2019 Why are sending control4 commands to the TV? Sent from my Pixel 3 using Tapatalk Quote Link to comment Share on other sites More sharing options...
Zuhair Posted August 10, 2019 Author Share Posted August 10, 2019 8 hours ago, msgreenf said: Why are sending control4 commands to the TV? Sent from my Pixel 3 using Tapatalk @msgreenf If I don’t send Control4 command to the TV, it won’t wake up if the TV was off. Forgot to mention that both TVs can manually display the camera from the OSD. The screenshot below is how Control4 recommend using this agent. I will add the Snapshot after making sure both TVs can display the camera. Quote Link to comment Share on other sites More sharing options...
-defunct- Posted August 10, 2019 Share Posted August 10, 2019 For the Announcement on the outgoing call, you will want to take the snapshot and select Control4 *before* you execute the announcement. A big note on the programming. Showing a camera for 30 seconds will not delay that entire code by 30 seconds. You will need to add a 30 second delay after to have it work right and expire after the duration. msgreenf 1 Quote Link to comment Share on other sites More sharing options...
Zuhair Posted August 10, 2019 Author Share Posted August 10, 2019 1 hour ago, Dunamivora said: For the Announcement on the outgoing call, you will want to take the snapshot and select Control4 *before* you execute the announcement. A big note on the programming. Showing a camera for 30 seconds will not delay that entire code by 30 seconds. You will need to add a 30 second delay after to have it work right and expire after the duration. @Dunamivora Below is my code, my problem is one of the TVs is not switching to the camera. When the doorbell is pressed: Kitchen TV switch to the camera. Living Room TV turns on and stays at the OSD main page. (when manually select the camera from the OSD it will work). Quote Link to comment Share on other sites More sharing options...
South Africa C4 user Posted August 11, 2019 Share Posted August 11, 2019 To debug this, I’d try a few things. First I’d try lengthening all of the delays to 10 seconds (you can make them shorter again once you have things working). I’d also add a few extra delays in between lines of code. Secondly, I’d try commenting out your jump to camera command and do one with just the living room in it and see if that works. One of these changes will probably get it working and you can then play from there. Quote Link to comment Share on other sites More sharing options...
Zuhair Posted August 11, 2019 Author Share Posted August 11, 2019 1 hour ago, South Africa C4 user said: To debug this, I’d try a few things. First I’d try lengthening all of the delays to 10 seconds (you can make them shorter again once you have things working). I’d also add a few extra delays in between lines of code. Secondly, I’d try commenting out your jump to camera command and do one with just the living room in it and see if that works. One of these changes will probably get it working and you can then play from there. I tried the following with no luck. The script is running fine till the end, but not switching to the camera. What is driving my crazy is the TV is switching to the camera manually from the OSD menu. Note: this was running fine earlier. Quote Link to comment Share on other sites More sharing options...
lippavisual Posted August 11, 2019 Share Posted August 11, 2019 Your sending the C4 command to 2 rooms consecutively. Only send that to one room then in the other room/s use “select C4 as the source” for the room. This will still turn your rooms on. Most likely the problem you’re seeing is because your onscreen is on a matrix and confusing the system with multiple rooms asking for onscreen within seconds. Quote Link to comment Share on other sites More sharing options...
South Africa C4 user Posted August 11, 2019 Share Posted August 11, 2019 3 hours ago, lippavisual said: Your sending the C4 command to 2 rooms consecutively. Only send that to one room then in the other room/s use “select C4 as the source” for the room. This will still turn your rooms on. Most likely the problem you’re seeing is because your onscreen is on a matrix and confusing the system with multiple rooms asking for onscreen within seconds. Worth a shot but does not really make sense if it works in one room and not the other (as OP states that the problem room goes to the C4 menu but not he camera). also OP states he has an EA1 in each room... so logically an OSD in each room. i would try each line of code (for the problem room) one line at a time and see where you get stuck. Zuhair 1 Quote Link to comment Share on other sites More sharing options...
Zuhair Posted August 12, 2019 Author Share Posted August 12, 2019 3 hours ago, South Africa C4 user said: Worth a shot but does not really make sense if it works in one room and not the other (as OP states that the problem room goes to the C4 menu but not he camera). also OP states he has an EA1 in each room... so logically an OSD in each room. i would try each line of code (for the problem room) one line at a time and see where you get stuck. Ad advised, I rewrote the script for the living room and removed the snapshot sections. So the test script is: send C4 command to living room delay 10 second jump to the camera Result is the same, it goes to C4 menu but not the camera. I ran the same script for the kitchen TV and it’s working fine. I did few more steps to rule out all possibilities: I asked my dealer to reinstall the NVR driver Rebooted and checked the Hikvision NVR Rebooted all camera I can view all cameras from OSD I can also view all the cameras in ComposerHE Quote Link to comment Share on other sites More sharing options...
South Africa C4 user Posted August 12, 2019 Share Posted August 12, 2019 Last suggestion from me would be to delete the Navigation Agent (under agents) and add it back again... and then redo the code. Quote Link to comment Share on other sites More sharing options...
Zuhair Posted August 12, 2019 Author Share Posted August 12, 2019 42 minutes ago, South Africa C4 user said: Last suggestion from me would be to delete the Navigation Agent (under agents) and add it back again... and then redo the code. I did this step in the earlier troubleshooting Quote Link to comment Share on other sites More sharing options...
South Africa C4 user Posted August 12, 2019 Share Posted August 12, 2019 Call your dealer... probably going to be the best way to fix this or get a remote dealer on this forum to dial in and help you. Quote Link to comment Share on other sites More sharing options...
Zuhair Posted August 12, 2019 Author Share Posted August 12, 2019 2 hours ago, South Africa C4 user said: Call your dealer... probably going to be the best way to fix this or get a remote dealer on this forum to dial in and help you. Many thanks, I fixed it! Here is what I did: I deleted the Navigation agent and rebooted all controllers (not only the master EA-5). I re-wrote the whole program and converted it to macros, a macro per TV. This way, it's running smoother and faster. Quote Link to comment Share on other sites More sharing options...
South Africa C4 user Posted August 13, 2019 Share Posted August 13, 2019 Well done... refresh navigators might have also fixed the issue (I suspect that this is where your various controller reboot sorted things)... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.