Sonoff-Tasmota icon indicating copy to clipboard operation
Sonoff-Tasmota copied to clipboard

TuyaReceived values under >E

Open blakadder opened this issue 4 years ago • 1 comments

Maybe I was doing it wrong but it seems I cannot capture TuyaReceived events into a variable.

Zigbee is documented as supported but I assume Tuya isn't?

Unrelated question: Is there any way to truncate a variable string, for example I only need the last digit from "0302000400000000"?

blakadder avatar Jul 17 '20 07:07 blakadder

TuyaReceived will arrive in >E too

i own no Tuya device but

strvar=TuyaReceived#Data

should do the job

substring: svar=sb(src_svar p n)

p=position (if <0 counts from end) n=number of chars

so svar=sb(src_svar -1 1)

should give the last digit

gemu2015 avatar Jul 17 '20 08:07 gemu2015