-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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 Gpio switch not direct action? #84
Comments
I think it does that if it's not able to reach a mqtt server |
on my test environment, I got MQTT online, only result is switch direct turn on/off relay and post MQTT, |
you can set the button to send a different message, that's what the switchtopic
is for.
set the button to send a different topic and openhab will make the decision.
|
Thanks @davidelang, as too many commands, and not much description on command usage, I didn't aware switchtopic for this usage, another issue come, is this is a bug or limit as if I got 2 gpio set for same function(switch). only one of gpio will work, other one won't function, I set as below: I like to set itworks as below condition, GPIO14 connect to HC-SR501 PIR and work with MQTT (openhab), and GPIO3 work with wall switch (direct control), so that user may manually overide on/off and not from PC/mobile. as far as I test, I only may work out as switch + DHT22 on GPIO 3,14, but not both switch. |
arendst/Sonoff-MQTT-OTA-Arduino#158 I injected some codes into the firmware that read the GPIO then published on I need to rewrite the patch and maybe merge it upstream |
3.9.21 20170224 * Add ajax to web root page and web console (arendst#79) * Add commands SwitchMode1..4 and enable user switches 2, 3 and 4 (arendst#84, arendst#88) * Fix MQTT upgrade when webserver is active
can Gpio switch not direct perform relay action and publish status to MQTT?
The text was updated successfully, but these errors were encountered: