Announcement

Collapse
No announcement yet.

Copy Device A (String) to Device B (String)

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

  • Camguy52
    replied
    Thanks for the quick response.

    I thought that would probably be the case.

    All the best,

    Doug

    Leave a comment:


  • AllHailJ
    replied
    I think you will need to write a script activated by an event. You will need the refid for device A & B

    Code:
    [COLOR=#000000][FONT=courier new]sub main()[/FONT][/COLOR]
    
    [COLOR=#000000][FONT=courier new]Dim s[/FONT][/COLOR] As String
    
    [COLOR=#000000][FONT=courier new]s=hs.DeviceString(RefID-for-Device-A)
    
    hs.SetDeviceString(RefID-For-Device-B, s, True)[/FONT][/COLOR]
    
    [COLOR=#000000][FONT=courier new]end sub[/FONT][/COLOR]



    You may also have to set the timestamp on the devices so the system recognizes they have changed.

    Leave a comment:


  • Camguy52
    started a topic Copy Device A (String) to Device B (String)

    Copy Device A (String) to Device B (String)

    I have created a "Device A" and used "Easy Trigger Set Devices String" to set the devices string. (i.e. Device A = "OK Google").

    Now I want to copy "Device A's string" to "Device B". I tried "EasyTrigger: Set Device to Another Device" but it does not work. (probably doesn't work with strings)

    Do I need to create a script to do that or is there an easier way without scripting?

    Doug
Working...
X