Post your complete ESPHome YAML source file. If you’re attempting to use an ESP8266 device, apparently the platform ESP32_hall won’t work. Try with an ESP32 device, instead.
Searching a bit more, you may not be able to use that particular device.
The KY-003 hall sensor module is based on the 3144EUA-S hall-effect sensor and has a higher operation voltage between 4.5V and 24V. Therefore the KY-003 module can be connected to an Arduino, but not to an ESP8266 or ESP32 microcontroller board because the operation voltage of 3.3V is too low. The KY-003 is smaller in size because there is only a digital output signal from the sensor module.
The esp32_hall sensor platform allows you to use the integrated hall effect sensor of the ESP32 chip to measure the magnitude and direction of magnetic field around the chip
I know this topic is super old, but replying to help someone who lands here looking for a solution.
I have the exact same Hall sensor - KY-003. Few things to note
Its Operating voltage is 4.5V…24V and the Output is Digital therefore won’t work as platform: adc
Mine is hooked up to a Sonoff SV which is an ESP8266-based relay. I configured it as a binary sensor i.e. something that tells me if its ON or OFF
and this is how my cables are connected
Red circle is the Vcc ( since the minimum Voltage req is 4.5, this pin works best )
Green circle is the Gnd
Blue circle is a Signal
Thanks @rahulvij , I found this when trying to setup an M5Stack Hall Effect Sensor (A3144E).
That’s worked brilliantly for me too, on my M5Stack Atom Lite.
Had to leave a comment in case someone else is trying to setup the A3144E with ESPHome, though I tweaked it a little further when I realized I could specify device_class etc
# A3144E, magnet over the "I" or "GND"
binary_sensor:
- platform: gpio
pin:
number: 32
mode: INPUT_PULLUP
inverted: true
name: "Second Door"
id: "second_door"
on_press:
- logger.log: "Door closed"
icon: "mdi:magnet-on"
device_class: door
Wrong, wrong, wrong. If you can’t help someone or don’t know what your talking about then don’t post wrong information and tell people it’s not possible or they need a different esp board. You can absolutely use the ky-003 or any of them. First, you just need to look at the data sheet, that needs to be your first stop always. This is a digital sensor and doesn’t output an analog signal so it only outputs High/Low. If you don’t know how to use a 4.5v or higher sensor voltage, you asking for help and not giving wrong help. A simple transistor or logic level converter is all they needed to make this work with an esp8266.