Skip to content
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

Make Boot reason readable in rule #1138

Closed
igrowing opened this issue Mar 20, 2018 · 2 comments
Closed

Make Boot reason readable in rule #1138

igrowing opened this issue Mar 20, 2018 · 2 comments
Labels
Category: Rules Related to the rule engine Type: Feature Request Add a completely new feature (e.g. controller/plugin)

Comments

@igrowing
Copy link

NOTE: This is not a support forum! For questions and support go here: https://www.letscontrolit.com/forum/viewforum.php?f=1

Steps to reproduce

In Arduino C it's possible to know a boot reason of ESP8266 with command:
ESP.getResetReason()
The list of boot reasons (what causes boot or reboot)
https://github.com/esp8266/Arduino/blob/master/cores/esp8266/Esp.cpp#L372

I want to make a rule which on boot acts differently in dependency of boot reason:
In case of watchdogs or exception it should send MQTT message.
In case of sleep awake it should turn on relay.
In case of normal boot it should turn on LED.

Expected behavior

Tell us what should happen?

Actual behavior

Tell us what happens instead?

System configuration

Hardware:

Software or git version:
The issue is open per request:
https://www.letscontrolit.com/forum/viewtopic.php?f=4&t=5053&p=26203#p26205

@TD-er TD-er added the Type: Feature Request Add a completely new feature (e.g. controller/plugin) label Mar 20, 2018
@dersparkiie
Copy link

I would also like to use the boot reason for different actions.
Could someone please help?!

@TD-er TD-er added the Category: Rules Related to the rule engine label Jan 7, 2020
@tonhuisman
Copy link
Contributor

This has been implemented, with some restrictions though. Can be closed.

@TD-er TD-er closed this as completed Sep 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Rules Related to the rule engine Type: Feature Request Add a completely new feature (e.g. controller/plugin)
Projects
None yet
Development

No branches or pull requests

4 participants