I've been really struggling with this one, I'm experimenting with integrating a few Sonoff relays to Homeseer via MQTT. The Sonoff devices are running the Tasmota firmware.
I've got the relay function working perfectly with Homeseer, but whats got me confused is bringing in temperature data into Homeseer. Basically the Tasmota firmware sends all the telemetry data together into one MQTT topic formatted in JSON. I'm trying to take the single JSON string and separate it out into 5 different Homeseer virtual devices.
here is the string that Tasmota sends to Homeseer:
{"Time":"2017-12-07T23:22:18","AM2301":{"Temperature":82.0,"Humidity":5.8},"B MP280":{"Temperature":69.0,"Pressure":997.3},"TempUnit":"F"}
i'm trying to get it into 5 virtual devices named: Time,Temp1,Humidity,Temp2,Pressure
I have zero VB scripting knowledge, but from what i've read it seems i need the NewtonSoft DLL in my Homeseer directory. I don't know where to go from there as to writing the script.
Would someone with more VB knowledge be able to help me out?
Thanks,
James
I've got the relay function working perfectly with Homeseer, but whats got me confused is bringing in temperature data into Homeseer. Basically the Tasmota firmware sends all the telemetry data together into one MQTT topic formatted in JSON. I'm trying to take the single JSON string and separate it out into 5 different Homeseer virtual devices.
here is the string that Tasmota sends to Homeseer:
{"Time":"2017-12-07T23:22:18","AM2301":{"Temperature":82.0,"Humidity":5.8},"B MP280":{"Temperature":69.0,"Pressure":997.3},"TempUnit":"F"}
i'm trying to get it into 5 virtual devices named: Time,Temp1,Humidity,Temp2,Pressure
I have zero VB scripting knowledge, but from what i've read it seems i need the NewtonSoft DLL in my Homeseer directory. I don't know where to go from there as to writing the script.
Would someone with more VB knowledge be able to help me out?
Thanks,
James
Comment