File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -40,8 +40,10 @@ Module.register("MMM-TuyaSL", {
40
40
var text = "*" + this . translate ( "TXT_TUYASL" ) + "*\n" ;
41
41
if ( this . devices ) {
42
42
for ( var i = 0 ; i < this . devices . length ; i ++ ) {
43
- text += "*" + this . devices [ i ] . alias + "*: " ;
44
- text += "`" + ( this . devices [ i ] . on_off == 1 ? this . translate ( "TXT_TUYASL_ON" ) : this . translate ( "TXT_TUYASL_OFF" ) ) + "`\n" ;
43
+ if ( this . devices [ i ] . type != 'scene' ) {
44
+ text += "*" + this . devices [ i ] . alias + "*: " ;
45
+ text += "`" + ( this . devices [ i ] . online ? this . translate ( "TXT_TUYASL_ONLINE" ) : this . translate ( "TXT_TUYASL_OFFLINE" ) ) + "/" + ( this . devices [ i ] . on_off ? this . translate ( "TXT_TUYASL_ON" ) : this . translate ( "TXT_TUYASL_OFF" ) ) + "`\n" ;
46
+ }
45
47
}
46
48
}
47
49
else {
Original file line number Diff line number Diff line change 3
3
"NO_DATA" : " No data" ,
4
4
"TXT_TUYASL" : " Tuya STATUS" ,
5
5
"TXT_TUYASL_DESC" : " all status of installed IoT/smart-home devices on Tuya IoT-Platform" ,
6
+ "TXT_TUYASL_ONLINE" : " ONLINE" ,
7
+ "TXT_TUYASL_OFFLINE" : " OFFLINE" ,
6
8
"TXT_TUYASL_ON" : " ON" ,
7
9
"TXT_TUYASL_OFF" : " OFF"
8
10
}
Original file line number Diff line number Diff line change 3
3
"NO_DATA" : " Data tidak tersedia" ,
4
4
"TXT_TUYASL" : " STATUS Tuya" ,
5
5
"TXT_TUYASL_DESC" : " menampilkan semua status peralatan IoT/smart-home berbasis Tuya IoT-Platform" ,
6
+ "TXT_TUYASL_ONLINE" : " DARING" ,
7
+ "TXT_TUYASL_OFFLINE" : " LURING" ,
6
8
"TXT_TUYASL_ON" : " NYALA" ,
7
9
"TXT_TUYASL_OFF" : " PADAM"
8
10
}
You can’t perform that action at this time.
0 commit comments