New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can I support the reed sensor? #438
Comments
It's just a switch, @ChienTing, so wire it up like a button. MQTT will fire an update to any subscribers when the state changes, so you can use Node-Red or a home automation package to work out the logic |
if i wire it to GPIO14, how to tell sonoff that it is not for relay control? |
define it as a switch and set switchtopic
k
|
tks! |
I think only via commands (console, mqtt, etc)
|
great - after playing with SwitchMode and SwitchTopic, sonoff now works as two independent devices:
|
@off14 EDIT: However i can't seem to understand What is the difference between Switch and Button in module configuration? What is the purpose of ButtonTopic command? |
now, relay is INDEPENDENT from the gpio14. |
@off14 What Sonoff module and reed switch did you use for this setup? |
thanks off14 - this has been very useful - any idea how to set up GPIO3 or GPIO1 to accept a second and third reed switch like this??? |
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. |
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. |
Hey guys, I have made all the changes as @off14 described but still can't get the state to update automatically in HA. Reed is independent of the switch and it does update state if moved manually. I've tried all these three sensors in HA without any luck
And here is my config.yaml setup
|
Hello, But not work, my sensor can activate relay and don´t have information on console about my sensor. |
Im trying to do a similar thing. But on the sonoff seperately. My garage door only have an open/close button. I want to know and control the state. Up or down. Not just "toggle" Im adding a reed sw to be closed when door is closed Relay and sensor on gpios. 14,RX Want to do some logic in rules, switch and backlog (Human readable code) With sw1 also being sent via tele. For visualizing the state. Havent quite grasped the on, do, endon switch type logic yet Although there are some examples of swiyching logic. Its not working for me yet. Rune |
"I´m solve my problem with mqtt, now work fine with my pir sensor (independient of Relay)" |
Id like to come up with a solution, independant of the mqtt server though |
An old post, anyway very close to what I'm looking for. I have it correctly working (switchmode, switchtopic... etc), except in case the sonoff reboots and the sensor is triggered, it doesn't boot. I think it reacts as if the button1 would be long-pressed during the boot. Did someone experienced the same? This my Status 0 ` |
Solved!, I'm using a R2 V1 sonoff (the new one) that doesn´t have visible GPIO14. Insted of GPIO14 I was using GPIO2 that cannot be low at boot (it doesn't boot when triggered). Using GPIO03 (Rx) insted is fine. Don't know why they remove the GPIO14 connector from the PCB! |
has been a while since someone posted here. I need assistance on getting the GPIO14 to read more than just on or off. I have a gate motor with a dedicated Gate status output. The gate status can be open,close,opening,closing,collision. How do I configure the GPIO to read all those different states and add it to HA. |
Hi, this issue is very old and your question is not directly related to this. Please, open a new discussion posting all the information you have (hardware type, tasmota version, what have you tried, etc), or ask in the support chat. Thanks. |
Can I support the reed sensor?
In the door mounted on the reed sensor
Open the door relay on
Close the door relay off
Thanks
The text was updated successfully, but these errors were encountered: