That can’t be your original excel file - the columns aren’t the same.
Close whatever you have open there and open the original CSV file as written by HA, don’t change anything in it. Right click the column header. The letter C at the top (blue arrow). Select format cells, then text. What happens?
Well at least we confirmed it’s excel messing with the number formats. Your sensor is working fine.
I’m not sure why you’re changing the columns or what you’re trying to do.
Quick and dirty solution - Change the entire spreadsheet to text. Click top right where row and columns meet. Format Cells to text.
What is your goal with this data? What are you trying to accomplish? If you can explain that, maybe I can help you there. If you’re just trying to get averages or something like that you are way over complicating things.
Hey guys… similar idea here. Would like to export sensor.MyPhone_geocoded_location to a CSV that saves updates on-the-move. So obviously if I’m on the move in a city, OR if I’m at home for 12 hours… either way every /5 minutes might not be ideal.
Basically I’m just interested in saving this sensor data; I have no idea how far back it goes but don’t want to lose it. Is this the right place for it? Thanks!
I also wanted to export some data about a sensor for the past 7 days, and I found the homeassistant history API useful. Here is what I used to export it to a file
I need a .txt file to be created every time the automation is run (periodically) with only the temperature value and unit i.e “15ºC”.
Is there any way to get the message from home assistant with only this data? or it has to be extracted somehow with excel macros or any other resource?
My purpose is to use this temp value an show it as an overlay in my video surveillance stream in Blue Iris, similar as what is done via Blue Iris tools.
I’m not sure where to put your code.
My sensor is a BME280 which is running in a wemos d1 mini and reporting to home assistant via ESPHome. It is not plugged to the HA server but connected via wifi
You didn’t read the link i posted about states templates.
Do you expect a finished solution that you just have to copy and paste, or do you want to learn something?