thingsboard-python-rest-client
thingsboard-python-rest-client copied to clipboard
ThingsBoard REST API client
#### Description The default tenant created on a new instance of Thingsboard has almost every attribute blank, including email. Using thingsboard python rest client I am unable to get this...
``` >>> import tb_rest_client.models.models_pe.alarm_notification_rule_trigger_config ModuleNotFoundError: No module named 'tb_rest_client.models.models_pe.notification_rule_trigger_config' >>> import tb_rest_client.models.models_pe >>> import pathlib >>> (pathlib.Path(tb_rest_client.models.models_pe.__path__[0]) / "alarm_notification_rule_trigger_config.py").is_file() True ``` it's simply missing a `from .alarm_notification_rule_trigger_config import AlarmNotificationRuleTrigger` in...
RestClientPE controller models change from PE to CE version when refresh method is called. For example, calling `get_user_device` after refresh result in an attribute error: **AttributeError: 'DeviceControllerApi' object has no...
The commit 80b249b introduced this change to the end of the constructor of SingleEntityVersionCreateRequest and ComplexVersionCreateRequest: ```diff - VersionCreateRequest.__init__(self, branch, type, version_name) + VersionCreateRequest.__init__(self, *args, **kwargs) ``` This is at...
i run into an error, when I try to get Metadata for a Rulechain with get_rule_chain_meta_data() ` try: metadata = rest_client.get_rule_chain_meta_data(rc.id.id) except ValueError as ve: logging.debug("value Error %r", ve)` Invalid...
[ja:/home/ja/thingsboard-python-rest-client/examples] master ± PYTHONPATH=.. python3 example_application.py 2024-01-17 12:51:33 - INFO - example_application - 46 - Asset was created: {'additional_info': None, 'asset_profile_id': {'entity_type': 'ASSET_PROFILE', 'id': '63eb9290-b52e-11ee-b742-57063ee55db6'}, 'created_time': 1705492293837, 'customer_id': {'entity_type': 'CUSTOMER',...
It seems like the requirements from the `requirements.txt` are not automatically installed, if installing the client with pip. I would expect, that they will be automatically installed, which would normally...
This issue affects a lot of methods in different controllers. i.e. def get_customer_user_infos(self, customer_id: CustomerId, page_size: int, page: int, type: Optional[str] = None,text_search:Optional[str] = None, sort_property: Optional[str] = None,sort_order: Optional[str]...
Why is the self.token_info['exp'] variable never written? Shouldn't it be set to the timeout variable of the jwt Token + actual time on getting a new key? Otherwise it will...
It would be great to have a The Things Stack integration controller API as well for the PE version.