Trying to register devices using Thingsboard provided REST API Client (Python). (https://thingsboard.io/docs/reference/python-rest-client/)
I have installed Thingsboard in AWS EC2 instance (Linux 20.04). Python 3.8.10. Required TB related package is already installed. Such as 'tb-rest-client'.
While I can register an 'Asset', but failed to register device, which is my aim actually. Asset is optional for me, at least now. Though it should be similar.
Raising issues for the following line:
File "testTB_01.py", line 59, in <module>
device = Device(name="Thermometer 1", type="thermometer") # this is line 59
Here is the error msg:
raise ValueError("Invalid value for `device_profile_id`, must not be `None`") # noqa: E501
ValueError: Invalid value for `device_profile_id`, must not be `None`
Though I definitely have a value as I am using the example as it is. So not sure where it is going wrong.