I have some basic question about the usage of OpenhabItem:
Constructor
def __init__(self, name: str, initial_value: Any = None,
label: Optional[str] = None, tags: FrozenSet[str] = frozenset(), groups: FrozenSet[str] = frozenset(),
metadata: Mapping[str, MetaData] = Map()):
In which use cases the constructor is used?
All I have seen is in the form
my_item_val = OpenhabItem.get_item("MyItem").get_value()
OpenhabItem.get_item("isSunsetTimeLightsON").oh_send_command("OFF")