Cannot add inputs

2 weeks ago, I lost the electricy at home due to provider issue. After 15 min the electricy came back but my IOTAWATT was down.

After reading this community I discovered that the SD was damaged.
:slight_smile: I tried to read the SD card on my laptop but is was impossible to access to the data. The card was not accesible by the computer.
I bought a new card and thanks to this post I rebuilt the content of the card.
All was ok and began to rebuild the file config.txt.
It was ok for the 3 first one input. And I saw in home assistant the update of these values.
But now I am blocked because I tried to add the other inputs and each time I lost the configuration of the new entries. ( I tried 3 times and I lost all the new entries and the update of home assistant was not updated)

Was is the issue?
Why I am losing the update of the config.txt?

Thanks

Are you using two tabs or two computers to access the app?

Thanks overasy but it is not the issue.
Yesterday I worked at least 4 hours but I am blocked. I did a lot of different tests.

The issue is that the file config.txt is not complete. I tried at least 10 times from scratch and the config.txt does not updated correctly the file config.txt
I have some point of wifi at 4 meters so no issue on this.

I formatted the SDCARD and put the content of the SD from the git.
I can update the first lines of the input ( VT + 3 CT) . I can see that the config.txt is ok I can see that each time I added an new entry on the input (from the form INPUT) I can see that the IOTAWATT try to write. (I can see that the led red ) but after the fisrt 3 inputs I can not see any update of the config.txt . ( I am putting al the 14 inputs each time so the form is completed but on the status I can see only 3 or 4 inputs All the other are not present)
I am very desappointed.
I tried also to prepare from my laptop the config+1.txt and to see if the ESP32 will be
updated but not. I have tried from the SD car directly removing the new card and update from windows.
( I tried directly also with the file manager but it was a failure each time.)

When I see the SD card I can see that some files are with bad time. when the system create them for the fisrt time . Could be an issue also on the battery ?

The config.txt file has protections. I don’t know what you are doing, but I suspect either your SDcard is defective, or you are doing something that you are not mentioning.

Either way, the quickest and easiest thing would be to send me the unit. What was your original order number.

My order is [Order #127807].
Sorry to answer late.
( I have tried to another new SD card from scratch and the result is the same.)
So thanks to propose me to send back the IOTAwatt but this could have a high price only to send me and go back. I am in Europe.
(It is really an hardware that all the houses need. With 14 inputs we can really know where we are using our electicity. I am using it really for 1 years. IT is for my house of holidays )

How can we proceed?

Only for information the configuration should be like this:
{
“format”:2,
“timezone”:0,
“update”:“MINOR”,
“device”:{
“name”:“IotaWatt”,
“version”:3,
“channels”:“15”,
“burden”:[
0,
20,
20,
20,
20,
20,
20,
20,
20,
20,
20,
20,
20,
20,
20
]
},
“inputs”:[
{
“channel”:0,
“name”:“Input_0”,
“type”:“VT”,
“model”:“Ideal 77DE-06-09(EU)”,
“cal”:“19.06”
},
{
“channel”:1,
“name”:“General”,
“type”:“CT”,
“model”:“AcuCT-H063-100”,
“phase”:0.6,
“turns”:2000,
“cal”:“100.00”
},
{
“channel”:2,
“name”:“wine”,
“type”:“CT”,
“model”:“AcuCT-H040-50”,
“phase”:1,
“turns”:1000,
“cal”:“50.00”
},
{
“channel”:3,
“name”:“floor2”,
“type”:“CT”,
“model”:“AcuCT-H040-50”,
“phase”:1,
“turns”:1000,
“cal”:“50.00”
},
{
“channel”:4,
“name”:“studio”,
“type”:“CT”,
“model”:“AcuCT-H040-50”,
“phase”:1,
“turns”:1000,
“cal”:“50.00”
},
{
“channel”:5,
“name”:“plug_1floor”,
“type”:“CT”,
“model”:“AcuCT-H040-50”,
“phase”:1,
“turns”:1000,
“cal”:“50.00”
},
{
“channel”:6,
“name”:“Plugkitchen”,
“type”:“CT”,
“model”:“AcuCT-H040-50”,
“phase”:1,
“turns”:1000,
“cal”:“50.00”
},
{
“channel”:7,
“name”:“Light1”,
“type”:“CT”,
“model”:“AcuCT-H040-50”,
“phase”:1,
“turns”:1000,
“cal”:“50.00”
},
{
“channel”:8,
“name”:“vitro_vaisselle”,
“type”:“CT”,
“model”:“AcuCT-H040-50”,
“phase”:1,
“turns”:1000,
“cal”:“50.00”
},
{
“channel”:9,
“name”:“lift”,
“type”:“CT”,
“model”:“AcuCT-H040-50”,
“phase”:1,
“turns”:1000,
“cal”:“50.00”
},
{
“channel”:10,
“name”:“plug_0floor”,
“type”:“CT”,
“model”:“AcuCT-H040-50”,
“phase”:1,
“turns”:1000,
“cal”:“50.00”
},
{
“channel”:11,
“name”:“light_0floor”,
“type”:“CT”,
“model”:“AcuCT-H040-50”,
“phase”:1,
“turns”:1000,
“cal”:“50.00”
},
{
“channel”:12,
“name”:“machine_0floor”,
“type”:“CT”,
“model”:“AcuCT-H040-50”,
“phase”:1,
“turns”:1000,
“cal”:“50.00”
},
{
“channel”:13,
“name”:“IT_0floor”,
“type”:“CT”,
“model”:“AcuCT-H040-50”,
“phase”:1,
“turns”:1000,
“cal”:“50.00”
},
{
“channel”:14,
“name”:“Aerothermy”,
“type”:“CT”,
“model”:“AcuCT-H063-100”,
“phase”:0.6,
“turns”:2000,
“cal”:“100.00”
}
],
“outputs”:
}

When I paste that config into JSON LINT it does not pass as valid Json.

The issue of the JSON file is due to the copy/paste ( look the outputs , the characters are bad. And the quote are not the doble quote . Copy/paste windows ). I have verified the JSON file and it works BUT the issue is not on this. I am not using it during my test.

My scenario is:
Take a new SDCard
Format the card
complete the full git , create a zip with the program that propose (creation of the file boblemaire IoTaWatt master SD.zip)
extract the file and put on the SDCard.
Nothing more . I am not changing anything on the card manually.
start the IOTawatt and fill all the input one by one.

all seems ok but when I want to see the status only 3 lines are presents.

OK, that’s a little different than what was described earlier. Lets try a few things:

Type in the following URL and post the response
http://iotawatt.local/status?inputs=yes

Run the file manager, select config.txt and post a screenshot of the file as displayed in the editor.

Hello,

I think that my scenario has not changed. ( for the last 2 or 3 replies)

Here is the output

{“inputs”:[{“channel”:0,“Vrms”:227.9075,“Hz”:50.03328,“phase”:1.46},{“channel”:1,“Watts”:“180”,“Pf”:0.384879,“phase”:0.8,“lastphase”:-0.66},{“channel”:4,“Watts”:" 0",“Pf”:0,“phase”:1.4,“lastphase”:-0.06},{“channel”:5,“Watts”:" 2",“Pf”:0.126117,“phase”:1.4,“lastphase”:-0.06}]}

And the config screenshot please.

Here the screenshots


image

image

Hello Overeasy,

some news about my situation.

I thought you figured it out that those inputs are the only ones configured.

No, it is not configured because it is my issue.
The scenario is quite simple so I have created a small video.
I am trying to add entries ( This time I have added 2 only ) and as you can see the configuration is not taking in account.
It is like this after trying with 2 new SDCARD.
My scenario is the same from the begining: The difference is that I have not added all the inputs.

Please post the message log.

Please post the status display with the statistics tab expanded.

Is there any way you can give me access to the unit via port forwarding?