Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ public void connectionStatus(boolean status) {
} else {
logger.debug("{}: disconnected", thing.getUID().getId());

updateStatus(ThingStatus.ONLINE, ThingStatusDetail.NONE, "Waiting for device wake up");
updateStatus(ThingStatus.ONLINE, ThingStatusDetail.NONE, "@text/online.wait-for-device");

ScheduledFuture<?> pollingJob = this.pollingJob;
if (pollingJob != null) {
Expand Down Expand Up @@ -570,12 +570,12 @@ public void initialize() {
thing.getChannels().forEach(this::configureChannel);

if (!configuration.ip.isBlank()) {
updateStatus(ThingStatus.ONLINE, ThingStatusDetail.NONE, "Waiting for device wake up");
updateStatus(ThingStatus.ONLINE, ThingStatusDetail.NONE, "@text/online.wait-for-device");

this.tuyaDevice = new TuyaDevice(gson, this, eventLoopGroup, configuration.deviceId,
configuration.localKey.getBytes(StandardCharsets.UTF_8), configuration.ip, configuration.protocol);
} else {
updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.CONFIGURATION_PENDING, "Waiting for IP address");
updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.CONFIGURATION_PENDING, "@text/offline.wait-for-ip");
}

udpDiscoveryListener.registerListener(configuration.deviceId, this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
addon.tuya.name = Tuya Binding
addon.tuya.description = This is the binding for Tuya.

# thing status descriptions

offline.wait-for-ip = Waiting for IP address
online.wait-for-device = Waiting for device wake up

# thing types

thing-type.tuya.project.label = Tuya Cloud Project
Expand Down