# Help with architecture of new system

**URL:** <https://community.openhab.org/t/help-with-architecture-of-new-system/3437>\
**Category:** Home Automation\
**Created:** [October 18, 2015, 4:18am UTC](https://community.openhab.org/t/help-with-architecture-of-new-system/3437 "2015-10-18T04:18:29Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![gonium](https://community.openhab.org/user_avatar/community.openhab.org/gonium/32/70967_2.png) [@gonium](https://community.openhab.org/u/gonium)\
**Post date:** [October 19, 2015, 3:00pm UTC](https://community.openhab.org/t/help-with-architecture-of-new-system/3437/13 "2015-10-19T15:00:14Z")

</div>

> [@Chuck\_Claunch](#):
>
> @gonium I like that approach too, I wonder if there’s any difference in battery life between the two?
> 
> I really want to do everything in my power to avoid batteries altogether. I already have a PoE switch and was thinking a PoE solution might be awesome, but then it seems PoE parts are fairly expensive unless I design my own.

You mean HTTP vs. MQTT? I don’t think that there is any difference between the two in terms of power consumption. Both need a running wifi connection along with an IP stack - so basically, the processor is running most of the time.

I have my sensors connected to mains power all the time - I did a quick check and found that they are using 2W of power each. The main source of power loss seems to be the power supply itself. I had a bunch of old 3V3 wall-wart power supplies sitting on my desk and put them to use, no special consideration here.

But [@mjptec mentioned in this thread](https://community.openhab.org/t/diy-cheap-wifi-based-temperature-humidity-sensor-based-on-esp8266-dht22/2746/6) that he wanted to investigate operating the sensors from a battery. The main power draw occurs when wifi is switched on, but in deepsleep mode, the ESP8266 draws only around 20 microamps. I therefore think it is a viable option to have the ESP8266 powered down most of the time and then wake up just to take a measurement and submit it to OpenHAB.

---

_[View the full topic](https://community.openhab.org/t/help-with-architecture-of-new-system/3437)._
