Announcement

Collapse
No announcement yet.

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

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

    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

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

    Code:
    sub main()
    
    Dim s As String
    
    s=hs.DeviceString(RefID-for-Device-A)
    
    hs.SetDeviceString(RefID-For-Device-B, s, True)
    
    end sub



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

    Comment


      #3
      Thanks for the quick response.

      I thought that would probably be the case.

      All the best,

      Doug

      Comment

      Working...
      X