Thanks for the quick response.
I thought that would probably be the case.
All the best,
Doug
Announcement
Collapse
No announcement yet.
Copy Device A (String) to Device B (String)
Collapse
X
-
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:
-
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?
DougTags: None
Leave a comment: