Skip to content

Sub entity support #103

Closed Answered by DerAndereAndi
heavyweight87 asked this question in Q&A
Jul 25, 2024 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

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})

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@heavyweight87
Comment options

@DerAndereAndi
Comment options

Answer selected by heavyweight87
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #96 on August 09, 2024 10:58.