Page 1 of 1

ZSU module + Arduino - how to get I/O statuses after restart

Posted: 2024年 Jul 26日 21:11
by mrudzin

Hello

I have device which use ZSU Zigbee module and Arduino board.
Device contains 8 relays controlled from app and related buttons connected to MCU.
I use Tuya_ZIGBEE_MCU_SDK library for arduino.

Base functionality works fine - I can control relays by pushbuttons and app and it synchronize with app.

Problem occurs after restart of device.
I have DPID 27 named "relay status" which give me possibility to choose between off, on and remember last status.
Whatever I choose - device reset all statuses ater restart

This is only information and MCU should remember statuses or it comes from ZSU / gateway?
If it's remember by ZSU - how to get statuses after restart?


Re: ZSU module + Arduino - how to get I/O statuses after restart

Posted: 2024年 Jul 28日 04:29
by mattymactutor

I also have a similar issue on different hardware. I can connect to TUYA device from ESP32 UART and send/receive from app but when I upload a new sketch I want to ask the cloud for the current values. Right now, I only get values when dp_process function is fired off after I change something in the app.