-
Notifications
You must be signed in to change notification settings - Fork 115
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
Emulation state toggle #304
base: main
Are you sure you want to change the base?
Conversation
PaulWieland
commented
Jul 11, 2024
- Remove auto detection of security + 1 wall panels
- Add web UI switch to enable or disable emulation mode
- Restore switch state from flash
- Quiet down the debug logging of sec +1 states, should only log upon change of state
change wall panel emulation states from WAITING | ACTIVE to ENABLED | DISABLED. Add set mode to protocol so the GUI switch can toggle the state between enabled or disabled. Default mode is disabled. Removed code that watches for a wall panel to simplify.
for more information, see https://pre-commit.ci
The change looked a lot bigger than it is, but that was only because the branch was out of sync with main. I merged it in to get it back in sync |
components/ratgdo/ratgdo.cpp
Outdated
// auto last_state = this->light_state; | ||
// if(last_state == light_state){ | ||
// return; | ||
// } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
leftover debug code?
components/ratgdo/ratgdo.cpp
Outdated
// static LockState last_state = LockState::UNKNOWN; | ||
// if(light_state != last_state){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
leftover debug code?
components/ratgdo/ratgdo.cpp
Outdated
// if(obstruction_state != last_state){ | ||
// ESP_LOGD(TAG, "Obstruction: state=%s", ObstructionState_to_string(*this->obstruction_state)); | ||
// } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
leftover debug code?
bool value = false; | ||
this->pref_ = global_preferences->make_preference<float>(this->get_object_id_hash()); | ||
this->pref_.load(&value); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since esp8266 stores prefs in flash this may cause all prefs to be lost when a new one is added since they are restored in order
for more information, see https://pre-commit.ci
…phome-ratgdo into emulation_state_toggle
for more information, see https://pre-commit.ci
Checking in to see if/when this can be merged in please. |