I saw this thread - Tuya switch module - momentary switch support - which describes the same problem I am having. I am trying to use the dry contact relay outputs as a garage door opener, but can't get the switch to operate in momentary mode, it is just on or off.
I am using the latest Zemismart Multi-Gang Wall Switch module and have ensured I am using the latest one. I also noted the part about setting the switch to momentary mode by selecting from the dropdown then clicking the Switch Type button. I have re-acquired the switch and am now out of ideas as to how to get this to work. Can it be that the switch simply doesn't support momentary mode? This is the switch I am using - https://www.aliexpress.com/item/1005006993707388.html
Can anyone help?
Very possibly, Tuya products often change internally even with the same model number.
One option would be to control your Tuya switch with a virtual switch that has auto off options.
Virtual devices
Virtual Devices
Virtual devices are useful as "simulated" devices that do not correspond to a real/physical device. For example, a virtual switch device using the "Virtual Switch" driver allows you to send on()
and off()
commands to the device and have the switch
state update as expected, simulating the behavior of a "real" device without actually doing anything. This can be helpful to test app behavior without needing to rely on a real device.
Virtual devices can be created using the Virtual button under Add Device Manually.
(Some LAN or cloud devices can also be manually created like "virtual" devices using a specific driver and setup instructions provided for that device or integration.)
Thank you for this - I hadn't considered a virtual switch,
Plese post this device Zigbee model/manufacturer.
I am not quite sure what you are trying to achieve with this relay :
- pulse the relay when an externally wired button is pushed?
- pulse the relay from HE command?
Connecting it to a garage door opener....I know there are specific devices available but I had this on the shelf and wanted to use it if I can.
This device should support the 'switch type' settings. Although the fingerprint is not included in the latest Zemismart ZigBee Wall Switch Multi-Gang driver, you should be able to change the switch type from the Commands section.
You can enable the Debug logging and post here the device response to the command.