Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TuyaReceived values under >E #22

Open
blakadder opened this issue Jul 17, 2020 · 1 comment
Open

TuyaReceived values under >E #22

blakadder opened this issue Jul 17, 2020 · 1 comment

Comments

@blakadder
Copy link

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"?

@gemu2015
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants