Stopping and starting CSV engine

Posted on
Sat Aug 29, 2020 11:21 am
MB92691 offline
Posts: 1
Joined: Jun 28, 2020

Stopping and starting CSV engine

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.

Posted on
Sat Aug 29, 2020 12:28 pm
DaveL17 offline
User avatar
Posts: 6751
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Stopping and starting CSV engine

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.

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 3 guests