Announcement

Collapse
No announcement yet.

Copy all the device info to another device

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

    Copy all the device info to another device

    Hi all,

    How can I copy all the device data form one device to another one?
    this one is not working..
    sub main()
    hs.SetDeviceValue "^98", DeviceValue "^1"

    end sub

    #2
    If that device isn't working then why are you wanting to make a copy of it?
    -Rupp
    sigpic

    Comment


      #3
      Originally posted by Chak View Post
      Hi all,

      How can I copy all the device data form one device to another one?
      this one is not working..
      sub main()
      hs.SetDeviceValue "^98", DeviceValue "^1"

      end sub
      I'm not sure what you would like to accomplish, but you could try
      hs.SetDeviceValue "^98", hs.DeviceValue("^1")
      I didn't test it, but I think it's the lack of () that is the problem in your example, but even if it works, it will copy only the device value, not the string or status, for example, nor any of the other attributes of the device.

      You can also look at the drop down box at the bottom of the Status page. It allows you to copy any devices you have checked in your list (among other options).
      Last edited by Uncle Michael; January 28, 2008, 11:18 AM. Reason: correct typo
      Mike____________________________________________________________ __________________
      HS3 Pro Edition 3.0.0.548, NUC i3

      HW: Stargate | NX8e | CAV6.6 | Squeezebox | PCS | WGL 800RF | RFXCOM | Vantage Pro | Green-Eye | X10: XTB-232, -IIR | Edgeport/8 | Way2Call | Ecobee3 | EtherRain | Ubiquiti

      Comment


        #4
        The script will be a bit longer.
        idea is to set in the new device "^98" the max temperature of the day.
        script will be triggered from an event.

        something like this...
        When DeviceValue ^1 change
        run script
        If ^1 > ^98 and Sameday
        ^98=^1
        end if

        Comment


          #5
          found the correct syntax, including update of the time

          hs.SetDeviceString "^98",hs.DeviceString("^1"),True
          hs.SetDeviceValue "^98",hs.DeviceValue("^1")

          Comment

          Working...
          X