-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move find_if filter to a custom function
Signed-off-by: Soumya Subramanya <[email protected]> fix bug in matching Signed-off-by: Soumya Subramanya <[email protected]> fix formatting Signed-off-by: Soumya Subramanya <[email protected]> fix more formatting Signed-off-by: Soumya Subramanya <[email protected]> some more strange formatting Signed-off-by: Soumya Subramanya <[email protected]> PR changes Signed-off-by: Soumya Subramanya <[email protected]> fix formatting Signed-off-by: Soumya Subramanya <[email protected]>
- Loading branch information
1 parent
51aca06
commit 0a5a692
Showing
8 changed files
with
179 additions
and
182 deletions.
There are no files selected for viewing
261 changes: 131 additions & 130 deletions
261
config/v201/component_schemas/standardized/ChargingStation.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,132 +1,133 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"description": "Schema for ChargingStation", | ||
"type": "object", | ||
"name": "ChargingStation", | ||
"properties": { | ||
"AllowNewSessionsPendingFirmwareUpdate": { | ||
"variable_name": "AllowNewSessionsPendingFirmwareUpdate", | ||
"characteristics": { | ||
"supportsMonitoring": true, | ||
"dataType": "boolean" | ||
}, | ||
"attributes": [ | ||
{ | ||
"type": "Actual", | ||
"mutability": "ReadWrite" | ||
} | ||
], | ||
"instance": "BytesPerMessage", | ||
"description": "Indicates whether new sessions can be started on EVSEs, while Charging Station is waiting for all EVSEs to become Available in order to start a pending firmware update", | ||
"type": "boolean" | ||
}, | ||
"ChargingStationAvailabilityState": { | ||
"variable_name": "AvailabilityState", | ||
"characteristics": { | ||
"supportsMonitoring": true, | ||
"dataType": "OptionList" | ||
}, | ||
"attributes": [ | ||
{ | ||
"type": "Actual", | ||
"mutability": "ReadOnly" | ||
} | ||
], | ||
"description": "This variable reports current availability state for the ChargingStation", | ||
"type": "string" | ||
}, | ||
"ChargingStationPhaseRotation": { | ||
"variable_name": "PhaseRotation", | ||
"characteristics": { | ||
"supportsMonitoring": true, | ||
"dataType": "string" | ||
}, | ||
"attributes": [ | ||
{ | ||
"type": "Actual", | ||
"mutability": "ReadWrite" | ||
} | ||
], | ||
"description": "This variable describes the phase rotation of a Component relative to its parent Component, using a three letter string consisting of the letters: R, S, T and x.", | ||
"type": "string" | ||
}, | ||
"ChargingStationAvailable": { | ||
"variable_name": "Available", | ||
"characteristics": { | ||
"supportsMonitoring": true, | ||
"dataType": "boolean" | ||
}, | ||
"attributes": [ | ||
{ | ||
"type": "Actual", | ||
"mutability": "ReadOnly" | ||
} | ||
], | ||
"description": "Component exists", | ||
"type": "boolean" | ||
}, | ||
"ChargingStationModel": { | ||
"variable_name": "Model", | ||
"characteristics": { | ||
"supportsMonitoring": true, | ||
"dataType": "string" | ||
}, | ||
"attributes": [ | ||
{ | ||
"type": "Actual" | ||
} | ||
], | ||
"description": "Charging station model as reported in BootNotification.", | ||
"type": "string" | ||
}, | ||
"ChargingStationSupplyPhases": { | ||
"variable_name": "SupplyPhases", | ||
"characteristics": { | ||
"supportsMonitoring": true, | ||
"dataType": "integer" | ||
}, | ||
"attributes": [ | ||
{ | ||
"type": "Actual", | ||
"mutability": "ReadOnly" | ||
} | ||
], | ||
"description": "Number of alternating current phases connected/available.", | ||
"type": "integer" | ||
}, | ||
"ChargingStationVendorName": { | ||
"variable_name": "VendorName", | ||
"characteristics": { | ||
"supportsMonitoring": true, | ||
"dataType": "string" | ||
}, | ||
"attributes": [ | ||
{ | ||
"type": "Actual" | ||
} | ||
], | ||
"description": "Charging station vendor name as reported in BootNotification.", | ||
"type": "string" | ||
}, | ||
"ChargingStationProblem": { | ||
"variable_name": "Problem", | ||
"characteristics": { | ||
"supportsMonitoring": true, | ||
"dataType": "boolean" | ||
}, | ||
"attributes": [ | ||
{ | ||
"type": "Actual", | ||
"mutability": "ReadWrite" | ||
} | ||
], | ||
"description": "Some problem/fault exists", | ||
"type": "boolean" | ||
} | ||
}, | ||
"required": [ | ||
"ChargingStationAvailabilityState", | ||
"ChargingStationAvailable", | ||
"ChargingStationSupplyPhases" | ||
] | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"description": "Schema for ChargingStation", | ||
"type": "object", | ||
"name": "ChargingStation", | ||
"properties": { | ||
"AllowNewSessionsPendingFirmwareUpdate": { | ||
"variable_name": "AllowNewSessionsPendingFirmwareUpdate", | ||
"characteristics": { | ||
"supportsMonitoring": true, | ||
"dataType": "boolean" | ||
}, | ||
"attributes": [ | ||
{ | ||
"type": "Actual", | ||
"mutability": "ReadWrite" | ||
} | ||
], | ||
"instance": "BytesPerMessage", | ||
"description": "Indicates whether new sessions can be started on EVSEs, while Charging Station is waiting for all EVSEs to become Available in order to start a pending firmware update", | ||
"type": "boolean" | ||
}, | ||
"ChargingStationAvailabilityState": { | ||
"variable_name": "AvailabilityState", | ||
"characteristics": { | ||
"supportsMonitoring": true, | ||
"dataType": "OptionList", | ||
"valuesList": "Available,Occupied,Reserved,Unavailable,Faulted" | ||
}, | ||
"attributes": [ | ||
{ | ||
"type": "Actual", | ||
"mutability": "ReadOnly" | ||
} | ||
], | ||
"description": "This variable reports current availability state for the ChargingStation", | ||
"type": "string" | ||
}, | ||
"ChargingStationPhaseRotation": { | ||
"variable_name": "PhaseRotation", | ||
"characteristics": { | ||
"supportsMonitoring": true, | ||
"dataType": "string" | ||
}, | ||
"attributes": [ | ||
{ | ||
"type": "Actual", | ||
"mutability": "ReadWrite" | ||
} | ||
], | ||
"description": "This variable describes the phase rotation of a Component relative to its parent Component, using a three letter string consisting of the letters: R, S, T and x.", | ||
"type": "string" | ||
}, | ||
"ChargingStationAvailable": { | ||
"variable_name": "Available", | ||
"characteristics": { | ||
"supportsMonitoring": true, | ||
"dataType": "boolean" | ||
}, | ||
"attributes": [ | ||
{ | ||
"type": "Actual", | ||
"mutability": "ReadOnly" | ||
} | ||
], | ||
"description": "Component exists", | ||
"type": "boolean" | ||
}, | ||
"ChargingStationModel": { | ||
"variable_name": "Model", | ||
"characteristics": { | ||
"supportsMonitoring": true, | ||
"dataType": "string" | ||
}, | ||
"attributes": [ | ||
{ | ||
"type": "Actual" | ||
} | ||
], | ||
"description": "Charging station model as reported in BootNotification.", | ||
"type": "string" | ||
}, | ||
"ChargingStationSupplyPhases": { | ||
"variable_name": "SupplyPhases", | ||
"characteristics": { | ||
"supportsMonitoring": true, | ||
"dataType": "integer" | ||
}, | ||
"attributes": [ | ||
{ | ||
"type": "Actual", | ||
"mutability": "ReadOnly" | ||
} | ||
], | ||
"description": "Number of alternating current phases connected/available.", | ||
"type": "integer" | ||
}, | ||
"ChargingStationVendorName": { | ||
"variable_name": "VendorName", | ||
"characteristics": { | ||
"supportsMonitoring": true, | ||
"dataType": "string" | ||
}, | ||
"attributes": [ | ||
{ | ||
"type": "Actual" | ||
} | ||
], | ||
"description": "Charging station vendor name as reported in BootNotification.", | ||
"type": "string" | ||
}, | ||
"ChargingStationProblem": { | ||
"variable_name": "Problem", | ||
"characteristics": { | ||
"supportsMonitoring": true, | ||
"dataType": "boolean" | ||
}, | ||
"attributes": [ | ||
{ | ||
"type": "Actual", | ||
"mutability": "ReadWrite" | ||
} | ||
], | ||
"description": "Some problem/fault exists", | ||
"type": "boolean" | ||
} | ||
}, | ||
"required": [ | ||
"ChargingStationAvailabilityState", | ||
"ChargingStationAvailable", | ||
"ChargingStationSupplyPhases" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.