Announcement

Collapse
No announcement yet.

How to sync DTV receivers

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to sync DTV receivers

    It is a common occurrence for us to leave the Man Cave and go to the Kitchen. Invariably, somebody doesn't want to miss out on what they were watching in the Man Cave. So.... I'm looking for a way to hit a button and sync the Kitchen channel with the Man Cave channel. I pretty sure a simple script would do it. Am I on the right track?

    Sub Main(ByVal parm as object)
    hs.PluginFunction("DirecTV", "Kitchen", "SendTuneChannelCmd", New Object() {hs.DeviceString(440)})
    End Sub


    hs.DeviceString(440) is the string containing the Man Cave channel number.
    HomeSeer Version: HS3 Pro Edition 3.0.0.500
    Operating System: Microsoft Windows 10 Pro - Work Station

    Enabled Plug-Ins:
    2.1.0.119: AmbientWeather | 3.0.21.0: BLLock | 2.0.24.0: BLUPS | 1.3.6.0: Device History | 3.0.0.56: EasyTrigger | 3.1.0.7: MeiHarmonyHub | 3.0.6681.34300: UltraCID3 | 3.0.6644.26753: UltraLog3 | 3.0.6554.33094: UltraMon3 | 3.0.0.91: weatherXML | 3.0.1.245: Z-Wave | 3.0.51: HS Touch Designer | 3.0.0.40 Z-Seer+

  • #2
    yeah something like that should work, you may have to cast the device string to an integer
    Code:
    Sub Main(ByVal parm as object)
        hs.PluginFunction("DirecTV", "Kitchen", "SendTuneChannelCmd", New Object() {CType(hs.DeviceString(440),Integer)})
    End Sub

    Comment


    • #3
      That worked like a charm! Thank you VERY much.....
      HomeSeer Version: HS3 Pro Edition 3.0.0.500
      Operating System: Microsoft Windows 10 Pro - Work Station

      Enabled Plug-Ins:
      2.1.0.119: AmbientWeather | 3.0.21.0: BLLock | 2.0.24.0: BLUPS | 1.3.6.0: Device History | 3.0.0.56: EasyTrigger | 3.1.0.7: MeiHarmonyHub | 3.0.6681.34300: UltraCID3 | 3.0.6644.26753: UltraLog3 | 3.0.6554.33094: UltraMon3 | 3.0.0.91: weatherXML | 3.0.1.245: Z-Wave | 3.0.51: HS Touch Designer | 3.0.0.40 Z-Seer+

      Comment


      • #4
        Do you mind sharing what hardware you are using to relay these commands?


        Sent from my iPhone using Tapatalk

        Comment

        Working...
        X