MQTT question

Hi everyone,

Does anyone know if it is possible to use mqtt in the same way that we use rest api.
By that I mean like a sevice to do things in ha via cloudmqtt.
For example control wemo, hue and zwave devices.

Sending something like /hue/light1/turnon or calling a scene likr /scene/dim_lights