Closes the blind tilt to the nearest endpoint.
Closes the blind tilt down to the nearest endpoint.
Closes the blind tilt up to the nearest endpoint.
Sends a command to the device and awaits a response.
The command buffer.
A Promise that resolves with the response buffer.
Connects to the device.
A Promise that resolves when the connection is complete.
Disconnects from the device.
A Promise that resolves when the disconnection is complete.
Discovers the device services.
A Promise that resolves with the list of services.
Retrieves the basic information of the blind tilt.
Retrieves the device characteristics.
A Promise that resolves with the device characteristics.
Retrieves the device name.
A Promise that resolves with the device name.
Retrieves the current position of the blind tilt.
Internal method to handle the connection process.
A Promise that resolves when the connection is complete.
Logs a message with the specified log level.
The severity level of the log (e.g., 'info', 'warn', 'error').
The log message to be emitted.
Opens the blind tilt to the fully open position.
Pauses the blind tilt operation.
Runs the blind tilt to the specified position.
The target position percentage (0-100).
The running mode (0 or 1).
Sets the device name.
The new device name.
A Promise that resolves when the name is set.
Unsubscribes from the notify characteristic.
A Promise that resolves when the unsubscription is complete.
Static
parseParses the service data and manufacturer data for the WoBlindTilt device.
The service data buffer.
The manufacturer data buffer.
The function to emit log messages.
Optional
reverse: boolean = falseWhether to reverse the tilt percentage.
Class representing a WoBlindTilt device.
See
https://github.com/OpenWonderLabs/SwitchBotAPI-BLE/blob/latest/devicetypes/curtain.md