The Automation Editor section allows the user to create and edit automation scripts.
...
Name -The name of the automation can be changed if necessary.
Assets - The assets on which the automation will be activated can be changed. It is possible to select up to 500 characters in the Asset field.
Timing - If you need to use a schedule plan other than what is offered by the system, you can use one of the many tools available online toconvert CRON expressions to readable text format.
Active - Activate the automation if needed.
...
State variables that are "global" may be used in multiple runs of the same script. In order to accomplish this, save a variable as the "Set State" function as follows:
Code Block | ||
---|---|---|
| ||
bool success = await Galooli.SetState(“SomeKey”, “SomeValue”, isGlobal: true); |
...
Output | Location | Generator | Inverter | Rectifier |
---|---|---|---|---|
{ "output-immobilize", true} | { "location-location", true} | { "generator-engine_start", true} | inverter-inverter_on.x (1-25) | Galooli.UnitCommand([UNIT_ID], "rectifier-rectifier_reset.[1-5]"); |
{ "output-mobilize", true} | { "generator-engine_stop", true} | inverter-inverter_off.x (1-25) | ||
{ "generator-mode_auto", true} | inverter-inverter_reset.x (1-25) | |||
{ "generator-mode_stop", true} | ||||
{ "generator-mode_manual", true} | ||||
{ "generator-alarms_reset", true} | ||||
{ "generator-engine_start.2", true} | ||||
{ "generator-engine_stop.2", true} | ||||
{ "generator-mode_auto.2", true} | ||||
{ "generator-mode_stop.2", true} | ||||
{ "generator-mode_manual.2", true} | ||||
{ "generator-alarms_reset.2", true} |
...