I have temperature sensor connected from NodeMCU to Home Assistant. Logging is available for errors and warnings. In Home Assistant, can I create a separate new log file which only has the sensor name and it’s values? Using the logger feature isn’t suitable for this because it stores the complete thread with timestamp and other information.
My goal is to take these sensor values and publish them to a database which is not supported by Home Assistant. I’m trying to get the values and then write a script that sends these values to the database. I have looked up UART communication from Home Assistant, MQTT communication and now logging the values to a .txt file. Through a .txt file, I can parse the values to the database eventually.
I’m a beginner so any suggestions would help. Thanks.
Which database are you using? Is there a reason for using home assistant as a middle man between the sensor and the database, meaning do you actually use the sensor data in home assistant or do you only want to have it in the database? Do you know that you can flash Tasmota onto the Wemos, which then allows publishing the sensor data to MQTT?