both of them suppose to have the functionality for:
single click
double click
long click
(the double gang is times two per each gang - so total of 6 possible automations)
if I pair them to Tuya using the Tuya zigbee hub, I have all the full functionality.
but if I pair them directly to HA using my Sonoff zigbee hub, it barely works…
I do not use ZHA, but the Zigbee2MQTT Add-on instead.
If you do a search on the Zigbee2MQTT site for TS004F, you don’t find a solution.
This will say the device is not supported (yet).
Best thing what you can do is, first check if the wanted device is supported, then buy.
In summery; If you manage to pair a Zigbee device sucessfully with the ZHA integration then chances are good that it can be made to work even if none or not all attributes are exposed as entities in ZHA, but it means that the device will probably need a custom ZHA Device Handler (also known as a ZHA Quirk) coded for it in order to expose Zigbee clusters and attributes are not exposed as standard by default, however you either need to code such a custom quirk yourself or request device support hoping that someone else can help coding of a zha-quirk for it.
PS: Tip to new Zigbee users: Checkout blakadder’s unofficial Zigbee Device Compatibility Repository. Anyone can help maintain the site by submitting device compatibility information to it. The repository contains independent community member’s reports or device-specific pairing tips for several home automation gateway/bridge/hub software, including open-source Zigbee implementations, such as ZHA, Zigbee2MQTT, and Tasmota (Zigbee2Tasmota). However as it is only maintained by community volenteers submitting updates to it (similar to the concept of Wikipedia) there is not guarantee that it has up-to-date or accurate information, so just because a device is not listed there does not mean that it will not work.