-
-
Notifications
You must be signed in to change notification settings - Fork 0
Naming Convention
The connector uses the following naming convention for its entities:
A connector entity in the FastyBird IoT ecosystem refers to a entity which is holding basic configuration and is responsible for managing communication with Tuya devices and other FastyBird IoT ecosystem services.
A device in the FastyBird IoT ecosystem refers to a entity which is representing a physical Tuya device.
Chanel is a mapped property to physical device data point entity.
A property in the FastyBird IoT ecosystem refers to a entity which is holding configuration values or device actual state. Connector, Device and Channel entity has own Property entities.
Connector related properties are used to store configuration like communication mode
, access secret
or uid
. This configuration
values are used to connect to Tuya cloud.
Device related properties are used to store configuration like ip address
, communication port
or to store basic device information
like hardware model
, manufacturer
or local key
. Some of them have to be configured to be able to use this connector
or to communicate with device. In case some of the mandatory property is missing, connector will log and error.
Channel related properties are used for storing actual state of Tuya device. It could be a switch state
or a light brightness
.
These values are read from device and stored in system.
The Tuya devices transmit information, referred to as "data points" (DPS) or "device function points," in a JSON string format. These DPS attributes determine the state of the device. The keys within the DPS dictionary correspond to key-value pairs, where the key is the DP ID and its value is the dpValue.
There are two devices modes supported by this connector.
The first mode is Cloud mode and uses communication with Tuya cloud servers. The second mode is Local mode and is supported by Tuya devices. It allows you to control device through local API.
Tip
If you find incorrect or missing information, feel free to notify us. You could use the issue tracker or mail or X network for any idea that can improve the project. Thank you for testing, reporting and contributing.
Homepage https://www.fastybird.com and repository https://github.com/fastybird/tuya-connector.