Skip to content

Instantly share code, notes, and snippets.

@mpflaga
Created January 25, 2025 17:29
Show Gist options
  • Save mpflaga/ad8640589b4739bdb1a9b0abac68ef03 to your computer and use it in GitHub Desktop.
Save mpflaga/ad8640589b4739bdb1a9b0abac68ef03 to your computer and use it in GitHub Desktop.
ESPHome Magiquest Wand
substitutions:
name: wand-sensor-test
friendly_name: Wand Sensor Test
wand_retrigger_timeout: 1s
esphome:
name: ${name}
friendly_name: ${friendly_name}
# You can set this to true if you want to share exact config (therefore also name field) among many.
# Unique MAC will be added to name.
name_add_mac_suffix: false
project:
name: esphome.web
version: '1.0'
libraries:
- Wire
- IRremote
esp8266:
board: esp8285
#esp32:
# board: esp32dev
# framework:
# type: arduino
packages:
network: !include .network.yaml
logger:
level: DEBUG
logs:
sensor: DEBUG # (default)
remote_receiver:
pin:
# This has to match the correct GPIO pin for your device
# GPIO2 corresponds to pin D4 on a Wemos D1 mini
# https://randomnerdtutorials.com/esp8266-pinout-reference-gpios/
# If you're using a different device, keep in mind that some pins have specific purposes and you'll need
# to do some trialing and reading before you'll know for sure
number: GPIO2
# Depending on your device, if this is not correct, you'll get a warning in
# the logs on boot suggesting you change it
inverted: True
# dump: magiquest
# dump: all
binary_sensor:
- platform: remote_receiver
name: "Blue 1 Wand with Red Cap"
magiquest:
wand_id: 0x00C60258
filters:
- delayed_off: ${wand_retrigger_timeout}
- platform: remote_receiver
name: "Red 1 Wand with Red Cap"
magiquest:
wand_id: 0x0393CC00
filters:
- delayed_off: ${wand_retrigger_timeout}
- platform: remote_receiver
name: "Blue 2 Wand with Blue Cap"
magiquest:
wand_id: 0x00102810
filters:
- delayed_off: ${wand_retrigger_timeout}
- platform: remote_receiver
name: "Brown Wand with Gold Cap"
magiquest:
wand_id: 0x00064604
filters:
- delayed_off: ${wand_retrigger_timeout}
- platform: remote_receiver
name: "Silver Wand with Blue Cap"
magiquest:
wand_id: 0x00123C9C
filters:
- delayed_off: ${wand_retrigger_timeout}
- platform: remote_receiver
name: "Silver Wand with Gold Cap"
magiquest:
wand_id: 0x013A5CE0
filters:
- delayed_off: ${wand_retrigger_timeout}
- platform: remote_receiver
name: "Black Wand with Blue Cap"
magiquest:
wand_id: 0x002AE754
filters:
- delayed_off: ${wand_retrigger_timeout}
- platform: remote_receiver
name: "Black Wand with Red Cap"
magiquest:
wand_id: 0x0156B94C
filters:
- delayed_off: ${wand_retrigger_timeout}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment