I'm not sure if I am just missing this but I'm trying to build an action in one of my plugin to set the status (ie value) of another device. This is not to control a device, I want to set it's status from an event.
I know I can do it with a single line hs.setdevicevalue and it'll do the same but I like neatness and I would like it in an event action.
Going through the VSPair class I see that there is the .status, I've used it before setting up VSPairs but if you call hs.DeviceVSP_GetAllStatus then it will return an array of VSPairs. I can't quite understand why the .status call is a writeonly property? It would therefore if I understand it correctly impossible to get the status of a single value pair from this call?
I know I can do it with a single line hs.setdevicevalue and it'll do the same but I like neatness and I would like it in an event action.
Going through the VSPair class I see that there is the .status, I've used it before setting up VSPairs but if you call hs.DeviceVSP_GetAllStatus then it will return an array of VSPairs. I can't quite understand why the .status call is a writeonly property? It would therefore if I understand it correctly impossible to get the status of a single value pair from this call?
Comment