mirror of
https://github.com/ratgdo/esphome-ratgdo.git
synced 2025-02-07 22:03:20 +00:00
button
This commit is contained in:
parent
4fbc95b238
commit
fc88a02ac2
@ -98,8 +98,8 @@ namespace ratgdo {
|
||||
door = nibble;
|
||||
light = (byte2 >> 1) & 1;
|
||||
lock = byte2 & 1;
|
||||
motion = 0; // when the status message is read, reset motion state to 0|clear
|
||||
motor = 0; // when the status message is read, reset motor state to 0|off
|
||||
motion = MotionState::MOTION_STATE_OFF; // when the status message is read, reset motion state to 0|clear
|
||||
motor = MotorState::MOTOR_STATE_OFF; // when the status message is read, reset motor state to 0|off
|
||||
// obstruction = (byte1 >> 6) & 1; // unreliable due to the time it takes to register an obstruction
|
||||
ESP_LOGD(TAG, "Door: %d Light: %d Lock: %d Motion: %d Obstruction: %d", door, light, lock, motion, obstruction);
|
||||
isStatus = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user