Is there any way to trigger and parse MQTT messages directly from HomeyScript ?
In my house I have several sonoff modules and generic esp8266 modules running with tasmota firmware, which used to be connected to my domoticz server via MQTT. Now I want to connect these to my Homey and I find that to be very clumsy.
I use the Sonoff app to connect to the sonoff devices, that works okay-ish. But for the generic esp8266 modules with several different sensors connected I use a very clumsy setup based on the MQTT Client app triggering a flow and then as action in these flow’s run a Homeyscript to parse the MQTT message.
Is there any way I can directly subscribe to an MQTT topic from a HomeyScipt and trigger that script directly when an MQTT message arrives to parse it ?
Another somewhat related question is to have Homeyscript directly create devices to hold e.g. sensor data. Now I manually create variables via the better-logic app, create devices from these variables and have the Homeyscript update these devices based on received MQTT messages. I would very much like to have a simpler setup for this, e.g. directly create variables/devices from the Homeyscript to store and display the received sensor data, can that be done ?
I’m working on generic Tasmota module support for the Sonoff app, so at some point in the future you would be able to use that app to connect your devices to Homey. Expect a (beta) release hopefully somewhere in the next week or two.
that would be great, is there any way I can help you with this app ?
I don’t have a software background, so helping in coding wouldn’t be a good idea, but testing and helping with use-case would be possible.
For example what I often use are these Wemos devices, with tasmota firmware and then with e.g. temperature/humidity/pressure/luminance sensors connected. It would be great if these sensor values could be sent to Homey and put in some variable that can be used for other flows, or can be logged via insights.
That’s exactly my goal
This is exactly what I’m looking for
few weeks ago you mentioned an app-update in the works, any news on that yet ?
in the meantime i’ve built myself a few more sensors using tasmota (e.g. energy monitor, humidity, temp, pressure, luminance etc.) and would very much like to connect these to my Homey,
Also i’ve updated Homey to V2rc2, not yet sure whether or not that was wise to do, but don’t feel like reverting back and losing all my devices.
Sorry, no news yet. The code I have to implement to make sensor-support work may not work anymore when moving to V2, so I’m reluctant to spend a lot of time on it for the time being.
Hmm, that’s a pity, I noticed indeed that the sonoff app stopped working when I switched to V2.
The mqtt client luckily still does work, so I’m currently trying to combine that with homeyscript to still be able to parse the sensor values, but since I don’t have a software background that’s a little difficult road
I’m holding off from installing V2 until (at least) it’s considered to be stable.