Thank you for responding @nickrout .
I searched the Internet and the only thing I found was connecting an (extra) button to the GPIO14, so I couldnāt find any documentation which more kind of signals it can used for.
IĀ“m just starting to explore ESP32/ESPHome and almost no experience with Arduino (just copy paste code), so Iām kind of noob at this kind of stuffā¦
Just curious if Iām heading into the right directionā¦
This is the code Iām using so far (ESPHome).
Your config looks OK at a glance, but you use a lot of extraneous shit that is not needed (what is al lthat stuff under the webserver setup?) Start simple, and go from there.
Thanks @nickrout . I have to do some reading, I guess.
BTW, the config I posted is a working config on my Sonoff Basic.
FYI the Webserver Stuff is used to have an embedded webserver just for crucial access when ESPhome/Home Assistant is not working, for some reason. the css and js files are downloaded and stored locally.
@lordzid I just soldered everything and I booted the Sonoff Basic with only the ādallasā-config and the address is presented! The next step I added the āsensorā config and everything is working!!!
Soooo Cool!
Just some questions left:
1 - The LED is not functioning when I toggle to ON, any idea how to solve this?
2 - Will the log (debug) fill the Sonoffās memory (and eventually) crash it?
3 - In my Home Assistant ESPHome I noticed the Sonoff sate is going to offline, and directly going online again. Is this normal for this device?
Thank you @nickrout and @lordzid for getting me there! Itās highly appreciated!
1 - It is possible to do this. These are the elementary functions that you have to do by yourself.
2 - No, it wonāt, you can sleep well and not be afraid
3 - Malfunctions during operation are possible. It depends on everything.
P.S. Sonoff Basic is a very versatile device for small tasks. For example, I made a thermostat with a temperature sensor (I wrote part of the code to you above), made control of the LED strip (Adjust brightness, turn on sunset or sunrise)
It seems something went wrong, temperature is showing 85 degrees, even after disconnect ā connect main power:
[D][dallas.sensor:136]: 'Sonoff Basic Temperature': Got Temperature=85.0Ā°Ce
[D][sensor:113]: 'Sonoff Basic Temperature': Sending state 85.00000 Ā°C with 1 decimals of accuracye
EDIT: The sensor is reporting the right values again. Seems my soldering skills were bit of decaying. Or my eyes. Or bothā¦
Just testing a long run to see what is happeningā¦