@@ -1151,51 +1151,6 @@ static info_lkp_t eaton_input_bypass_mode_off_info[] = {
1151
1151
{ 0 , NULL , NULL , NULL }
1152
1152
};
1153
1153
1154
- /* Function to start ECO(HE) Mode automatically instead of manually starting Bypass and then ECO(HE) Mode */
1155
- static const char * eaton_input_eco_mode_auto_on_fun (double value )
1156
- {
1157
- const char * bypass_switch_off_str = NULL ;
1158
- const char * bypass_switch_on_str = NULL ;
1159
- const char * eco_switchable_str = NULL ;
1160
-
1161
- NUT_UNUSED_VARIABLE (value );
1162
-
1163
- /* Check if input.bypass.switch.on is disabled and set it to 'on' */
1164
- bypass_switch_on_str = dstate_getinfo ("input.bypass.switch.on" );
1165
- if (!strcmp (bypass_switch_on_str , "disabled" )) {
1166
- setvar ("input.bypass.switch.on" , "on" );
1167
- } else {
1168
- upsdebugx (1 , "Bypass switch on state is: %s , must be disabled before switching on" , bypass_switch_on_str );
1169
- return NULL ;
1170
- }
1171
-
1172
- /* Check if input.eco.switchable is normal and set it to 'ECO' */
1173
- eco_switchable_str = dstate_getinfo ("input.eco.switchable" );
1174
- if (!strcmp (eco_switchable_str , "normal" )) {
1175
- setvar ("input.eco.switchable" , "ECO" );
1176
- } else {
1177
- upsdebugx (1 , "ECO switch state is: %s , must be normal before switching to ECO" , eco_switchable_str );
1178
- return NULL ;
1179
- }
1180
-
1181
- /* Check if input.bypass.switch.off is disabled and set it to 'off' */
1182
- bypass_switch_off_str = dstate_getinfo ("input.bypass.switch.off" );
1183
- if (!strcmp (bypass_switch_off_str , "disabled" )) {
1184
- setvar ("input.bypass.switch.off" , "off" );
1185
- } else {
1186
- upsdebugx (1 , "Bypass switch off state is: %s , must be disabled before switching off" , bypass_switch_off_str );
1187
- return NULL ;
1188
- }
1189
- upsdebugx (1 , "%s: ECO Mode was enabled after switching to Bypass Mode" , __func__ );
1190
- return NULL ;
1191
- }
1192
-
1193
- /* High Efficiency (aka ECO) mode for auto start command */
1194
- static info_lkp_t eaton_input_eco_mode_auto_on_info [] = {
1195
- { 1 , "dummy" , eaton_input_eco_mode_auto_on_fun , NULL },
1196
- { 0 , NULL , NULL , NULL }
1197
- };
1198
-
1199
1154
/* Determine country using UPS.PowerSummary.Country.
1200
1155
* If not present:
1201
1156
* if PowerConverter.Output.Voltage >= 200 => "Europe"
@@ -2137,8 +2092,6 @@ static hid_info_t mge_hid2nut[] =
2137
2092
{ "experimental.ecomode.enable" , 0 , 0 , "UPS.PowerConverter.Input.[5].Switchable" , NULL , "1" , HU_TYPE_CMD , eaton_input_eco_mode_on_off_info },
2138
2093
{ "experimental.essmode.enable" , 0 , 0 , "UPS.PowerConverter.Input.[5].Switchable" , NULL , "2" , HU_TYPE_CMD , NULL },
2139
2094
{ "experimental.essmode.disable" , 0 , 0 , "UPS.PowerConverter.Input.[5].Switchable" , NULL , "0" , HU_TYPE_CMD , NULL },
2140
- /* Command to switch ECO(HE) Mode with switch to Automatic Bypass Mode on before */
2141
- { "experimental.ecomode.start.auto" , 0 , 0 , "UPS.PowerConverter.Input.[5].Switchable" , NULL , "1" , HU_TYPE_CMD , eaton_input_eco_mode_auto_on_info },
2142
2095
2143
2096
/* Command to switch Automatic Bypass Mode on/off */
2144
2097
{ "bypass.start" , 0 , 0 , "UPS.PowerConverter.Input.[2].SwitchOnControl" , NULL , "1" , HU_TYPE_CMD , eaton_input_bypass_mode_on_info },
0 commit comments