<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>ESP8266 door/window sensor (NodeMCU(LUA) - without Arduino)</title>
		<description>Discuss ESP8266 door/window sensor (NodeMCU(LUA) - without Arduino)</description>
		<link>https://iot-playground.com/esp8266-door-window-sensor-nodemcu-lua-no-arduino</link>
		<lastBuildDate>Tue, 07 Apr 2026 10:31:05 +0200</lastBuildDate>
		<generator>JComments</generator>
		<atom:link href="https://iot-playground.com/component/jcomments/feed/com_content/36" rel="self" type="application/rss+xml" />
		<item>
			<title>Kari Vainio says:</title>
			<link>https://iot-playground.com/esp8266-door-window-sensor-nodemcu-lua-no-arduino#comment-559</link>
			<description><![CDATA[Is it possible to add second sensor to node? For example, I have a door closed/open sensor and I'd like to add another sensor for the lock of the same door. Then I would know that door is "closed and locked" or door is "closed and unlocked".]]></description>
			<dc:creator>Kari Vainio</dc:creator>
			<pubDate>Thu, 18 Feb 2016 10:09:38 +0100</pubDate>
			<guid>https://iot-playground.com/esp8266-door-window-sensor-nodemcu-lua-no-arduino#comment-559</guid>
		</item>
		<item>
			<title>Bob says:</title>
			<link>https://iot-playground.com/esp8266-door-window-sensor-nodemcu-lua-no-arduino#comment-485</link>
			<description><![CDATA[Think you need to update the nodemcu link as Its showing 404 not found.]]></description>
			<dc:creator>Bob</dc:creator>
			<pubDate>Mon, 30 Nov 2015 17:39:53 +0100</pubDate>
			<guid>https://iot-playground.com/esp8266-door-window-sensor-nodemcu-lua-no-arduino#comment-485</guid>
		</item>
		<item>
			<title>DarioCdj says:</title>
			<link>https://iot-playground.com/esp8266-door-window-sensor-nodemcu-lua-no-arduino#comment-249</link>
			<description><![CDATA[ Forget the battery... you must use a power supply and an esp different from ESP-01 or it doesn't work on reboot if reed is closed.]]></description>
			<dc:creator>DarioCdj</dc:creator>
			<pubDate>Tue, 09 Jun 2015 13:40:59 +0200</pubDate>
			<guid>https://iot-playground.com/esp8266-door-window-sensor-nodemcu-lua-no-arduino#comment-249</guid>
		</item>
		<item>
			<title>Gilson says:</title>
			<link>https://iot-playground.com/esp8266-door-window-sensor-nodemcu-lua-no-arduino#comment-248</link>
			<description><![CDATA[How long should the battery last in this setup? Thanks, Gilson]]></description>
			<dc:creator>Gilson</dc:creator>
			<pubDate>Sun, 07 Jun 2015 19:01:31 +0200</pubDate>
			<guid>https://iot-playground.com/esp8266-door-window-sensor-nodemcu-lua-no-arduino#comment-248</guid>
		</item>
		<item>
			<title>DarioCdj says:</title>
			<link>https://iot-playground.com/esp8266-door-window-sensor-nodemcu-lua-no-arduino#comment-246</link>
			<description><![CDATA[And finally it works !!! Ok to connect gpio2 to reed and reed to +3.3v Ok to modify code : gpio.mode(4,gpio.INT,gpio.PULLDOWN) BUT IS ALSO NECESSARY TO MODIFY : command = 'ControlOff' if (status == 0) then	command = 'ControlOn' end (and not status == 1 !!!)]]></description>
			<dc:creator>DarioCdj</dc:creator>
			<pubDate>Thu, 04 Jun 2015 12:11:51 +0200</pubDate>
			<guid>https://iot-playground.com/esp8266-door-window-sensor-nodemcu-lua-no-arduino#comment-246</guid>
		</item>
		<item>
			<title>DarioCdj says:</title>
			<link>https://iot-playground.com/esp8266-door-window-sensor-nodemcu-lua-no-arduino#comment-244</link>
			<description><![CDATA[Again try to fix this, assuming that reed has two cable, 1 and 2: 1) connect reed1 to +3.3v 2) connect gpio2 to +3.3v 3 connect reed2 to gnd this produce a loop of "1" status.... 1) connect reed1 to +3.3v 2) connect gpio2 to reed2 this produce a NULL status... nothing appear when i close or open reed gpio.mode(4,gpio.INT,gpio.PULLDOWN) line modified obviously in pull-up mode with gpio2 to reed1 and gnd to reed2 works perfectly, but when reset with closed door it doesn't start correct as you discovered. Please can you explain better how to fix it ? Dario]]></description>
			<dc:creator>DarioCdj</dc:creator>
			<pubDate>Fri, 29 May 2015 16:44:36 +0200</pubDate>
			<guid>https://iot-playground.com/esp8266-door-window-sensor-nodemcu-lua-no-arduino#comment-244</guid>
		</item>
		<item>
			<title>DarioCdj says:</title>
			<link>https://iot-playground.com/esp8266-door-window-sensor-nodemcu-lua-no-arduino#comment-220</link>
			<description><![CDATA[No Waitamin, if i connect reed to 3.3v coming out from AMS1117 and to GPIO2 it doesn't work, obviously code modified. Try to debug it in breadboard but when open and close reed do nothing in this way.....]]></description>
			<dc:creator>DarioCdj</dc:creator>
			<pubDate>Mon, 11 May 2015 10:39:26 +0200</pubDate>
			<guid>https://iot-playground.com/esp8266-door-window-sensor-nodemcu-lua-no-arduino#comment-220</guid>
		</item>
		<item>
			<title>Super User says:</title>
			<link>https://iot-playground.com/esp8266-door-window-sensor-nodemcu-lua-no-arduino#comment-218</link>
			<description><![CDATA[ Later I've discovered one little detail about ESP8266. While power up GPIO2 must be connected to VCC to start in correct mode. In my test case it happened that door was open and GPIO2 was on VCC. If you start this example with door closed it won't work because ESP8266 wont start int correct mode. There are two solutions: -connect reed relay and capacitor to VCC and GPIO. That way GPIO2 will be always connected to VCC at startup. Also correct line gpio.mode(4,gpio.INT,gpio.PULLUP) to gpio.mode(4,gpio.INT,gpio.PULLDOWN) -use different ESP8266 model and connect reed relay to different GPIO pin. Also correct program to work with different GPIO. GPIO2, I will fix comment.]]></description>
			<dc:creator>Super User</dc:creator>
			<pubDate>Sun, 10 May 2015 23:00:34 +0200</pubDate>
			<guid>https://iot-playground.com/esp8266-door-window-sensor-nodemcu-lua-no-arduino#comment-218</guid>
		</item>
		<item>
			<title>DarioCdj says:</title>
			<link>https://iot-playground.com/esp8266-door-window-sensor-nodemcu-lua-no-arduino#comment-212</link>
			<description><![CDATA[Do you intend to connect GPIO2 to VCC and Reed to GPIO0 ? you've wrote GPIO :-) Thanks in advance Dario Later I've discovered one little detail about ESP8266. While power up GPIO2 must be connected to VCC to start in correct mode. In my test case it happened that door was open and GPIO2 was on VCC. If you start this example with door closed it won't work because ESP8266 wont start int correct mode. There are two solutions: -connect reed relay and capacitor to VCC and GPIO. That way GPIO2 will be always connected to VCC at startup. Also correct line gpio.mode(4,gpio.INT,gpio.PULLUP) to gpio.mode(4,gpio.INT,gpio.PULLDOWN) -use different ESP8266 model and connect reed relay to different GPIO pin. Also correct program to work with different GPIO.]]></description>
			<dc:creator>DarioCdj</dc:creator>
			<pubDate>Sun, 10 May 2015 16:01:02 +0200</pubDate>
			<guid>https://iot-playground.com/esp8266-door-window-sensor-nodemcu-lua-no-arduino#comment-212</guid>
		</item>
		<item>
			<title>Super User says:</title>
			<link>https://iot-playground.com/esp8266-door-window-sensor-nodemcu-lua-no-arduino#comment-210</link>
			<description><![CDATA[ Later I've discovered one little detail about ESP8266. While power up GPIO2 must be connected to VCC to start in correct mode. In my test case it happened that door was open and GPIO2 was on VCC. If you start this example with door closed it won't work because ESP8266 wont start int correct mode. There are two solutions: -connect reed relay and capacitor to VCC and GPIO2. That way GPIO2 will be always connected to VCC at startup. Also correct line gpio.mode(4,gpio.INT,gpio.PULLUP) to gpio.mode(4,gpio.INT,gpio.PULLDOWN) -use different ESP8266 model and connect reed relay to different GPIO pin. Also correct program to work with different GPIO.]]></description>
			<dc:creator>Super User</dc:creator>
			<pubDate>Sun, 10 May 2015 14:22:16 +0200</pubDate>
			<guid>https://iot-playground.com/esp8266-door-window-sensor-nodemcu-lua-no-arduino#comment-210</guid>
		</item>
		<item>
			<title>Allan Madsen says:</title>
			<link>https://iot-playground.com/esp8266-door-window-sensor-nodemcu-lua-no-arduino#comment-205</link>
			<description><![CDATA[Sorry to say, this dos not work at all :-( How to fix it, i like the hole idea in this program :-)]]></description>
			<dc:creator>Allan Madsen</dc:creator>
			<pubDate>Sun, 10 May 2015 01:48:15 +0200</pubDate>
			<guid>https://iot-playground.com/esp8266-door-window-sensor-nodemcu-lua-no-arduino#comment-205</guid>
		</item>
		<item>
			<title>Super User says:</title>
			<link>https://iot-playground.com/esp8266-door-window-sensor-nodemcu-lua-no-arduino#comment-175</link>
			<description><![CDATA[ No need for automation. Please read this post: https://iot-playground.com/forum/my-project/165-esp8266-door-window-sensor-modemcu-without-arduino#1154]]></description>
			<dc:creator>Super User</dc:creator>
			<pubDate>Fri, 17 Apr 2015 22:57:45 +0200</pubDate>
			<guid>https://iot-playground.com/esp8266-door-window-sensor-nodemcu-lua-no-arduino#comment-175</guid>
		</item>
		<item>
			<title>leo says:</title>
			<link>https://iot-playground.com/esp8266-door-window-sensor-nodemcu-lua-no-arduino#comment-174</link>
			<description><![CDATA[requires automation on the server? because sends the digital values ​​1 and 0, but still does not appear open or closed on the server regards]]></description>
			<dc:creator>leo</dc:creator>
			<pubDate>Fri, 17 Apr 2015 19:08:26 +0200</pubDate>
			<guid>https://iot-playground.com/esp8266-door-window-sensor-nodemcu-lua-no-arduino#comment-174</guid>
		</item>
		<item>
			<title>Koen says:</title>
			<link>https://iot-playground.com/esp8266-door-window-sensor-nodemcu-lua-no-arduino#comment-171</link>
			<description><![CDATA[Found out that the connection drawing has a fault, the reed switch should be hooked to GND and not to VCC, because of the help from you guys, I was able to check it with Putty. The sensor digitalvalue is changing now from a 1 to a 0 and visa versa. Now I know the ESP8266 is working. STILL HAVE THIS PROBLEM the door is not going open or closed, please what could be the problem, must be in an around the webserver. All suggestions are very welcome. Thanks in advance with kind regards Koen]]></description>
			<dc:creator>Koen</dc:creator>
			<pubDate>Fri, 17 Apr 2015 16:00:57 +0200</pubDate>
			<guid>https://iot-playground.com/esp8266-door-window-sensor-nodemcu-lua-no-arduino#comment-171</guid>
		</item>
		<item>
			<title>leo says:</title>
			<link>https://iot-playground.com/esp8266-door-window-sensor-nodemcu-lua-no-arduino#comment-169</link>
			<description><![CDATA[connect the circuit and achieve that connected but does not appear open or closed as in the video just shows the virtual node and the lualoader the following appears : Hard Restart jueves, 16 de abril de 2015 23:57:49 192.168.1.14	255.255.255.0	192.168.1.1 Connected HTTP/1.1 200 OK Content-Length: 27 Content-Type: application/json Server: HttpGateway Microsoft-HTTPAPI/2.0 Date: Fri, 17 Apr 2015 05:57:58 GMT Connection: close [{ "ResponseValue" : "1" }] Send status ............................ someone who could help me please provide solution]]></description>
			<dc:creator>leo</dc:creator>
			<pubDate>Fri, 17 Apr 2015 08:00:29 +0200</pubDate>
			<guid>https://iot-playground.com/esp8266-door-window-sensor-nodemcu-lua-no-arduino#comment-169</guid>
		</item>
		<item>
			<title>Koen says:</title>
			<link>https://iot-playground.com/esp8266-door-window-sensor-nodemcu-lua-no-arduino#comment-168</link>
			<description><![CDATA[HI Mr. Easyiot, Build this, but no luck, when I apply power to my sensor, I see a second door appears and after a short time it disappears also no open or closed text visible like in your youtube movie. Really would like this to work, maybe you have a tip for me/ Thanks in advance with kind regards Koen]]></description>
			<dc:creator>Koen</dc:creator>
			<pubDate>Thu, 16 Apr 2015 15:08:59 +0200</pubDate>
			<guid>https://iot-playground.com/esp8266-door-window-sensor-nodemcu-lua-no-arduino#comment-168</guid>
		</item>
		<item>
			<title>Dennis says:</title>
			<link>https://iot-playground.com/esp8266-door-window-sensor-nodemcu-lua-no-arduino#comment-160</link>
			<description><![CDATA[Hello, just modified your code, and made a ds18b20 temperature sensor example: https://github.com/DennisSc/easyIoT-nodeMCU/tree/master/nodeMCU-LUA/ds18b20 And I've to say BIG thanks for your example of HTTP basic auth in lua... regards]]></description>
			<dc:creator>Dennis</dc:creator>
			<pubDate>Thu, 09 Apr 2015 17:15:17 +0200</pubDate>
			<guid>https://iot-playground.com/esp8266-door-window-sensor-nodemcu-lua-no-arduino#comment-160</guid>
		</item>
		<item>
			<title>DarioCdj says:</title>
			<link>https://iot-playground.com/esp8266-door-window-sensor-nodemcu-lua-no-arduino#comment-149</link>
			<description><![CDATA[:lol: very happy... And without automation! Do.you think that temp hum and pressure could be done in this way with api? Pheraps i can solve my graph problem in this way...Thanks mr.easyiot!]]></description>
			<dc:creator>DarioCdj</dc:creator>
			<pubDate>Wed, 01 Apr 2015 23:05:55 +0200</pubDate>
			<guid>https://iot-playground.com/esp8266-door-window-sensor-nodemcu-lua-no-arduino#comment-149</guid>
		</item>
		<item>
			<title>Super User says:</title>
			<link>https://iot-playground.com/esp8266-door-window-sensor-nodemcu-lua-no-arduino#comment-148</link>
			<description><![CDATA[ This is just example. ESP8266 is power hungry so batteries do not last long. There are some power sawing features in ESP8266, but it can not be used combined with interrupt used in this case. If you plan to install this sensor use different power supply.]]></description>
			<dc:creator>Super User</dc:creator>
			<pubDate>Wed, 01 Apr 2015 10:14:06 +0200</pubDate>
			<guid>https://iot-playground.com/esp8266-door-window-sensor-nodemcu-lua-no-arduino#comment-148</guid>
		</item>
		<item>
			<title>Harry says:</title>
			<link>https://iot-playground.com/esp8266-door-window-sensor-nodemcu-lua-no-arduino#comment-147</link>
			<description><![CDATA[I see this node is running on batteries. I allways thought it was difficult to reduce the power consumption for the ESP8266. Is it sleeping? And if so, what is the power consumption during sleep? Very curious to know.]]></description>
			<dc:creator>Harry</dc:creator>
			<pubDate>Wed, 01 Apr 2015 07:52:27 +0200</pubDate>
			<guid>https://iot-playground.com/esp8266-door-window-sensor-nodemcu-lua-no-arduino#comment-147</guid>
		</item>
		<item>
			<title>Lewys A Martin says:</title>
			<link>https://iot-playground.com/esp8266-door-window-sensor-nodemcu-lua-no-arduino#comment-146</link>
			<description><![CDATA[Awesome !!!! Thanks man :D Cant wait to try this!]]></description>
			<dc:creator>Lewys A Martin</dc:creator>
			<pubDate>Tue, 31 Mar 2015 23:58:12 +0200</pubDate>
			<guid>https://iot-playground.com/esp8266-door-window-sensor-nodemcu-lua-no-arduino#comment-146</guid>
		</item>
	</channel>
</rss>
