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.2k stars 4.81k forks source link

TASMOTA ADC0 pin relay #21733

Closed yaminahacs closed 4 months ago

yaminahacs commented 4 months ago

PROBLEM DESCRIPTION

A clear and concise description of what the problem is. After replacing a switch module with TASMOTA I found out that the relay is on ADC0 pin and I was unable to use it. I would like to request to enable ADC0 pin as ADC relay and ADC switch, just like you can select ADC button.

REQUESTED INFORMATION

Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!

- [ ] If using rules, provide the output of this command: `Backlog Rule1; Rule2; Rule3`:
```lua
  Rules output here:
- [ ] Set `weblog` to 4 and then, when you experience your issue, provide the output of the Console log:
```lua
  Console output here:

TO REPRODUCE

Steps to reproduce the behavior:

EXPECTED BEHAVIOUR

A clear and concise description of what you expected to happen.

SCREENSHOTS

If applicable, add screenshots to help explain your problem. image

ADDITIONAL CONTEXT

Add any other context about the problem here.

(Please, remember to close the issue when the problem has been addressed)

arendst commented 4 months ago

Alas, ADC0 on ESP8266 is hardware input only. No way to control a relay.

sfromis commented 4 months ago

To handle such a replacement, you'll have to wire the relay to another gpio. And yes, I know that your screenshot shows none available, but that does not change what I wrote.

What I'd do instead would be to use an ESP32-based module in the same form factor, allowing all the pins to be used as digital I/O pins. Look in https://templates.blakadder.com/esp32.html to find a module matching the form factor you used when replacing, probably in the ESP32-C3 section (or maybe in the ESP32-S2 section).

yaminahacs commented 4 months ago

noted