Stopping and starting CSV engine
Posted:
Sat Aug 29, 2020 11:21 am
by MB92691
My application requires collecting data using the CSV engine for 4 hours per day, so I'd like to turn particular CSV engine on and off. I see that there is a device state "onoffstate" but cannot seem to find a way to switch it. Any ideas?
Thanks in advance.
Re: Stopping and starting CSV engine
Posted:
Sat Aug 29, 2020 12:28 pm
by DaveL17
There's nothing built into the plugin to do that; the onOffState state is toggled when the device's communication status changes (i.e., when you tick/untick Comm Enabled). What you can do, however, is create two Indigo schedules to set the communication state to what you need. Under Actions, use Server Actions --> Enable/Disable/Reload Actions --> Enable (or Disable) Device.
This should do what you need since the CSV device should only update if it's enabled.