I'm really not much of an expert in electronics, but I'm wondering if it is possible to power the sensors directly from the mains.
I mean, I know it is, but it would have to be a cheap, small and power effective way.
My concern about batteries is the need to replace and throw them every year. It's not about money because they are inexpensive, rather about pollution, mainly, and, well.. the need to constantly replace them.
A small switched mode power supply from the mains is not a problem. So long as you have a power point near to where you need it, then it's not going to to any harm.
I inetned to use both mains and battery dependant on the location of the sensor.
Switched mode power supply is ok. But you need access to power lines and they consume constant power - small but constant. I guess for ESP8266 this is mandatory.
Actually I have very good experience with NRF24L01. It consume little current and for close range and simple sensors they can operate on battery couple of years. It can'not be done for all sensors but for example this are my results:
-door/windows sensors - 2 AA batteries 10 years
-temperature/humidity sensor - 2 AA batteries at least 5 years
-water leak sensor - 2AA batteries 10 years
-soil moisture sensor - 2 AA batteries - 10 years
I'm actually testing my sensors with wasted batteries for period half a year and this are approximations rounded to lower value.
I use solid state relays for the lights. They have internal opto couplers so you are only providing enough current to light a led to control the light.
I try to repost my question here, pheraps could be better
cdj wrote: Wait wait...ok for battery status, i wait it !
but don't understand exactely if easyiot library doesn't support power save what can i do... i suppose nothing !
Is it a good idea to try how many time stay an arduino nano with ESP8266 and bmp180 with 4 AA battery ? or its useless because can stay on just some days ?
I've seen in serial monitor that when esp is idle easyiot ping all time....