Wifi switch as integration without Smartlife

Is it possible to use wifi switches from Tuya which normaly works with Smartlife to integrate in HA without Smartlife because the Smartlife HUB always gives an error after reboot of HA.

It depends. There are some version of SmartLife devices (including wifi switches) that can be converted into esphome based firmware via LibreTiny Platform. Search for the devices that are supported and make them Cloud-Free. Check here.

1 Like

What do you think of the possibilities for using Local Tuya HACS integration for such devices? It looks non-trivial to set up, but feels like it could help such situations.

1 Like

As per my understanding the Localtuya still requires you to sign-in for Tuya’s developer account that will expires after few months. You have to continue the renewal process now and then. I am not sure there any permanent method out there which I am not aware of, if you have any references could please share?

I would just get rid of anything that is Tuya wifi in the setup and instead migrate over to zigbee, matter/thread and or zwave based hardware.

Tuya wifi will always require the app for initial setup and continual internet requirement to talk back to their cloud servers.

The problem IMHO with things like localtuya/tuya local is the many hoops you need to jump through to get device ID’s etc to even get that working… its not worth the hassle when you have better options on the market.

Hell if you are going to the effort for converting TW gear to local only you may as well just put in the time to do more DIY setups using ESP32’s and gear that that can be flashed with things like Tasmota as others prefer which have less blocks to deal with and are more open to it.

1 Like

Thanks everyone.
Here the issue, I have a wifi 4ch light switch which is working fine with Smartlife because there I could tell the switch as an impulse switch.
I have 3 circuits at home with impulse switches, so only 1 press and the light should stay on, this works with Smartlife because there I can tell the configuration to keep the switch on after a press.
Now I bought the same 4ch switch but for Zigbee and installed it with Z2MQTT but I can’t program the switch to keep the light on after a press, not even with an automation which I programmed to keep the switch on for 1 minute after a press from a button in that circuit.
Maybe someone has an idea?

Can you provide the exact model of these switches and have you tried them with ZHA instead of Z2MQTT?

1 Like

afbeelding

Aubess Tuya Wifi / Zigbee 16a Mini Smart Switch 1/2/3/4 Bende Support 2-Way

Is there any hardware module which can handle a simple button press to switch lights on and off?

All relays support this as well as smart switches, you just need to grab one that is better supported out of the box.

I have a zigbee based Aqara T2 relay behind a power socket in the shared laundry room that works without issues with my HA instance.

1 Like

What options do you see if you go to Z2M > Devices > your switch > settings tab?

Can you post a screenshot?

1 Like

This is my actual Wifi switch because I had to put it back while the Zigbee switch did not work correctly, I will power on the Zigbee tonight and I’ll show you the settings of that one too. Is it possible to couple this Wifi switch without Smartlife into HA?
afbeelding

As I stated earlier when its Tuya Wifi aka using the Tuya and Smartlife apps then its not able to be used directly you need the zigbee, zwave or matter/thread version of relays for use without 3rd party accounts via the cloud based integrations that stop working when there is no internet.

1 Like

Sorry for asking again, I also want to get rid of Smartlife, just this switch I have to replace by a kind of switch which acts like an impulse relais for hotel lights

Hmm…first time I heard of this… using Tuya local now for about 2 years, never failed (so far).
Maybe it applies to the tuya dev account, which you don’t need anymore once local tuya is configured (however, when you want to add additional tuya devices you do need it again; but in my case it was just a one-time action, I do not have plans to add any other tuya devices)

PS: I just tried to login my tuya account; still seems to be active… :wink:

There should be other options below to change the way they are controlled.

for example with my T2 Relay:

image

image

image

1 Like

But in the Smartlife integration there’s no more but I’ll connect the other zigbee switch and give you here the options later

Yes, please do that and also show the actual model this switch is recognised as.

Good evening, I have connected the switch and here are the results from the stats in ZHA ;


afbeelding
afbeelding

And here the stats when it’s in Z2M

{
    "backlight_mode": null,
    "linkquality": 123,
    "power_on_behavior_l1": null,
    "power_on_behavior_l2": null,
    "power_on_behavior_l3": null,
    "power_on_behavior_l4": null,
    "state_l1": "OFF",
    "state_l2": "OFF",
    "state_l3": "OFF",
    "state_l4": "OFF"
}

And the state OFF is only used for when the unit has been powered off from the mains

I don’t see any possibility to put it on as an impuls switch