Sonoff-Tasmota
Sonoff-Tasmota copied to clipboard
TuyaReceived values under >E
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"?
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