Sub entity support #103
-
Hi, Do you think there is an easy way to add it? |
Beta Was this translation helpful? Give feedback.
Answered by
DerAndereAndi
Jul 25, 2024
Replies: 1 comment 2 replies
-
Hi, this is already supported. Example code for an EV added to an EVSE: localDevice := c.eebusService.LocalDevice()
evseEntity := localDevice.EntityForType(model.EntityTypeTypeEVSE)
// EV
evseAddress := evseEntity.Address().Entity[0]
evEntity := spine.NewEntityLocal(localDevice, model.EntityTypeTypeEV, []model.AddressEntityType{evseAddress, 1}) |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
heavyweight87
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, this is already supported.
Example code for an EV added to an EVSE: