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: HS4 Pro Edition 4.2.19.0 (Windows - Running as a Service)
    Home Assistant 2024.3
    Operating System: Microsoft Windows 11 Pro - Desktop
    Z-Wave Devices via two Z-Net G3s
    Zigbee Devices via RaspBee on RPi 3b+
    WiFi Devices via Internal Router.

    Enabled Plug-Ins
    AK GoogleCalendar 4.0.4.16,AK HomeAssistant 4.0.1.23,AK SmartDevice 4.0.5.1,AK Weather 4.0.5.181,AmbientWeather 3.0.1.9,Big6 3.44.0.0,BLBackup 2.0.64.0,BLGData 3.0.55.0,BLLock 3.0.39.0,BLUPS 2.0.26.0,Device History 4.5.1.1,EasyTrigger 3.0.0.76,Harmony Hub 4.0.14.0,HSBuddy 4.51.303.0,JowiHue 4.1.4.0,LG ThinQ 4.0.26.0,ONVIF Events 1.0.0.5,SDJ-Health 3.1.1.9,TPLinkSmartHome4 2022.12.30.0,UltraCID3 3.0.6681.34300,Z-Wave 4.1.3.0

    #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: HS4 Pro Edition 4.2.19.0 (Windows - Running as a Service)
      Home Assistant 2024.3
      Operating System: Microsoft Windows 11 Pro - Desktop
      Z-Wave Devices via two Z-Net G3s
      Zigbee Devices via RaspBee on RPi 3b+
      WiFi Devices via Internal Router.

      Enabled Plug-Ins
      AK GoogleCalendar 4.0.4.16,AK HomeAssistant 4.0.1.23,AK SmartDevice 4.0.5.1,AK Weather 4.0.5.181,AmbientWeather 3.0.1.9,Big6 3.44.0.0,BLBackup 2.0.64.0,BLGData 3.0.55.0,BLLock 3.0.39.0,BLUPS 2.0.26.0,Device History 4.5.1.1,EasyTrigger 3.0.0.76,Harmony Hub 4.0.14.0,HSBuddy 4.51.303.0,JowiHue 4.1.4.0,LG ThinQ 4.0.26.0,ONVIF Events 1.0.0.5,SDJ-Health 3.1.1.9,TPLinkSmartHome4 2022.12.30.0,UltraCID3 3.0.6681.34300,Z-Wave 4.1.3.0

      Comment


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


        Sent from my iPhone using Tapatalk

        Comment

        Working...
        X