This is the code below that I have in the yaml which is valid code
The problem I have is with the device_class I think, I am not sure which one to use
I tried with opening, also smoke as values, but neither work fine
It is also the first time for me using the ESPHome integration
The Flame sensor is recognized by Home Assistant. The problem is that it is always saying that there is smoke or fire, so it is Detected all the time.
Doing the work from Arduino IDE it works fine but I don´t know exactly what are the parameters I have to use in the yaml file, I don´t know either if binary_sensor is the right definition. Maybe, I have to use another type of sensor description?
No, the logs do not show a change when I have the flame close to the sensor, but the sensor itself has a led that turns on indicating a change, so the sensor is working fine, the problem is on the yaml definition sensor part.
Are you using a long wire to connect it by chance? maybe voltage drop. You could use a meter, if available, between the out and ground of the sensor to make sure it is working.
Just found this on ESPHOME’s site, maybe that’s why ?
D3 , D4 and D8 are used on startup to determine the boot mode, therefore these pins should not be pulled low on startup. You can, however, still use them as output pins.