Integration Solutions using MQTT

Yes Both directions are possible

Here is link to RulesAPI rule that is copying Zigbee or Z-wave humidity measurement to MQTT broker (RPi)

Integration Solutions using MQTT - Devices & Integrations - SmartThings Community

Using @TapioX’s rule it’s true that you could probably accomplish what you want with the MQTT Devices driver. But let me know if your preference is to use the SmartApp and I can certainly add support for those two device types.

I think TapioX’s solution (if it works) is simpler and ideal. I have installed the Mosquito MQTT broker on my RPi, I just need to know what to do with TapioX’s RulesAPI, i.e. where do I paste it?

You can either use the CLI, or you can use my API Browser+ app, which makes it pretty easy. If you need guidance on either, DM me.

Can the text device be changed so that it says the text value on the “front end”/icon of the device?
Right now it works good but I need to click on the device icon to read the text value.
On the UI it shows only ‘Connected’ in the text area. (unlike devices like temperature that show the temp in the icon text)

Thanks again

Yes, I can probably do this and will see if I can include this in my next update.

2 Likes

hi @TAustin
im trying to get the bed temperature from my 3d printer into smartthings using mqtt but cant quite manage it .
the topic is octoPrint/temperature/bed
which returns

i have smartthings mqtt temp set to


but its not working , any help would be much apreciated.
thanks
martin

I think your JSON key should just be “actual”.

2 Likes

That (exposing values in mqtt text tile) would be great. Also, back on January 24th we touched on possibly adding the ability to the mqtt energy device to set values. similar to the temp device. I’ve been using mqtt temp since then to send my energy usage to mqtt and discovered that ST doesn’t like temperatures higher than 913 degrees. Must be a New Englander. Or maybe the HEM5 just gave up the ghost. Would be over-joyed if that could be added to the next update as well. Thanks.

thank you that works great
your a star
martin

is ther any way to change the temperature limit in routines it only allows temps up to 50°c

I believe I can do this. The stock temperatureMeasurement capability is defined to support values up to 10,000. But for some reason the display fields were limited to 50, but I believe I can override that in the device profile. I’ll see what I can do.

1 Like

I would be very interested in a solution to this issue and I believe a lot of other sauna users, too.

I.e. be able to make a routine e.g. to signal “The sauna is ready, now 85C!”

1 Like

thank you
martin

I can’t create a device even though Device Creator is connected to broker… It says “network and/or server issue”

This is sometimes an app issue. Close it and try again later. If still the same problem, you may have to delete the device and recreate it with an Add device / Scan for nearby devices. You’ll need to re-enter your broker info in the new creator device’s Settings.

You can do this without affecting your already-created MQTT devices.

Is anyone using the MQTT Devices driver ENERGY device who ISN’T using a JSON-formatted message? I’d like to remove the string message format option for this device so I can add additional capabilities. (@ragoss ?)

Whenever you have more than one capability in a device, it’s really not practical to handle messages containing multiple values as a string format.

I am only using the JSON formatted items.

BTW, since you suggested using MQTT a while back I have been making extensive use of it. I have been using Node Red to generate some very good dash boards.

Thanks for your pointing out this path to me.

1 Like

Agreed! MQTT + Node-Red + GoogleSheets really makes ST so much more powerful. I no longer miss WebCore. Can’t wait to see if ActionTiles will recognize the MQTT Text device if/when the payload is exposed in ST. That will be a whole new world of info available.

Hi - I’m working on adding this now. What units are you working with? Setting a value will have to be done with a fixed unit such as kWh. Will that work ok for you? I can provide a setting to publish in different units, but your automation may have to set it using a specific unit. Hope that make sense…

For me, kWh is perfect for the MQTT Energy device. Thanks.