Announcement

Collapse
No announcement yet.

Virtual device value change by JSON not triggering event

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

    Virtual device value change by JSON not triggering event

    I've set up some virtual devices(I've also tried them as normal devices) that are being triggered On and Off from iSpy via JSON using the following commands which is working fine:
    http://homeseer3:81/JSON?request=set...alue&value=100
    http://homeseer3:81/JSON?request=set...vValue&value=0

    However I have created a event which should triggered if the device has had its Value set or changed(I've also tried other option) but the event never gets triggered. If I manually run the event it does what it is supposed to.

    Any ideas why the event isn't triggered?

    Also when changing Device Values via JSON should the Last Changed date change on the device?

    Thanks
    Simon

    #2
    Any ideas why the event isn't triggered?
    Is your virtual device being changed? I use the below command to change my virtual devices and it works fine. "Value" should be 0 for off and 100 for on.


    http://"HS IP_Address:Port"/JSON?user=username&pass=password&request=controldevicebyvalu e&ref=Device_ref_Number&value=value

    Bob

    Comment


      #3
      Originally posted by Bob_Linux_User View Post
      Is your virtual device being changed? I use the below command to change my virtual devices and it works fine. "Value" should be 0 for off and 100 for on.


      http://"HS IP_Address:Port"/JSON?user=username&pass=password&request=controldevicebyvalu e&ref=Device_ref_Number&value=value

      Bob
      Yes the virtual device value is being changed and the device changes between On & Off, just doesn't trigger the event.
      Attached Files

      Comment


        #4
        cheeryfool

        Comment


          #5
          You may also try changing the virtual device to allow control instead of a "status only" device. I seem to remember having problems with having a status only device. You will need to uncheck the "Status Only" check box on the Device Tab and set up status graphics like below:
          Attached Files

          Comment


            #6
            Originally posted by Simonk View Post
            Yes the virtual device value is being changed and the device changes between On & Off, just doesn't trigger the event.
            What happens if you manually change the device value from the Device Management page? Does the event get triggered then?

            I would expect the last change time to update when the device value is changed.
            Mike____________________________________________________________ __________________
            HS3 Pro Edition 3.0.0.548, NUC i3

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

            Comment


              #7
              Originally posted by Uncle Michael View Post
              What happens if you manually change the device value from the Device Management page? Does the event get triggered then?

              I would expect the last change time to update when the device value is changed.
              Yes event gets triggered if I manually turn the device on.

              Comment


                #8
                Originally posted by Simonk View Post
                Yes event gets triggered if I manually turn the device on.
                I've figured out the issue, if I use :

                Code:
                http://homeseer3:81/JSON?request=setdeviceproperty&ref=352&property=NewDevValue&value=100
                then the device value changes but date & time doesn't get updated and events don't get triggered.
                But it works fine and updates device, date & time and triggers events after I I change it to :

                Code:
                http://homeseer3:81/JSON?request=controldevicebyvalue&ref=355&value=100
                Thanks for you help

                Comment

                Working...
                X