Hi
I have problems to connect my smartlife/tuya simpleswitch to openhab.
I have been reading a lot on this community and other webpages, but I still can’t figure out how to connet my smartlife via mqtt broker.
As I understands it, I don’t have to flash it with tasmota.
I don’t need to connect my switches to mosquitto.
I just need to add generic mqtt thing from openhab (as client) and use my mqtt broker “as a bridge” to my switch (client).
I’m running openhab 3 on ubuntu and mosquitto on my Synology NAS. I have my smartlife switch ID, localkey, local IP.
Openhab has 192.168.1.5 and my mqtt broker is online, generic mqtt is online with bridge.
Synology nas runnig mosqutitto has 192.168.1.160
I have tried generic mqtt, add channel, on/off switch, mqtt state topic / command
Configuration:
tuya or no text/simpleswitch or switch or no text/#id# bffea3d1258b5fa68xxxxx/#key# 19d1038606axxxx/#IP# 192.168.1.215 or no text/topic
tuya or no text/simpleswitch or switch or nothing/#id# bffea3d1258b5fa68xxxxx/#key# 19d1038606axxxx/#IP# 192.168.1.215 or no text/command
What have I been doing wrong.
Do I need to put id, local key in a file with somewhere (in mosquitto or openhab)?
Thanks