Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 106310

Locker light sensors - how to make it working in esphome

$
0
0

Hello,
I have lot of spare Wemos D1 mini china boards.
So, in a free time I would like to automate my lockers to catch opening doors and switch the light relay.
When the lockers were installed months ago, I have prepared installation - so I have LED strips and sensor switches builded into furniture.

I have tried to do it with binary_sensor esphome component but I have 2 problems:

  1. Here I am writing about one sensor - sensor/small switch with 2 cables (wires) and I suppose that I have to connect one wire to any voltage source - for example 3,3v on Wemos D1 mini board and the second wire to any GPIO input? Or maybe should each wire to separate GPIO input?
    Or, maybe, one sensor will need 2 GPIO ports, and should it work this way?

  2. When I made a prototype it tooks very long to change state - and sometimes, when I have connected wires fastly - there won’t be any entry in log - about changing state.

That is board which I have: https://alselectro.files.wordpress.com/2018/04/d1_pinout.jpg?w=640

Thank you for any ideas in advance
regards

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 106310

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>