arendst / Tasmota

Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
https://tasmota.github.io/docs
GNU General Public License v3.0
22.05k stars 4.78k forks source link

Wemos d1 answers 12v relay #2465

Closed andydouce closed 6 years ago

andydouce commented 6 years ago

Not a tasmota issue but hoping someone more technical than me can see if I'm barking up the wrong tree. I want to control a water solenoid valvue in home assistant with a mqtt switch or Maybe binary. The solenoids all seem to be 12v. So couldn't I mount a 12v shield on a wemos d1 mini and control the 12v solenoid via home assistant?

Jim1948 commented 6 years ago

Electrical requirements are 18 Volts AC minimum at the solenoid. Inrush volt-amps @24 VAC - 8.5 VA Inrush current @24 VAC - .35 AMPS Holding volt-amps @24 VAC - 5.5 VA Holding current @24 VAC - .23 AMPS

andydouce commented 6 years ago

Sorry thats right over my head. The solenoid I have is 12v and works fine from the 12v power supply. My issue is getting it controlled by the wemos and thus home assistant

reloxx13 commented 6 years ago

How about buying another 12V trafo.

Cut the old one and put the cables form the soenoid in the new trafo 12v output. 230V from the relais outout in the input of the trafo.

take care of ampere output, should be the same or higher with the new trafo.

example trafo: https://www.ebay.de/itm/Elektronischer-Trafo-Transformator-20-60W-230V-auf-12V-Halogen-Trafo/161782423052

andydouce commented 6 years ago

Is the trafo like a sonoff? How would i control the trafo?

Frogmore42 commented 6 years ago

Yes, you can use a relay, and there is a relay shield for Wemos D1 mini https://wiki.wemos.cc/products:d1_mini_shields:relay_shield

You should take a look at one or more of the tutorials on relays so you can learn more about them. The wemos relay is not rated to handle much current so it might not last very long with some solenoids. You need to see how much current the solenoid you are using needs.

andydouce commented 6 years ago

Thanks frogmore that's along the lines I was looking. Key point for me is can I control the relay via tasmota mqtt ?

Frogmore42 commented 6 years ago

Yes, that is easy to do. Look at the commands section of the wiki. There are other examples there too.

stale[bot] commented 6 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 6 years ago

This issue will be auto-closed because there hasn't been any activity for a few months. Feel free to open a new one if you still experience this problem.