Answer the question
In order to leave comments, you need to log in
Firmware for esp8266?
Please tell me the firmware for esp8266, on which it would be possible to dynamically (web-muzzle, some protocol) set up an autonomous operation logic.
Those firmware that I have already seen (espeasy, sonoff-tasmota) only support online control from an external source (domoticz, openhab). To me, to control the boiler, I need firmware with autonomous control, which independently makes a decision to turn off / off the relay based on the values of the temperature sensors and the specified parameters.
Answer the question
In order to leave comments, you need to log in
Quite by accident I discovered that espeasy supports the simplest scripting language , this option is disabled by default.
on boilerCold#Temperature do
if [boilerCold#Temperature] < 26
gpio,12,1 //relay
gpio,13,0 //led
endif
if [boilerCold#Temperature] > 28
gpio,12,0
gpio,13,1
endif
endon
I think it's easier to use nodemcu lua
there, the file system and the LUA 5.1 interpreter
, the code is launched from files, and knowing the logic of work, you can describe all this in a programming language.
The entry threshold (minimum amount of knowledge) for LUA is lower than for C ++,
you collect here https://nodemcu-build.com/ choosing only the necessary modules, there is also documentation on them. For any DS18B20, there are ready-made libraries both in LUA and built into the firmware written in C ++.
It is better to use the firmware with Float (usually 2 versions come from the site to the mail).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question