(Last Updated: May 6, 2020)

Change Parameter of Z-wave device through Z-way API



  • Parameters of devices can be set through the api using this URL

    YOURIP:8083/ZWaveAPI/Run/devices[DEVICE#].instances[0].Configuration.Set(PARAMETER,PARAMETER_VALUE,size=PARAMETER_SIZE)

    Replace:
    YOURIP with the IP of Z-way for example 192.168.1.2.
    DEVICE# with the Z-way device # of the devices parameter you want to change
    Parameter with the parameter # you want to change
    VALUE with the Parameter value
    PARAMETER_SIZE with the size of the parameter (should be 1, 2, or 4)

    An example to change device 51's parameter 3 to a value of 1 with a size of 1:

    192.168.1.2:8083/ZWaveAPI/Run/devices[51].instances[0].Configuration.Set(3,1,size=1)

    To run it in Luup code

    local status, result = luup.inet.wget("192.168.1.2:8083/ZWaveAPI/Run/devices[51].instances[0].Configuration.Set(3,1,size=1)", 5)
    

Log in to reply