Open Keshin1988 opened 1 year ago
It appears it was a pin 2 issue whether it's with my board or in the coding I'm unsure. Will leave this open in case issues return. Will update after I implement and run it for a few days
I found issue! When ape_analog_input(expander1, 2)}; is listed on esphome, the relay on D2 in not working. Not tested but should be similar on other analog pins.
Also, i try to use ape_analog_input(expander1, 55)}; to read A2 pin but i never receive values. always 41223.00000 in all pins where is readed supperior as 54.
I'm searching the way to make it working. peraps the develloper can help me to do that?
Keshin1988: If you do not use A2 pin, remove it from you esphome and the relay is work fine!
hello im not sure if you can help but im only amateur at best with coding. attached i will show the coding i used
Problem (if i run the blink sketch with the relays on the arduino they work) did this to confirm boards are functioning correctly when i connect everything up and run it through home assistant (esphome) it shows i2c has been found, and arduino serial logger show pin 2 pulled high, pin 2 pulled low when switch is toggled, however the relay does not do anything. if i connect a voltage meter whilst all is still plugged in i get 4.83 volts and when the switch is toggled to on i get 0.10 volts
attached is both your code and the esphome code (example i am using to test before changing it)
Edit: i should also mention, if i connect a blue led (all i have) between ground and pin 2 it toggles with everything connected as expected. power supply is 12v 1amp connected to arduino for testing purposes. As show in diagram at bottom arduino is powering the esp8266 (even separately powered i have the same issue)
Your code
### The Esphome Example Config
Crude sketch of my circuit