You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to push some changes for PR, but it seems the repo is locked down - so here's a ticket.
I ran into some major headaches when trying to use the set_metadata() function. The documentation for the namespace parameter currently says "namespace", which isn't very useful. I ended up searching the internet for some time trying to find out what an acceptable value would be and in the end figured it out by playing around with the OpenHAB UI. My recommendations for change are:
docs/interface_openhab.rst
======================================
If referring to namespaces, a full list can be found in the `openHAB repo
<https://github.com/openhab/openhab-webui/blob/main/bundles/org.openhab.ui/web/src/assets/definitions/metadata/namespaces.js>`_.
.. automodule:: HABApp.openhab.interface
:members:
:imported-members:
openhab/connection_handler/func_sync.py
"""
Add/set metadata to an item
:param item_name: name of the item or item
:param namespace: namespace, e.g. stateDescription
:param value: value
:param config: configuration, e.g. {"options": "A,B,C"}
:return: True if metadata was successfully created/updated
"""
The text was updated successfully, but these errors were encountered:
I tried to push some changes for PR, but it seems the repo is locked down - so here's a ticket.
I ran into some major headaches when trying to use the
set_metadata()
function. The documentation for the namespace parameter currently says "namespace", which isn't very useful. I ended up searching the internet for some time trying to find out what an acceptable value would be and in the end figured it out by playing around with the OpenHAB UI. My recommendations for change are:docs/interface_openhab.rst
openhab/connection_handler/func_sync.py
The text was updated successfully, but these errors were encountered: