Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 39 additions & 2 deletions simpleAPI/simpleapi.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,12 @@ private function getWriteParameters($params)
'minimal_permanent_current',
'max_price_eco',
'chargepoint_lock',
'bat_mode'
'bat_mode',
'instant_charging_limit',
'instant_charging_amount',
'instant_charging_soc',
'vehicle',
'manual_soc'
];

foreach ($writeableKeys as $key) {
Expand Down Expand Up @@ -198,6 +203,22 @@ private function getReadParameters($params)
// Chargepoint - Status & Energie
'get_chargepoint_imported',
'get_chargepoint_exported',
'get_chargepoint_daily_imported',
'get_chargepoint_daily_exported',
'get_chargepoint_frequency',
'get_chargepoint_rfid',
'get_chargepoint_rfid_timestamp',
'get_chargepoint_evse_current',
'get_chargepoint_power_factors',
'get_chargepoint_power_factor_p1',
'get_chargepoint_power_factor_p2',
'get_chargepoint_power_factor_p3',
'get_chargepoint_config_name',
'get_chargepoint_connected_vehicle_name',
'get_chargepoint_charge_template_name',
'get_chargepoint_charge_template_min_current',
'get_chargepoint_instant_charging_current',
'get_chargepoint_pv_charging_min_current',
'get_chargepoint_soc',
'get_chargepoint_state_str',
'get_chargepoint_fault_str',
Expand Down Expand Up @@ -395,6 +416,7 @@ private function isComplexParameter($param)
'get_chargepoint_voltages',
'get_chargepoint_currents',
'get_chargepoint_powers',
'get_chargepoint_power_factors',
'get_counter_voltages',
'get_counter_currents',
'get_counter_powers',
Expand All @@ -418,7 +440,12 @@ private function isChargepointParameter($param)
'minimal_permanent_current',
'max_price_eco',
'chargepoint_lock',
'bat_mode'
'bat_mode',
'instant_charging_limit',
'instant_charging_amount',
'instant_charging_soc',
'vehicle',
'manual_soc'
];

return in_array($param, $chargepointParameters) || strpos($param, 'chargepoint') !== false;
Expand All @@ -434,6 +461,16 @@ private function getSuccessMessage($param, $value, $chargepointId)
return "Chargemode for chargepoint {$chargepointId} set to {$value}.";
case 'chargecurrent':
return "Chargecurrent for chargepoint {$chargepointId} set to {$value}A";
case 'instant_charging_limit':
return "Instant charging limit for chargepoint {$chargepointId} set to {$value}.";
case 'instant_charging_amount':
return "Instant charging amount for chargepoint {$chargepointId} set to {$value}kWh.";
case 'instant_charging_soc':
return "Instant charging SoC for chargepoint {$chargepointId} set to {$value}%.";
case 'vehicle':
return "Vehicle {$value} assigned to chargepoint {$chargepointId}.";
case 'manual_soc':
return "Manual SoC set to {$value}% for chargepoint {$chargepointId}.";
default:
return "Parameter {$param} set to {$value}.";
}
Expand Down
Loading