i was thinking about a feature that the ESP Easy is missing and that i would need for a project.
If you just have sensors, it is no problem to set the chip into deep sleep. In case you need to use a pin as an output, the problem is that you cannot disable deep sleep in any way except restarting the device and changing the setting manually.
Is it possible to implement one of the following features:
- Read the desired state of an output pin via a MQTT broker after start up? For this you would need to get the last published state.
- Read the desired state of deep sleep via a MQTT broker? Maybe here the "host" could publish / broadcast a corresponding message via MQTT directly after he received the sensor data from the ESP8266.
I am not too deep into MQTT but it would be a very helpful feature to be able to switch between those two operational modes. Background is the following:
Normally I use the ESP8266 just as a sensor. But in case i that somebody is at home and awake, I want to use one I/O pin to enable and disable LED light. But this might be the case just for some hours a day (maybe 6 out of 24). And for the other 18 hours the ESP8266 could operate just as a sensor drawing much less current.
I really appreciate your work and hope for a positive reply!
![Lach :-)](./images/smilies/icon_e_smile.gif)