Solis 1 0 4 – Codes Editors Integrator Panel

broken image


Work with code cells in the Notebook Editor. The Notebook Editor makes it easy to create, edit, and run code cells within your Jupyter Notebook. Create a code cell. By default, a blank Notebook will have an empty code cell for you to start with and an existing Notebook will place one at the bottom. Add your code to the empty code cell to get. Ginlong Technologies has added 10 single-phase models, the Solis 1K, 1.5K, 2K, 2.5K, 3K-ST, 3K, 3.6K, 4K, 4.6K, 5k 4G version PV string inverters to its extensive lineup of reliable and innovative inverters. This new inverter product has been CEC listed. Buy Solis 4kW Solar Inverter. All New Solis 4G Single Phase Range.

The manual alarm control panel platform enables you to create an alarm system in Home Assistant.

Solis 1 0 4 – Codes Editors Integrator Panel Layout

Configuration

To enable this, add the following lines to your configuration.yaml file:

Configuration Variables

The name of the alarm.

If defined, specifies a code to enable or disable the alarm in the frontend. Only one of code and code_template can be specified.

If defined, returns a code to enable or disable the alarm in the frontend; an empty string disables checking the code. Inside the template, the variables from_state and to_state identify the current and desired state. Only one of code and code_template can be specified.

code_arm_required boolean (Optional, default: true)

The time in seconds of the ‘pending' state before triggering the alarm.

The time in seconds of the ‘arming' state before effecting a state change.

The time in seconds of the ‘triggered' state in which the alarm is firing.

Solis 1 0 4 – Codes Editors Integrator Panel
disarm_after_trigger boolean (Optional, default: false)

If true, the alarm will automatically disarm after it has been triggered instead of returning to the previous state.

armed_custom_bypass/armed_home/armed_away/armed_night/disarmed/triggered list (Optional)

State specific setting for delay_time (all states except triggered)

State specific setting for arming_time (all states except disarmed and triggered)

State specific setting for trigger_time (all states except triggered)

State machine

The state machine of the manual alarm integration is complex but powerful. Thetransitions are timed according to three values, delay_time, arming_timeand trigger_time. The values in turn can come from the default configurationvariable or from a state-specific override.

When the alarm is armed, its state first goes to arming for a numberof seconds equal to the destination state's arming_time, and thentransitions to one of the 'armed' states. Note that code_templatenever receives 'arming' in the to_state variable; instead,to_state contains the state which the user has requested. However,from_statecan contain 'arming'.

When the alarm is triggered, its state goes to pending for a number ofseconds equal to the previous state's delay_time. Then the alarm transitions to the 'triggered'states. The code is never checked when triggering the alarm, so theto_state variable of code_template cannot ever contain 'triggered'either; again, from_statecan contain 'triggered'.

The alarm remains in the 'triggered' state for a number of seconds equal to theprevious state's trigger_time. Then, depending on disarm_after_trigger,it goes back to either the previous state or disarmed. If the previousstate's trigger_time is zero, the transition to 'triggered' is entirelyblocked and the alarm remains in the armed state.

Each of the settings is useful in different scenarios. arming_time givesyou some time to leave the building (for 'armed' states).

delay_time can be used to allow some time to disarm the alarm, withflexibility. For example, you could specify a delay time for the'armed away' state, in order to avoid triggering the alarm while thegarage door opens, but not for the 'armed home' state.

trigger_time is useful to disable the alarm when disarmed, but it can alsobe used for example to sound the siren for a shorter time during the night.

Examples

In the configuration example below:

  • The disarmed state never triggers the alarm.
  • The armed_home state will leave no time to leave the building or disarm the alarm.
  • The other states will give 30 seconds to leave the building before triggering the alarm, and 20 seconds to disarm the alarm when coming back.

In the rest of this section, you find some real-life examples on how to use this panel.

Sensors

Using sensors to trigger the alarm.

Sending a notification when the alarm is triggered.

Disarming the alarm when the door is properly unlocked.

Sending a Notification when the Alarm is Armed (Away/Home), Disarmed and in Pending Status

©2008-2018 Luiz Bettoni

Index

Introduction

GUSEK provide an open source LP/MILP IDE for Win32, packing a custom version of the SciTE editor linked to the GLPK standalone solver.

Please note that the GUSEK is in beta version. It may be unstable, use at your own risk. Advices and questions can be reported to the author.

License

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but without any warranty See the GNU General Public License for more details.

Download and Install

The GUSEK Project content is hosted at sourceforge.net/projects/gusek. The source can be reached by SVN: https://gusek.svn.sourceforge.net/svnroot/gusek/trunk.

To install GUSEK:

  • Download the latest release from sourceforge: GUSEK Download
  • Unzip it to any folder, at your option (GUSEK is a portable application)
  • Open it running the gusek.exe file

Notes: GUSEK can be added to Windows Explorer contextual menu and associated to GMPL model extensions. See Tools > Windows Integration for options. Warnings: some Windows editions may require GUSEK running with Administrator rights to do the integration. If you move the GUSEK folder you need select this options again to register the new path.

Quick Guide

User Interface

GUSEK can open multiple files simultaneously, using file extensions to identify them:

  • .mod: GMPL Model file (can contain problem data too);
  • .dat: GMPL Data file;
  • .out: GLPK Output file;
  • .mps: Free MPS / Fixed MPS Model file;
  • .glp: GLPK LP/MIP Model file;
  • .lp: Cplex LP Model file;

Specific resources for GLPK models development are in the Tools menu. All others resources are from standard SciTE editor. The most useful commands can be called from keyword shortcuts, toolbar buttons and tab contextual menus. They are:

  • Compile: Verify model / data sintax;
  • Go: Solve current model;
  • Build GLPK LP/MIP: Build the problem in GLPK LP/MIP format;
  • Build Cplex LP: Build the problem in Cplex LP format;
  • Build MPS: Build the problem in Free MPS format;
  • Use External .dat: Enable / disable use of external data files (see GMPL Models);
  • Set as Default .dat File: Set the actual data file as 'default data file', forcing it use in model runs ;
  • Add as Extra .dat File: Add the actual data file as 'extra data file' (only used for multiple data files);
  • Clear Extra .dat Files: Clear the register of 'extra data files' (only used for multiple data files);
  • Generate Output File on Go: Enable / disable the output file creation and display after solve;
  • Generate LP Sensitivity Analysis: Enable / disable the sensitivity analysis file creation and display after solve (only LP);
  • Use Improved MILP (All Cuts): Enable / disable use of cuts to improve MILP solving (include all cuts). Advanced GLPK users: run parameters can be modified at field 1 in View > Parameters;
  • Use with Free MPS Format: Use 'Free MPS' format instead 'Fixed MPS' for read/write MPS files;

GMPL Models

The models are developed using the default GLPK model language, the GMPL (GNU MathProg Language). Some examples from the original GLPK package are in the GUSEK 'examples' folder. The model can be developed in two ways:

Single File Model

Model and data are in a single file with .mod extension. Good for didatic models or single data sets problems.

Before run see if Tools > Use External .dat is unchecked (default).

Multiple Files Model

Model is in a .mod file, but data are in a distinct .dat file. Useful for complex models and dinamic data set problems.

To run it you need check the Tools > Use External .dat menu item. In this way the model and data file need to have the same name with their respective extensions (like prob1.mod and prob1.dat). You can compile, build or go from an opened model or data file.

Using a Default Data File

To make easy handling multiple data files with different names you can use the 'default data file' resource. It set one data file to all runs, until you unset it or define another default data file. In this way you can compile, build or go only from an opened model file. To use it:

  • Open the model and data files to be used;
  • Select a data file. Select Tools > Set as Default .dat File (present in tab contextual menu too);
  • Switch to model file and run it;
  • Repeat previous steps to run each set of model/data files.

Notes:

  • To go back to 'same name' model and data file you need to uncheck and check the menu item Tools > Use External .dat;
  • You can set multiple extra data files: activate each data file to be used and select Tools > Add as Extra .dat File. You cannot repeat data in data files. To disable extra dat files use Tools > Clear Extra .dat Files;
  • To help, if you are testing parameters or using multiple data files: you can toggle the status bar (clicking on it) to 'edit status' mode or 'GLPK parameters' mode.
  • To advanced users: the 'default data' and 'extra data' filenames parameters can be edited in View > Parameters, fields 2 and 3, respectively.

MPS/LP Models

Gusek also support develop of MPS, GLPK LP/MIP and Cplex LP Models. You can edit, check, run and convert between these formats using the Tools menu items.

Default MPS format is 'Fixed MPS'. You can check Tools > Work with Free MPS to to run your 'Free MPS' models. This item also defines the type of MPS files builded from GMPL and LP.

References

GLPK - the GNU LP / MILP solver Kit ©2000 Andrew Makhorin

GLPK for Windows - GLPK command prompt executables for Windows

GLPK Wikibook - Unofficial wide documentation about GLPK and related projects

MinGW - a minimalist GNU port for Windows

PyMathProg - GLPK modelling in Python

Sc1 - a single file executable from SciTE (SCIntilla based Text Editor) ©1998 Neil Hodgson

SciTE Ru-Board Edition - patchs and enhancements to SciTE code

Solis 1 0 4 – Codes Editors Integrator Panel Download

Changelog

GUSEK 0.2.24 (19/03/2018)

GLPK updated to 4.65.

GUSEK 0.2.23 (04/12/2017)

GLPK updated to 4.64.

GUSEK 0.2.22 (01/12/2017)

Solis 1 0 4 – codes editors integrator panel layout
disarm_after_trigger boolean (Optional, default: false)

If true, the alarm will automatically disarm after it has been triggered instead of returning to the previous state.

armed_custom_bypass/armed_home/armed_away/armed_night/disarmed/triggered list (Optional)

State specific setting for delay_time (all states except triggered)

State specific setting for arming_time (all states except disarmed and triggered)

State specific setting for trigger_time (all states except triggered)

State machine

The state machine of the manual alarm integration is complex but powerful. Thetransitions are timed according to three values, delay_time, arming_timeand trigger_time. The values in turn can come from the default configurationvariable or from a state-specific override.

When the alarm is armed, its state first goes to arming for a numberof seconds equal to the destination state's arming_time, and thentransitions to one of the 'armed' states. Note that code_templatenever receives 'arming' in the to_state variable; instead,to_state contains the state which the user has requested. However,from_statecan contain 'arming'.

When the alarm is triggered, its state goes to pending for a number ofseconds equal to the previous state's delay_time. Then the alarm transitions to the 'triggered'states. The code is never checked when triggering the alarm, so theto_state variable of code_template cannot ever contain 'triggered'either; again, from_statecan contain 'triggered'.

The alarm remains in the 'triggered' state for a number of seconds equal to theprevious state's trigger_time. Then, depending on disarm_after_trigger,it goes back to either the previous state or disarmed. If the previousstate's trigger_time is zero, the transition to 'triggered' is entirelyblocked and the alarm remains in the armed state.

Each of the settings is useful in different scenarios. arming_time givesyou some time to leave the building (for 'armed' states).

delay_time can be used to allow some time to disarm the alarm, withflexibility. For example, you could specify a delay time for the'armed away' state, in order to avoid triggering the alarm while thegarage door opens, but not for the 'armed home' state.

trigger_time is useful to disable the alarm when disarmed, but it can alsobe used for example to sound the siren for a shorter time during the night.

Examples

In the configuration example below:

  • The disarmed state never triggers the alarm.
  • The armed_home state will leave no time to leave the building or disarm the alarm.
  • The other states will give 30 seconds to leave the building before triggering the alarm, and 20 seconds to disarm the alarm when coming back.

In the rest of this section, you find some real-life examples on how to use this panel.

Sensors

Using sensors to trigger the alarm.

Sending a notification when the alarm is triggered.

Disarming the alarm when the door is properly unlocked.

Sending a Notification when the Alarm is Armed (Away/Home), Disarmed and in Pending Status

©2008-2018 Luiz Bettoni

Index

Introduction

GUSEK provide an open source LP/MILP IDE for Win32, packing a custom version of the SciTE editor linked to the GLPK standalone solver.

Please note that the GUSEK is in beta version. It may be unstable, use at your own risk. Advices and questions can be reported to the author.

License

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but without any warranty See the GNU General Public License for more details.

Download and Install

The GUSEK Project content is hosted at sourceforge.net/projects/gusek. The source can be reached by SVN: https://gusek.svn.sourceforge.net/svnroot/gusek/trunk.

To install GUSEK:

  • Download the latest release from sourceforge: GUSEK Download
  • Unzip it to any folder, at your option (GUSEK is a portable application)
  • Open it running the gusek.exe file

Notes: GUSEK can be added to Windows Explorer contextual menu and associated to GMPL model extensions. See Tools > Windows Integration for options. Warnings: some Windows editions may require GUSEK running with Administrator rights to do the integration. If you move the GUSEK folder you need select this options again to register the new path.

Quick Guide

User Interface

GUSEK can open multiple files simultaneously, using file extensions to identify them:

  • .mod: GMPL Model file (can contain problem data too);
  • .dat: GMPL Data file;
  • .out: GLPK Output file;
  • .mps: Free MPS / Fixed MPS Model file;
  • .glp: GLPK LP/MIP Model file;
  • .lp: Cplex LP Model file;

Specific resources for GLPK models development are in the Tools menu. All others resources are from standard SciTE editor. The most useful commands can be called from keyword shortcuts, toolbar buttons and tab contextual menus. They are:

  • Compile: Verify model / data sintax;
  • Go: Solve current model;
  • Build GLPK LP/MIP: Build the problem in GLPK LP/MIP format;
  • Build Cplex LP: Build the problem in Cplex LP format;
  • Build MPS: Build the problem in Free MPS format;
  • Use External .dat: Enable / disable use of external data files (see GMPL Models);
  • Set as Default .dat File: Set the actual data file as 'default data file', forcing it use in model runs ;
  • Add as Extra .dat File: Add the actual data file as 'extra data file' (only used for multiple data files);
  • Clear Extra .dat Files: Clear the register of 'extra data files' (only used for multiple data files);
  • Generate Output File on Go: Enable / disable the output file creation and display after solve;
  • Generate LP Sensitivity Analysis: Enable / disable the sensitivity analysis file creation and display after solve (only LP);
  • Use Improved MILP (All Cuts): Enable / disable use of cuts to improve MILP solving (include all cuts). Advanced GLPK users: run parameters can be modified at field 1 in View > Parameters;
  • Use with Free MPS Format: Use 'Free MPS' format instead 'Fixed MPS' for read/write MPS files;

GMPL Models

The models are developed using the default GLPK model language, the GMPL (GNU MathProg Language). Some examples from the original GLPK package are in the GUSEK 'examples' folder. The model can be developed in two ways:

Single File Model

Model and data are in a single file with .mod extension. Good for didatic models or single data sets problems.

Before run see if Tools > Use External .dat is unchecked (default).

Multiple Files Model

Model is in a .mod file, but data are in a distinct .dat file. Useful for complex models and dinamic data set problems.

To run it you need check the Tools > Use External .dat menu item. In this way the model and data file need to have the same name with their respective extensions (like prob1.mod and prob1.dat). You can compile, build or go from an opened model or data file.

Using a Default Data File

To make easy handling multiple data files with different names you can use the 'default data file' resource. It set one data file to all runs, until you unset it or define another default data file. In this way you can compile, build or go only from an opened model file. To use it:

  • Open the model and data files to be used;
  • Select a data file. Select Tools > Set as Default .dat File (present in tab contextual menu too);
  • Switch to model file and run it;
  • Repeat previous steps to run each set of model/data files.

Notes:

  • To go back to 'same name' model and data file you need to uncheck and check the menu item Tools > Use External .dat;
  • You can set multiple extra data files: activate each data file to be used and select Tools > Add as Extra .dat File. You cannot repeat data in data files. To disable extra dat files use Tools > Clear Extra .dat Files;
  • To help, if you are testing parameters or using multiple data files: you can toggle the status bar (clicking on it) to 'edit status' mode or 'GLPK parameters' mode.
  • To advanced users: the 'default data' and 'extra data' filenames parameters can be edited in View > Parameters, fields 2 and 3, respectively.

MPS/LP Models

Gusek also support develop of MPS, GLPK LP/MIP and Cplex LP Models. You can edit, check, run and convert between these formats using the Tools menu items.

Default MPS format is 'Fixed MPS'. You can check Tools > Work with Free MPS to to run your 'Free MPS' models. This item also defines the type of MPS files builded from GMPL and LP.

References

GLPK - the GNU LP / MILP solver Kit ©2000 Andrew Makhorin

GLPK for Windows - GLPK command prompt executables for Windows

GLPK Wikibook - Unofficial wide documentation about GLPK and related projects

MinGW - a minimalist GNU port for Windows

PyMathProg - GLPK modelling in Python

Sc1 - a single file executable from SciTE (SCIntilla based Text Editor) ©1998 Neil Hodgson

SciTE Ru-Board Edition - patchs and enhancements to SciTE code

Solis 1 0 4 – Codes Editors Integrator Panel Download

Changelog

GUSEK 0.2.24 (19/03/2018)

GLPK updated to 4.65.

GUSEK 0.2.23 (04/12/2017)

GLPK updated to 4.64.

GUSEK 0.2.22 (01/12/2017)

Minor fixes on run and convert models.

GUSEK 0.2.21 (02/08/2017)

GLPK updated to 4.63.

GUSEK 0.2.20 (08/04/2016)

GLPK updated to 4.60.

GUSEK 0.2.19 (11/11/2015)

GLPK updated to 4.57.

GUSEK 0.2.18 (26/08/2014)

GLPK updated to 4.55.

GUSEK 0.2.17 (01/04/2014)

GLPK updated to 4.54.

GUSEK 0.2.16 (14/02/2014)

GLPK updated to 4.53.

GUSEK 0.2.15 (19/07/2013)

GLPK updated to 4.52.

GUSEK 0.2.14 (09/07/2013)

GLPK updated to 4.51.

GUSEK 0.2.13 (16/08/2012)

GLPK updated to 4.47.

GUSEK 0.2.12 (15/03/2011)

GLPK updated to 4.45.

GUSEK 0.2.11 (07/06/2010)

GLPK updated to 4.44.

GUSEK 0.2.10 (22/02/2010)

Added support to GLPK LP/MIP format. Some tools itens modified (names, order and shortcuts). GLPK updated to 4.43.

GUSEK 0.2.9 (14/01/2010)

GLPK updated to 4.42.

GUSEK 0.2.8 (30/12/2009)

GLPK updated to 4.41. Added Java files support (as in native SciTE). Added gnuplot files support (testing - thanks to Noli Sicad).

Solis 1 0 4 – Codes Editors Integrator Panel Template

GUSEK 0.2.7 (26/11/2009)

GLPK updated to 4.40 - now GUSEK uses GLPK for Windows pre-build GLPK binaries (thanks to Xypron). Added tips folder (gusek_tips), introducing useful samples to gusek users. Added python files support (as in native SciTE) for PyMathProg modelling (testing).

GUSEK 0.2.6 (27/07/2009)

GLPK updated to 4.39. Minor fix in windows integration.

GUSEK 0.2.5 (05/05/2009)

GLPK updated to 4.38.

GUSEK 0.2.4 (03/04/2009)

Bug correction: now 'Stop Execution' really finish glpsol.exe process. GLPK updated to 4.37.

GUSEK 0.2.3 (06/02/2009)

GLPK updated to 4.36.

GUSEK 0.2.2 (23/01/2009)

Added sensitivity bounds menu option (thanks to Wendel de Melo for suggestion). GLPK updated to 4.35.

Solis 1 0 4 – Codes Editors Integrator Panel List

GUSEK 0.2.1 (10/12/2008)

Improved output panel refresh time (thanks to Andrew Makhorin for GLPK patch). Improved support to MPS / Cplex LP files. Minor fixes and improvements. GLPK Reference Manual included for MPS and Cplex LP helps

GUSEK 0.2.0 (06/12/2008)

First public release. Using GLPK 4.34.

Last changed in 01/2019 by Luiz Bettoni





broken image