I am trying to add a esp8266 noedmcu 0.9 board to my esphome sketch. I can get my sketch compiled if I use modemcu bur there are at least three versions of this board. What am I doing wrong?
Do you mean there are more things wrong than just posting a question with no details?
I don’t understand your reply. For clarification here is my sketch
esphome:
name: test02
friendly_name: test02
esp8266:
board: nodemcu
Enable logging
logger:
Enable Home Assistant API
api:
encryption:
key: “TBAGBusZi5yEUBo/ZS0oDWvKkFb4D9afznWx2QmGH3Q=”
ota:
- platform: esphome
password: “155104a28be871272fb329d8a4a3dc55”
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: “Test02 Fallback Hotspot”
password: “GoWpGPzu5N4S”
captive_portal:
sensor:
platform: adc
id: moisture_voltage
name: “Soil Moisture Voltage”
pin: A0
accuracy_decimals: 2
update_interval: 60s
Ya, there are multiple types of esp8266 NodeMCU…
Select the esp8266 option that matches your board and thats it…
If your sketch compiles, there isnt a problem and your not doing anything wrong. Im really struggling to understand why you even think theres a problem at all, honestly.
FYI, people could help you better in these situations if you also post a picture of your esp8266 or a link just to verify which board you have and which option you need to select.
Thanks for you useful reply Fallingaway24. I now realise not everybody is familiar with esp microcontrollers… However I’m getting results and will now extend the process and have even more fun
Be careful… you keep talking like and you’ll be hooked like the rest of us…
I have another question . Well two actually.
1 should I start anew topic?
2 I have,at the moment, two data streams from two different esp8266s. I would like to display the data on a chart but I don’t know how to do that. Assuming there is a solution I will then expand the number of data streams to at least five and possibly ten. Any suggestions?
Ya, no problem! I’ll just add it onto your bill from earlier $$$
Display the data on a chart where? A HA dashboard chart? On an LCD display hooked up to an esp board? on some home desktop PC? What exactly are we talking about here?
If you’re talking about in HA, there are several good options for creating charts/graphs and you can plot multiple data sets on 1 chart too.
I want to display on a win 10 PC
Through what? Home Assistant?
I don’t know. I currently use ESPhome
I’m copying the log data from each esp8266 to a libraoffice spreadsheet and then graph the result. At the moment I can only see one esp data stream as a time
Oh, im not sure. The need to collect, save, and graph logged data isnt something ive needed since using esphome/Homeassistant, plus you can set that up in a HA database and just include any data in your routine backups you do. Im not really sure doing all that separately on the pc is any better.
What kind of data do you need to collect, store, and graph? Please dont say its temperature data…
How do I set up a database in home assistant.
[08:57:58][D][sensor:093]: ‘Soil Moisture Voltage’: Sending state 0.31243 V with 2 decimals of accuracy [09:12:58][D][sensor:093]: ‘Soil Moisture Voltage’: Sending state 0.31139 V with 2 decimals of accuracy [09:27:58][D][sensor:093]: ‘Soil Moisture Voltage’: Sending state 0.30456 V with 2 decimals of accuracy [09:42:58][D][sensor:093]: ‘Soil Moisture Voltage’: Sending state 0.29694 V with 2 decimals of accuracy [09:57:58][D][sensor:093]: ‘Soil Moisture Voltage’: Sending state 0.27585 V with 2 decimals of accuracy [10:12:58][D][sensor:093]: ‘Soil Moisture Voltage’: Sending state 0.27721 V with 2 decimals of accuracy [10:27:58][D][sensor:093]: ‘Soil Moisture Voltage’: Sending state 0.27611 V with 2 decimals of accuracy [10:42:58][D][sensor:093]: ‘Soil Moisture Voltage’: Sending state 0.27513 V with 2 decimals of accuracy [10:57:58][D][sensor:093]: ‘Soil Moisture Voltage’: Sending state 0.27474 V with 2 decimals of accuracy [11:12:58][D][sensor:093]: ‘Soil Moisture Voltage’: Sending state 0.27370 V with 2 decimals of accuracy [11:27:58][D][sensor:093]: ‘Soil Moisture Voltage’: Sending state 0.27480 V with 2 decimals of accuracy [11:42:58][D][sensor:093]: ‘Soil Moisture Voltage’: Sending state 0.27376 V with 2 decimals of accuracy [11:57:58][D][sensor:093]: ‘Soil Moisture Voltage’: Sending state 0.27415 V with 2 decimals of accuracy [12:12:58][D][sensor:093]: ‘Soil Moisture Voltage’: Sending state 0.27331 V with 2 decimals of accuracy [12:27:58][D][sensor:093]: ‘Soil Moisture Voltage’: Sending state 0.27422 V with 2 decimals of accuracy [12:42:58][D][sensor:093]: ‘Soil Moisture Voltage’: Sending state 0.27513 V with 2 decimals of accuracy [12:57:58][D][sensor:093]: ‘Soil Moisture Voltage’: Sending state 0.27546 V with 2 decimals of accuracy [13:12:58][D][sensor:093]: ‘Soil Moisture Voltage’: Sending state 0.27604 V with 2 decimals of accuracy [13:27:58][D][sensor:093]: ‘Soil Moisture Voltage’: Sending state 0.27585 V with 2 decimals of accuracy [13:42:58][D][sensor:093]: ‘Soil Moisture Voltage’: Sending state 0.27578 V with 2 decimals of accuracy [13:57:58][D][sensor:093]: ‘Soil Moisture Voltage’: Sending state 0.27656 V with 2 decimals of accuracy
The data is a running average and the data is soil humidity from a capacitive sensor
That’s valuable data that needs to be stored and graphed? What would you ever possibly need historic soil moisture sensor readings for?
How do you setup a database in Homeassistant? Well, what have you tried to do in order to learn how to do it? Where have you looked? What did you find and what issues are you having with it?
Also, why in the world are you taking soil moisture samples every 15 seconds? You do realize that you only need to take a few each day, 3 or 4 samples max! Do you think the moisture level changes fast enough to justify measuring it 4 times a minute?
Which sensor are you using. Are you aware that certain sensors have a huge problem with corrosion and the electric charge applied to it for a measurement, that actually speeds up the corrosion and makes it worse. This absolutely decreases the life of the sensor and the corrosion has been known to kill the surrounding plants in some cases. This is another reason for not taking an insane amount of samples.
If you don’t use Home assistant, you can log your sensors directly from Esphome to Google sheets for example.
I am currently sensing every 25 minutes. The soil moisture is to some extent an example as I will sense a number of environmental issues. Exporting to a databas would be a solution but I cant find anything in ESPhome about that. I am using a pcpacitive sensor which does not corrode due to electrolisis
I will search ESPhome for export to google sheets
should have said every 15 minutes
That’s because the database would be through Homeassistant just like Google sheets so, looking in esphome won’t be very useful. Do you not have Google or know about search engines? It’s so simple it’s ridiculous. I did a search for “esphome + google sheets” and there it is, right at the top.
It’s just HTTP Get request what you need on Esphome code.
Setting up google sheets for logging is not anyhow Esphome related, so you can follow any tutorial you like.