OPEV server.DeviceDiagnosis object creation failed #175
SmartlabEnedis
started this conversation in
General
Replies: 1 comment 1 reply
-
Hi there :) Please use the dev branch. For sure there will be a new release, but nothing decided yet. Work is a bit on hold from my end, see my blog post for reasons. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We implemented a software compliant with OPEV test case using eebus-go.
The software communicates with EVBox Livo wallbox or Mennekes Amtron.
In Scenario 3 of the OPEV use case we need to send error state.
In order to so we are using the server.DeviceDiagnosis object with the method func (d *DeviceDiagnosis) SetLocalState(operatingState *model.DeviceDiagnosisStateDataType)
After creating EEBUS service and adding the usecases (EVSECC, EVCC, EVCEM, OPEV) we try to create an instance of server.DeviceDiagnosis with the function func NewDeviceDiagnosis(localEntity spineapi.EntityLocalInterface) (*DeviceDiagnosis, error) but we have the following error message : "local feature not found".
As we dig in the source code to understand what's happening we found that the line responsible of the error is located in file features/server/devicediagnosis.go at line 17 : feature, err := NewFeature(model.FeatureTypeTypeDeviceConfiguration, localEntity)
We replaced hat line with feature, err := NewFeature(model.FeatureTypeTypeDeviceConfiguration, localEntity) and we don't have the error anymore.
We saw that commit 087f015 from Oct 9, 2024 solve the same problem.
Do you plan to deliver a new release including that fix soon or do you suggest us to use the dev branch ?
Beta Was this translation helpful? Give feedback.
All reactions