Wireless Door sensor with openhab, esp8266 and raspberry pi

Hello everyone,

I am working on home automation system with raspberry pi, esp8266 and openhab application. Raspberry pi is working as server here and openhab is giving commands to esp8266 through raspberry pi and turning on and off lights.
I have done that part successfully and then we added the door sensor part in out project. The wired door sensor part is completed and we are getting the notifications and status of door as well.
But now i want to convert my wired door sensor into wireless door sensor.
But when i connect my esp8266 with the battery it gets turned on but the wi-fi part does’t work so the door sensor part as well.

Please help me in this if anyone had done this type of work before. Any help will be really appreciated.

1 Like

Have a look at this: https://youtu.be/BoYVr2UwWWg

1 Like

Dear Sir,

I am trying to do the same but the esp8266 is not connecting to wi-fi when I am powering it from the battery.

Please guide me how to use esp8266 in deep sleep mode and I am trying to make this for my front door which opens approx 10-15 times in a day.

Please suggest me which battery system will be good for it.

Best Regards,

This has nothing to do with openHAB. You need to search the arduino forum or search “ESP8266 door sensor” or google. Then implement the deep sleep as well in your code.

1 Like

Have you looked at flashing the ESP8266 with Esp Easy or Tasmota firmware and use the webUI interface for sett up?

I use both on deferent devices and find it works well with OH.

1 Like

I have not tried yet. Can you please tell me how you have done that with openhab.Tasmota firmware and openhab. How?

1 Like

https://www.letscontrolit.com/wiki/index.php/Tutorial_building_and_uploading_with_platformio

Here is a tutorial, how to install platformio using Atom to flash Esp Easy. You can install Esp Easy with Arduino IDE but in my opinion platformio is much better and easier.

1 Like