Tuya switchbot integration using openmqttgateway(esp32)

Hi, I’m very new to home assistant and have been trying to integrate a switch bot I got off Aliexpress (https://www.aliexpress.com/item/1005005240504102.html?spm=a2g0o.order_list.order_list_main.33.26fd1802uQqiMR) with the home assistant using openmqttgateway. I successfully set up a home assistant and connected the esp32 to the MQTT broker. I do see the Mac address of the switch bot but don’t really see the parameters to change like the state, etc. I see the mac address and am not really sure how to go from here any help would be really appreciated

Hi @mihirbh2k

Could you turn on showing Advertisement and advanced data to have the raw data shown as well in the MQTT messages?

This is also available as a Switch in the HA OpenMQTTGateway gateway Configuration.

With a Tuya device though, I am not sure if the state and changes will be shown in the freely available broadcast data, and might require a Tuya solution with connecting to the device, but we can have a look from some messages with the above turned on.

1 Like