I’m running OH3, with the Nortek GoControl HUSBZB-1. I am migrating away from my Amazon Dash buttons to anything else, with my major requirement that the smart buttons be cheap. To that end, I purchased samples of several buttons, but I could never get the 4-gang switch to pair, and it’s probably because of the Profile used in that switch not compatible with ZHA.
So, my question is, if a person does want to move down the path of multiple profiles being supported, what is the best route? I would think that one radio could decode multiple profile sessions, but maybe that’s too much to ask of a single controller. Should I buy a separate bridge for each profile?
Or, maybe I’m doing it wrong. I’m new to Zigbee, and that’s possible. Firmware on the controller is the latest as of three months ago. I can check for updates though. The switch that I really like is this one:
It’s cheap, and with all of the button combinations, I’ll only need one per area.
Or, is there an alternative to this scene switch that is compatible with ZHA?
All profiles use the same cluster definition so can normally work together, and in general, the binding will support multiple profiles. . There are some exceptions - eg Smart Energy Profile has additional security requirements that may prevent some devices being used on a ZHA network unless the ZHA network supports the SEP security concept, but that will not impact you here.
I believe though that Tuya devices use ZHA anyway. It’s more likely that these devices need to be kept awake while they join and are fully discovered - although I’m just guessing as I’ve not used them myself and you haven’t actually described what is wrong.
Just to confirm that you have updated the firmware yourself as the firmware that comes with this device is very old? That said, I don’t think that will matter for these devices as I don’t think they make use of the newer (eg Zigbee 3.0) features.
I’m not familiar with these devices, but I know some of the Chinese sensors and they need to be kept awake - constantly pushing some button about every half second while they are discovered, added to the inbox, and then added as a thing so that it’s awake for all the discovery phases.
I also don’t know what happens now - are they being discovered at all, but then no channels, or? If the device never even shows up in the inbox, then it might be another issue as they should at least be discovered. I’ve got some other Chinese switches here that must be included on channel 26, and can then be manually moved to other channels.
Unfortunately many of these devices don’t follow the Zigbee standards - they use part of the standards, and that’s fine when used with their own gateway, but it can be problematic on others that may not know the finer details of the device.
Progress. I was pressing the wrong button for pairing. It pairs now, but none of the switch channels show. I remember reading about this somewhere, so I need to do some more digging.
I’m not sure how this device works, but there is one switch channel showing here (ie the level control / dimmer channel) - I guess there aren’t more lower down the list. It might be that this device effectively provides a scene trigger rather than individual switch/dimmer channels which might require a custom device definition - hopefully searching around will provide more information.
Okay, after reading up on other threads, this switch has modes that can be set. It can be put into dimmer mode, or four-switch mode. Mine may just need to be configured, and it seems that most are configuring it with the Tuya gateway first.
If I were to do it with the Nortek controller, I think the process would be to flash special firmware, do the configuration, then restore the normal controller firmware. I have the TS004F. Apparently the TS0044 is hardwired for four button control, so I could just try to only get the TS0044’s.
Hi Chris,
I remember @schalli providing a patch to support these switches in this thread ?
AFAIK this is still pending, but from what I tested then this would work fine.
Regards,
Thomas
That thread applies to the TS004x where x is a number, not the TS004F. Apparently the 4F is more flexible and requires a configuration message from the controller to put it in the desired operating mode.
To be honest: Those switches are more a pain in the back than anything else - Tuya (and the various clones) are simply deriving their own “dialect” causing it to be fully compatible only with their own gateway. The required config payload seems to be the reason for the whole mess.
I’d recommend to go for something different - for me Enocean Switches work perfectly (I own a Enocean-knx Gateway) , but there are some ZWave switches as well.
Just some small update here, as I hate to waste money on devices not working and I had some time to play with it:
Using zigbee2mqtt adding this switch is working fine.
It reports the correct buttons and the type of action (single, double, hold), the battery state and the link quality.
What I have not figured out yet is how to setup single channel per button + action, as zigbee2mqtt publishes everything a a single topic. My target would be to have separate channel per button at least,
best would be a channel per button+action.
Example (Single press of button on, from zigbee2mqtt log):
One can have a channel for the actions only, filtering by a JSONPATH expression when the data comes in. But I do not know if it is possible to trigger a channel only if a certain value is contained in the data received without coding. Yes, I could build a rule in code and trigger separate items programmatically. This would allow e.g. to have separate channels per button, reporting e.g. “single”, “double”…
But I’d like to see an option without coding - one thing less to maintain. My impression is, that this is not possible without coding some rules.
I bought also one tuya 4 gang switch. I tried to pair with zigbee2mqtt. But then I discovered that the default mod in the switch is dimmer mod, so I get one topic the topics: Button on, Button off, dimmer value up, dimmer value down.
But I would like to use it as 4 4 button switch (button 1 on and off, button 2 on and off …)
Can I change de operating mod without a tuya controller?
Solved it on my own.
The trick is to use a proper transformation of the incoming value.
With a regular expression on the value of interest this can be achieved:
Example (React only on a single button press of button 1):
REGEX:(.*1_single.*)∩JSONPATH:$.action
Maybe this is of use for someone else.
In addition here the channel definition I created for the switch. Remember to adjust the mqtt state topic
Here some example.
I have glued one of those switches under our dining table to be able to control the lights and other things in the room from where I am sitting without using Alexa, which can be disturbing during a conversation.
The example toggles the lights above the table using a blockly script (Item linked to the actor is called EG_EZ_Tischleuchte_Switch ) when performing a single short click on button 1 of the Tuya switch.
Your thingUID and channelUID will obviously be different.
Thanks for the additional info. I ended up getting it working in a different way by eliminating the transformations, using only only the universal button press trigger and using a switch statement in Rules-DSL.