Is there any way besides making an event for each device?
I've found "eDeviceAPI.Script" but not had much luck making it work.
As for what I'm trying to do in case there is another, better way....
I've purchased some of the sonesse st30-RS485 roller shade motors. I've got a RasPI with a USB-RS485 adapter that's working really well to control them and provide feedback on their status.
Still trying to figure out the best way to incorporate into HS, current thought is to have 3 devices per shade -- Target position, actual position, and status -- Might do a 4th for error, but that's currently in status.
I'll a couple more "target position" devices that will point to groups instead of individual shades.
I'm trying to deal with the target position devices. Currently I have an event that triggers on "changes... any value" than runs a script, and I have to pass the shade address in the parameters.
But instead of having multiple events, I'd love to have the device trigger the script, and read the shade address from the device that triggered it.
I've found "eDeviceAPI.Script" but not had much luck making it work.
As for what I'm trying to do in case there is another, better way....
I've purchased some of the sonesse st30-RS485 roller shade motors. I've got a RasPI with a USB-RS485 adapter that's working really well to control them and provide feedback on their status.
Still trying to figure out the best way to incorporate into HS, current thought is to have 3 devices per shade -- Target position, actual position, and status -- Might do a 4th for error, but that's currently in status.
I'll a couple more "target position" devices that will point to groups instead of individual shades.
I'm trying to deal with the target position devices. Currently I have an event that triggers on "changes... any value" than runs a script, and I have to pass the shade address in the parameters.
But instead of having multiple events, I'd love to have the device trigger the script, and read the shade address from the device that triggered it.
Comment