Hi all,
I have a project to monitor Electric Current by Sonoff Pow with Tasmota fw. I not only want to real time monitor, I also want to monitor the historical data. I dont know whether we have any way to store all info of Console or can we push the Current value directly to Thingspeak through MQTT?
I also find the Configure Logging in Tasmota, but I dont know how to use it.
EX:
15:52:50 MQT: tele/temp/SENSOR = {"Time":"2018-09-07T15:52:50","AM2301":{"Temperature":29.6,"Humidity":71.3},"TempUnit":"C"}
15:53:00 MQT: tele/temp/STATE = {"Time":"2018-09-07T15:53:00","Uptime":"0T00:03:55","Vcc":2.997,"Wifi":{"AP":1,"SSId":"Anonymous","RSSI":76,"APMac":"10:6F:3F:4A:43:B0"}}
15:53:00 MQT: tele/temp/SENSOR = {"Time":"2018-09-07T15:53:00","AM2301":{"Temperature":29.6,"Humidity":71.4},"TempUnit":"C"}
15:53:10 MQT: tele/temp/STATE = {"Time":"2018-09-07T15:53:10","Uptime":"0T00:04:05","Vcc":2.997,"Wifi":{"AP":1,"SSId":"Anonymous","RSSI":88,"APMac":"10:6F:3F:4A:43:B0"}}
15:53:10 MQT: tele/temp/SENSOR = {"Time":"2018-09-07T15:53:10","AM2301":{"Temperature":29.6,"Humidity":71.4},"TempUnit":"C"}
15:53:20 MQT: tele/temp/STATE = {"Time":"2018-09-07T15:53:20","Uptime":"0T00:04:15","Vcc":2.997,"Wifi":{"AP":1,"SSId":"Anonymous","RSSI":98,"APMac":"10:6F:3F:4A:43:B0"}}
15:53:20 MQT: tele/temp/SENSOR = {"Time":"2018-09-07T15:53:20","AM2301":{"Temperature":29.6,"Humidity":71.4},"TempUnit":"C"}
15:53:30 MQT: tele/temp/STATE = {"Time":"2018-09-07T15:53:30","Uptime":"0T00:04:25","Vcc":2.997,"Wifi":{"AP":1,"SSId":"Anonymous","RSSI":84,"APMac":"10:6F:3F:4A:43:B0"}}
15:53:30 MQT: tele/temp/SENSOR = {"Time":"2018-09-07T15:53:30","AM2301":{"Temperature":29.6,"Humidity":71.4},"TempUnit":"C"}
You can set a logging host under settings/ logging in the web interface or in the user_config.h.
Depending on the lots of information you wont...
You can set the level of information you need.
Local logging on the sonoff? There is to less memory.
Thingspeak is a cloud service so far i know.
You use windows? Take a look for Syslog Server 1.2.3
-> https://sourceforge.net/projects/syslog-server/files/syslog-server/1.2.x/
That's a very good one and simple to configure.
Here a screenshot:
Can you share how to config to get the the info from Sonoff with Tasmota fw? Everything is new to me :D
@lesonquan
Ok wait some minutes and you get the info..
So now but don't hit if you have to scroll to much ;-)
In figure one you hit the Configuration button, red square.
Figure 1
In figure 2 you hit the Configuration Logging Button, red square.
Figure 2
In figure 3 you have the red and the blue square
Figure 3
Red square:
Blue square:
In the posting where i copied a screenshot from my log server there are only
some sonoff and a laptop. That's a testing machine not my home automation.
I want give these screenshots because there are all my industrial plc's are visible
which i use to do a lot more home automation then sonoff does now.
I hope that helps. For any more question, please ask.
@mike2nl thank you so much for your kink support. it works like a charm 馃憤
Most helpful comment
@lesonquan
Ok wait some minutes and you get the info..
So now but don't hit if you have to scroll to much ;-)
In figure one you hit the Configuration button, red square.

Figure 1
In figure 2 you hit the Configuration Logging Button, red square.

Figure 2
In figure 3 you have the red and the blue square

Figure 3
Red square:
arrow and see what you can get. How higher the level the more logging
you get. And believe me it can be a lot when you use 213 sonoff's.
Blue square:
a (sorry) Windows machine, argh. ;-). There i have running the logging
server because that machine runs 24/7 for 5 years now without reboot.
value. The value 300 means every 300 second there can be data send to
the logging server, so far there is something to send.
In the posting where i copied a screenshot from my log server there are only
some sonoff and a laptop. That's a testing machine not my home automation.
I want give these screenshots because there are all my industrial plc's are visible
which i use to do a lot more home automation then sonoff does now.
I hope that helps. For any more question, please ask.