The object_id contains node_id and value instance id
to not collide with other entity_ids
object_id = "{}_{}".format(slugify(self.name),
self._value.node.node_id)
// Add the instance id if there is more than one instance for the value
if self._value.instance > 1:
return "{}_{}".format(object_id, self._value.instance)
After Change
The object_id contains node_id and value instance id
to not collide with other entity_ids
return _object_id(self._value)
@property
def state_attributes(self):
Returns the state attributes.