Returns the last published config for a given entity, or generates a new one with pending changes if requested
configType
The type of config to retrieve
id
The ID of the entity to retrieve config for
Returns String .
publicDevice
role