How this first IoT Adventure Quest works: 

  • Wand is in a box locked with a magnetic lock. To open the box the player needs to charge the wand with a spell of fire or ice by warming or cooling a dragon egg. When it hits the goal temp a light will glow Red or Blue and the box will unlock.
  • The Dragon will have Green eyes when he is sleeping, meaning the motion detector is armed. If the Dragon detects the player’s movement the eyes turn yellow the first time and red the second time.
  • Arriving at the Dragon he has 2 symbols on his chest. To defeat him touch the wand the the fire symbol if you warmed the dragon egg, or the snowflake if you cooled the egg. The egg has to stay at the spell temperature for the wand to work. After he is defeated. Try to open the Treasure Chest.

BackLog Command:
D1mini WandBox:
Backlog SSID1 YourWifiSSID; Password1 YourWifiPW; MqttHost your.mqtt.pi.ip; MqttUser yourMQTTuser; MqttPassword yourMQTTpw; Hostname Wandbox; MqttClient Wandbox; Topic Wandbox; FriendlyName1 Wandbox; PowerRetain 1; gpio2 10; gpio4 18; gpio14 02; gpio15 07; module 18

### Code ###
WandBox Partial Configuration.YAML
https://gist.github.com/Snipercaine/735fe8167347556d73d60c94f46a2e08

WandBox Automations.YAML
https://gist.github.com/Snipercaine/9d56c723338ab627473838390e12bc6d

Banggood:
D1mini – https://www.banggood.com/WeMos-D1-Mini-V2-NodeMcu-4M-Bytes-Lua-WIFI-Internet-Of-Things-Development-Board-Based-ESP8266-p-1115398.html?p=@K220219381694201802

Relay –
https://www.banggood.com/5Pcs-5V-Relay-5-12V-TTL-Signal-1-Channel-Module-High-Level-Expansion-Board-For-Arduino-p-1178210.html?p=@K220219381694201802

LEDs –
https://www.banggood.com/5M-RGBW-RGBWW-SMD-5050-Non-Waterproof-LED-Flexible-Strip-Light-for-Christmas-Decor-DC12V-p-1206227.html?p=@K220219381694201802

Temp Sensor –
https://www.banggood.com/AM2302-DHT22-Temperature-And-Humidity-Sensor-Module-For-Arduino-SCM-p-937403.html?p=@K220219381694201802

Mag Lock –
https://www.banggood.com/DC-12V-60kg-Visible-Installation-Door-Cabinet-Magnetic-Lock-Access-Control-System-p-1241735.html?p=@K220219381694201802

Menu