-
Type:
Improvement
-
Resolution: Fixed
-
Priority:
Major
-
Component/s: OCPP
-
None
Currently all OCPP chargers connect to the same URL (wss://in.solarnetwork.net/ocpp/j/v16), regardless what SolarNetwork account they are associated with. The account is determined only after the charger successfully authenticates. A user event is then generated for the successful connection. When a charger is misconfigured and unable to connect for any reason, the account cannot be determined and no "failure" user events can be generated because the account is not yet known.
These types of "failure" events can be very helpful for troubleshooting charger configurations, so if the OCPP URL included an account identifier, "failure" user events could be generated to help the account owner understand the nature of the failure, e.g. bad password, identifier not known, etc.
Add support for a new OCPP connection URL syntax that includes some user account identifier. Rather than use the actual user ID, it might make better sense to generate a unique value like a random UUID and associate that with the account. It might be nice to allow users to generate any number of UUIDs to form "groups" of chargers. Whatever the means, the unique identifier and associated OCPP connection URL should be visible to the account owner, through a SolarUser API call and on the OCPP page in the SolarUser UI.