-
Notifications
You must be signed in to change notification settings - Fork 307
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
Homie ESP-8266 is not working without wifi #536
Comments
I designed a wifi light-switch, based on Homie and Openhab Server, the first important function of |
I found this somewhere else here, maybe in another issue description, the solution is depending on your implementation that you run the loop where you handle the events the manual switch raises in the mail loop in addition to the Homie.loop().
In this firmware is use the lib "OneButton" for handling a button, it is a uplight control firmware and the uplight has one button where you can turn it on and off in addtion to control it with Homie. |
Dear Alexander,
That should be my solution, thanks for your
complete answer.
Regards,
Kaveh.
…Sent from my iPhone
On Oct 22, 2018, at 10:37 AM, Alexander Leisentritt ***@***.***> wrote:
I found this somewhere else here, maybe in another issue description, the solution is depending on your implementation that you run the loop where you handle the events the manual switch raises in the mail loop in addition to the Homie.loop().
Here an excerpt of one of my implementations:
void loop()
{
Homie.loop();
button.tick();
}
In this firmware is use the lib "OneButton" for handling a button, it is a uplight control firmware and the uplight has one button where you can turn it on and off in addtion to control it with Homie.
You can see the "loop" for handling the button events is also in the main loop where the Homie.loop() is too. So both are run and no matter how the Homie state is the button events are processed...
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
See here, how to change the Homie-ESP8266 sources to get your desired behavior: https://github.com/homieiot/homie-esp8266/pull/490/files |
@euphi, as this is labeled with I've found an example that I want to use as a base for my sketch - https://github.com/homieiot/homie-esp8266/blob/develop-v3/examples/IteadSonoffButton/IteadSonoffButton.ino How should I change it so that I can toggle replay when I don't have MQTT connected? |
Closed with #490. |
[...template with no change deleted...]
The text was updated successfully, but these errors were encountered: