Just finished writing a tutorial on how to build a very simple and a more advanced infrared security system.
The system can be activated & deactivated using Alexa and can also send status-messages to your mobile phone using the Telegram node.
IR Security - Tutorial guide
IR Security - Node-RED flow
IR Security - ESP-Easy (Wemos D1 Mini, ESP8266) rules
PS:
The tutorial has been updated to explain how to monitor the power-bank's output voltage (nominally +5V) with a simple voltage divider (two 10K resistors in series across the power pins) rather than checking the 3V3 pin on the Wemos.
8 Likes
This is really cool @dynamicdave. I'm going to try and build this myself thanks for sharing this. ![:+1: :+1:](https://emoji.discourse-cdn.com/twitter/+1.png?v=9)
David,
Probably a stupid question, but here I go:
I assume the teacher (= you) has preinstalled some stuff already? Because the way you describe it, it seems so suspicious easy
Probably the Wemos have passed your magical hands to get them ready to go?
Bart
David does setup the semis’s For his class, but installing ESPeasy is not that hard and once you do it once, upgrades can be done OTA and -of course - you will have a file with your notes with the exact syntax used to do the install...right ![:rofl: :rofl:](https://emoji.discourse-cdn.com/twitter/rofl.png?v=9)
I have all my notes in a file at home and I’m visiting my grandsons (7 hours away) and had to reflash the semis I brought for him (wrong wireless password) and was able to dig up the instructions on the net without too much trouble AND this is on a MAC where I had to do it via the terminal.
1 Like
Hi Bart,
The Wemos D1 Minis (WiFi ESP8266 based) I purchase from China come flashed with Lua.
I re-flash them with ESP-Easy, which as Paul says, is very easy.
I know quite a few people on this forum use these devices.
The beauty of ESP-Easy is most of the device-drivers you'll need are built-in.
e.g. GPIO pins for LEDs & relays, switch input, temp & humidity sensors, servo motor control, LCD panel control and of course MQTT communication.
The unit is WiFi-enabled so connecting to a home network is a breeze.
The other thing I like about the Wemos is it is inexpensive, so if any of my students should have an accident with them - nobody is going to get upset.
Let me know if you require any further information.
Ah, from your notes I hoped you bought some that were flashed with ESPeasy already...
Perhaps I have some time in the winter... But I am using that sentence year already many years, but I never have time
Too many interesting things for a single life ...
Please note:
The versions of ESP Easy mega, released from Oct'2019 onwards, now need a single quote placed around the json string to delimit the double quotes and commas in the rule-sets. eg. '{"blah": "blah"}'
On publishReading Do
publish,node24/ir_detector,'{"node_number":"node%unit%","ssid":"%ssid%","rssi":[rssi#strength],"level":[ir#state],"battery_voltage":[analog#voltage],"temperature":[ds18b20#temperature]}'
If [ir#state]=1
timerSet,1,5
EndIf
EndOn
1 Like