Skip to content

Instantly share code, notes, and snippets.

@burmistrzak
Last active April 28, 2024 03:21
Show Gist options
  • Save burmistrzak/09204ae9040e60f4586bf5135b46644a to your computer and use it in GitHub Desktop.
Save burmistrzak/09204ae9040e60f4586bf5135b46644a to your computer and use it in GitHub Desktop.
Logs of cover.ts from homebridge-z2m
-----------
updateState
{
calibration_closing_time: 22.5,
calibration_opening_time: 23.7,
child_lock: 'OFF',
child_lock_left: 'OFF',
child_lock_right: 'OFF',
device_mode: 'shutter',
last_seen: '2024-04-28T05:03:01+02:00',
linkquality: 142,
motor_state: 'idle',
position: 100,
state: 'CLOSE',
state_left: 'OFF',
state_right: 'OFF',
switch_type: 'button',
tilt: 0
}
updateState - latestPosition=100
updateState - this.lastPositionSet=-1
updateState - doIgnoreIfEqual=false
scaleAndUpdateCurrentPosition
scaleAndUpdateCurrentPosition - isStopped=true
-----------
updateState
{
calibration_closing_time: 10,
calibration_opening_time: 10,
child_lock: 'OFF',
child_lock_left: 'OFF',
child_lock_right: 'OFF',
device_mode: 'shutter',
last_seen: '2024-04-28T05:15:56+02:00',
linkquality: 80,
motor_state: 'idle',
position: 100,
state: 'OPEN',
state_left: 'OFF',
state_right: 'OFF',
switch_type: 'button',
tilt: 100
}
updateState - latestPosition=100
updateState - this.lastPositionSet=100
updateState - doIgnoreIfEqual=false
scaleAndUpdateCurrentPosition
scaleAndUpdateCurrentPosition - isStopped=true
-----------
updateState
{
calibration_closing_time: 10,
calibration_opening_time: 10,
child_lock: 'OFF',
child_lock_left: 'OFF',
child_lock_right: 'OFF',
device_mode: 'shutter',
last_seen: '2024-04-28T05:15:57+02:00',
linkquality: 83,
motor_state: 'idle',
position: 99,
state: 'OPEN',
state_left: 'OFF',
state_right: 'OFF',
switch_type: 'button',
tilt: 100
}
updateState - latestPosition=99
updateState - this.lastPositionSet=100
updateState - doIgnoreIfEqual=false
scaleAndUpdateCurrentPosition
scaleAndUpdateCurrentPosition - isStopped=true
-----------
updateState
{
calibration_closing_time: 10,
calibration_opening_time: 10,
child_lock: 'OFF',
child_lock_left: 'OFF',
child_lock_right: 'OFF',
device_mode: 'shutter',
last_seen: '2024-04-28T05:15:57+02:00',
linkquality: 83,
motor_state: 'closing',
position: 99,
state: 'OPEN',
state_left: 'OFF',
state_right: 'OFF',
switch_type: 'button',
tilt: 100
}
updateState - latestPosition=99
updateState - this.lastPositionSet=100
updateState - doIgnoreIfEqual=false
scaleAndUpdateCurrentPosition
scaleAndUpdateCurrentPosition - isStopped=true
-----------
updateState
{
calibration_closing_time: 10,
calibration_opening_time: 10,
child_lock: 'OFF',
child_lock_left: 'OFF',
child_lock_right: 'OFF',
device_mode: 'shutter',
last_seen: '2024-04-28T05:15:57+02:00',
linkquality: 76,
motor_state: 'closing',
position: 98,
state: 'OPEN',
state_left: 'OFF',
state_right: 'OFF',
switch_type: 'button',
tilt: 100
}
updateState - latestPosition=98
updateState - this.lastPositionSet=100
updateState - doIgnoreIfEqual=false
scaleAndUpdateCurrentPosition
scaleAndUpdateCurrentPosition - isStopped=true
-----------
updateState
{
calibration_closing_time: 10,
calibration_opening_time: 10,
child_lock: 'OFF',
child_lock_left: 'OFF',
child_lock_right: 'OFF',
device_mode: 'shutter',
last_seen: '2024-04-28T05:15:58+02:00',
linkquality: 76,
motor_state: 'closing',
position: 89,
state: 'OPEN',
state_left: 'OFF',
state_right: 'OFF',
switch_type: 'button',
tilt: 100
}
updateState - latestPosition=89
updateState - this.lastPositionSet=100
updateState - doIgnoreIfEqual=false
scaleAndUpdateCurrentPosition
scaleAndUpdateCurrentPosition - isStopped=true
-----------
updateState
{
calibration_closing_time: 10,
calibration_opening_time: 10,
child_lock: 'OFF',
child_lock_left: 'OFF',
child_lock_right: 'OFF',
device_mode: 'shutter',
last_seen: '2024-04-28T05:15:59+02:00',
linkquality: 76,
motor_state: 'closing',
position: 79,
state: 'OPEN',
state_left: 'OFF',
state_right: 'OFF',
switch_type: 'button',
tilt: 100
}
updateState - latestPosition=79
updateState - this.lastPositionSet=100
updateState - doIgnoreIfEqual=false
scaleAndUpdateCurrentPosition
scaleAndUpdateCurrentPosition - isStopped=true
-----------
updateState
{
calibration_closing_time: 10,
calibration_opening_time: 10,
child_lock: 'OFF',
child_lock_left: 'OFF',
child_lock_right: 'OFF',
device_mode: 'shutter',
last_seen: '2024-04-28T05:16:00+02:00',
linkquality: 76,
motor_state: 'closing',
position: 69,
state: 'OPEN',
state_left: 'OFF',
state_right: 'OFF',
switch_type: 'button',
tilt: 100
}
updateState - latestPosition=69
updateState - this.lastPositionSet=100
updateState - doIgnoreIfEqual=false
scaleAndUpdateCurrentPosition
scaleAndUpdateCurrentPosition - isStopped=true
-----------
updateState
{
calibration_closing_time: 10,
calibration_opening_time: 10,
child_lock: 'OFF',
child_lock_left: 'OFF',
child_lock_right: 'OFF',
device_mode: 'shutter',
last_seen: '2024-04-28T05:16:01+02:00',
linkquality: 76,
motor_state: 'closing',
position: 59,
state: 'OPEN',
state_left: 'OFF',
state_right: 'OFF',
switch_type: 'button',
tilt: 100
}
updateState - latestPosition=59
updateState - this.lastPositionSet=100
updateState - doIgnoreIfEqual=false
scaleAndUpdateCurrentPosition
scaleAndUpdateCurrentPosition - isStopped=true
-----------
updateState
{
calibration_closing_time: 10,
calibration_opening_time: 10,
child_lock: 'OFF',
child_lock_left: 'OFF',
child_lock_right: 'OFF',
device_mode: 'shutter',
last_seen: '2024-04-28T05:16:02+02:00',
linkquality: 76,
motor_state: 'closing',
position: 49,
state: 'OPEN',
state_left: 'OFF',
state_right: 'OFF',
switch_type: 'button',
tilt: 100
}
updateState - latestPosition=49
updateState - this.lastPositionSet=100
updateState - doIgnoreIfEqual=false
scaleAndUpdateCurrentPosition
scaleAndUpdateCurrentPosition - isStopped=true
-----------
updateState
{
calibration_closing_time: 10,
calibration_opening_time: 10,
child_lock: 'OFF',
child_lock_left: 'OFF',
child_lock_right: 'OFF',
device_mode: 'shutter',
last_seen: '2024-04-28T05:16:03+02:00',
linkquality: 76,
motor_state: 'closing',
position: 39,
state: 'OPEN',
state_left: 'OFF',
state_right: 'OFF',
switch_type: 'button',
tilt: 100
}
updateState - latestPosition=39
updateState - this.lastPositionSet=100
updateState - doIgnoreIfEqual=false
scaleAndUpdateCurrentPosition
scaleAndUpdateCurrentPosition - isStopped=true
-----------
updateState
{
calibration_closing_time: 10,
calibration_opening_time: 10,
child_lock: 'OFF',
child_lock_left: 'OFF',
child_lock_right: 'OFF',
device_mode: 'shutter',
last_seen: '2024-04-28T05:16:04+02:00',
linkquality: 80,
motor_state: 'closing',
position: 29,
state: 'OPEN',
state_left: 'OFF',
state_right: 'OFF',
switch_type: 'button',
tilt: 100
}
updateState - latestPosition=29
updateState - this.lastPositionSet=100
updateState - doIgnoreIfEqual=false
scaleAndUpdateCurrentPosition
scaleAndUpdateCurrentPosition - isStopped=true
-----------
updateState
{
calibration_closing_time: 10,
calibration_opening_time: 10,
child_lock: 'OFF',
child_lock_left: 'OFF',
child_lock_right: 'OFF',
device_mode: 'shutter',
last_seen: '2024-04-28T05:16:05+02:00',
linkquality: 76,
motor_state: 'closing',
position: 19,
state: 'OPEN',
state_left: 'OFF',
state_right: 'OFF',
switch_type: 'button',
tilt: 100
}
updateState - latestPosition=19
updateState - this.lastPositionSet=100
updateState - doIgnoreIfEqual=false
scaleAndUpdateCurrentPosition
scaleAndUpdateCurrentPosition - isStopped=true
-----------
updateState
{
calibration_closing_time: 10,
calibration_opening_time: 10,
child_lock: 'OFF',
child_lock_left: 'OFF',
child_lock_right: 'OFF',
device_mode: 'shutter',
last_seen: '2024-04-28T05:16:06+02:00',
linkquality: 76,
motor_state: 'closing',
position: 9,
state: 'OPEN',
state_left: 'OFF',
state_right: 'OFF',
switch_type: 'button',
tilt: 100
}
updateState - latestPosition=9
updateState - this.lastPositionSet=100
updateState - doIgnoreIfEqual=false
scaleAndUpdateCurrentPosition
scaleAndUpdateCurrentPosition - isStopped=true
-----------
updateState
{
calibration_closing_time: 10,
calibration_opening_time: 10,
child_lock: 'OFF',
child_lock_left: 'OFF',
child_lock_right: 'OFF',
device_mode: 'shutter',
last_seen: '2024-04-28T05:16:07+02:00',
linkquality: 76,
motor_state: 'closing',
position: 0,
state: 'CLOSE',
state_left: 'OFF',
state_right: 'OFF',
switch_type: 'button',
tilt: 100
}
updateState - latestPosition=0
updateState - this.lastPositionSet=100
updateState - doIgnoreIfEqual=false
scaleAndUpdateCurrentPosition
scaleAndUpdateCurrentPosition - isStopped=true
-----------
updateState
{
calibration_closing_time: 10,
calibration_opening_time: 10,
child_lock: 'OFF',
child_lock_left: 'OFF',
child_lock_right: 'OFF',
device_mode: 'shutter',
last_seen: '2024-04-28T05:16:09+02:00',
linkquality: 83,
motor_state: 'closing',
position: 0,
state: 'CLOSE',
state_left: 'OFF',
state_right: 'OFF',
switch_type: 'button',
tilt: 100
}
updateState - latestPosition=0
updateState - this.lastPositionSet=100
updateState - doIgnoreIfEqual=false
scaleAndUpdateCurrentPosition
scaleAndUpdateCurrentPosition - isStopped=true
-----------
updateState
{
calibration_closing_time: 10,
calibration_opening_time: 10,
child_lock: 'OFF',
child_lock_left: 'OFF',
child_lock_right: 'OFF',
device_mode: 'shutter',
last_seen: '2024-04-28T05:16:09+02:00',
linkquality: 83,
motor_state: 'idle',
position: 0,
state: 'CLOSE',
state_left: 'OFF',
state_right: 'OFF',
switch_type: 'button',
tilt: 100
}
updateState - latestPosition=0
updateState - this.lastPositionSet=100
updateState - doIgnoreIfEqual=false
scaleAndUpdateCurrentPosition
scaleAndUpdateCurrentPosition - isStopped=true
-----------
updateState
{
calibration_closing_time: 22.5,
calibration_opening_time: 23.7,
child_lock: 'OFF',
child_lock_left: 'OFF',
child_lock_right: 'OFF',
device_mode: 'shutter',
last_seen: '2024-04-28T04:03:18+02:00',
linkquality: 142,
motor_state: 'idle',
position: 100,
state: 'CLOSE',
state_left: 'OFF',
state_right: 'OFF',
switch_type: 'button',
tilt: 0
}
updateState - latestPosition=100
updateState - this.lastPositionSet=-1
updateState - doIgnoreIfEqual=false
scaleAndUpdateCurrentPosition
scaleAndUpdateCurrentPosition - isStopped=true
-----------
updateState
{
calibration_closing_time: 10,
calibration_opening_time: 10,
child_lock: 'OFF',
child_lock_left: 'OFF',
child_lock_right: 'OFF',
device_mode: 'shutter',
last_seen: '2024-04-28T03:39:19+02:00',
linkquality: 80,
motor_state: 'idle',
position: 0,
state: 'CLOSE',
state_left: 'OFF',
state_right: 'OFF',
switch_type: 'button',
tilt: 100
}
updateState - latestPosition=0
updateState - this.lastPositionSet=-1
updateState - doIgnoreIfEqual=false
scaleAndUpdateCurrentPosition
scaleAndUpdateCurrentPosition - isStopped=true
-----------
updateState
{
calibration_closing_time: 22.5,
calibration_opening_time: 23.7,
child_lock: 'OFF',
child_lock_left: 'OFF',
child_lock_right: 'OFF',
device_mode: 'shutter',
last_seen: '2024-04-28T04:25:38+02:00',
linkquality: 138,
motor_state: 'idle',
position: 100,
state: 'CLOSE',
state_left: 'OFF',
state_right: 'OFF',
switch_type: 'button',
tilt: 0
}
updateState - latestPosition=100
updateState - this.lastPositionSet=-1
updateState - doIgnoreIfEqual=false
scaleAndUpdateCurrentPosition
scaleAndUpdateCurrentPosition - isStopped=true
-----------
updateState
{
calibration_closing_time: 10,
calibration_opening_time: 10,
child_lock: 'OFF',
child_lock_left: 'OFF',
child_lock_right: 'OFF',
device_mode: 'shutter',
last_seen: '2024-04-28T04:25:38+02:00',
linkquality: 83,
motor_state: 'idle',
position: 0,
state: 'CLOSE',
state_left: 'OFF',
state_right: 'OFF',
switch_type: 'button',
tilt: 100
}
updateState - latestPosition=0
updateState - this.lastPositionSet=-1
updateState - doIgnoreIfEqual=false
scaleAndUpdateCurrentPosition
scaleAndUpdateCurrentPosition - isStopped=true
handleSetTargetPosition
handleSetTargetPosition - value=100
handleSetTargetPosition - target=100
handleSetTargetPosition - this.positionCurrent=0
handleSetTargetPosition - ignoreNextUpdateIfEqualToTarget=true
startOrRestartUpdateTimer
startOrRestartUpdateTimer - this.updateTimer.start()
-----------
updateState
{
calibration_closing_time: 10,
calibration_opening_time: 10,
child_lock: 'OFF',
child_lock_left: 'OFF',
child_lock_right: 'OFF',
device_mode: 'shutter',
last_seen: '2024-04-28T04:27:02+02:00',
linkquality: 83,
motor_state: 'idle',
position: 0,
state: 'CLOSE',
state_left: 'OFF',
state_right: 'OFF',
switch_type: 'button',
tilt: 100
}
updateState - latestPosition=0
updateState - this.lastPositionSet=100
updateState - doIgnoreIfEqual=true
updateState - this.updateTimer.isActive
updateState - this.updateTimer.stop()
scaleAndUpdateCurrentPosition
scaleAndUpdateCurrentPosition - isStopped=true
-----------
updateState
{
calibration_closing_time: 10,
calibration_opening_time: 10,
child_lock: 'OFF',
child_lock_left: 'OFF',
child_lock_right: 'OFF',
device_mode: 'shutter',
last_seen: '2024-04-28T04:27:02+02:00',
linkquality: 83,
motor_state: 'idle',
position: 100,
state: 'CLOSE',
state_left: 'OFF',
state_right: 'OFF',
switch_type: 'button',
tilt: 100
}
updateState - latestPosition=100
updateState - this.lastPositionSet=100
updateState - doIgnoreIfEqual=false
scaleAndUpdateCurrentPosition
scaleAndUpdateCurrentPosition - isStopped=true
-----------
updateState
{
calibration_closing_time: 10,
calibration_opening_time: 10,
child_lock: 'OFF',
child_lock_left: 'OFF',
child_lock_right: 'OFF',
device_mode: 'shutter',
last_seen: '2024-04-28T04:27:03+02:00',
linkquality: 83,
motor_state: 'idle',
position: 1,
state: 'OPEN',
state_left: 'OFF',
state_right: 'OFF',
switch_type: 'button',
tilt: 100
}
updateState - latestPosition=1
updateState - this.lastPositionSet=100
updateState - doIgnoreIfEqual=false
scaleAndUpdateCurrentPosition
scaleAndUpdateCurrentPosition - isStopped=true
-----------
updateState
{
calibration_closing_time: 10,
calibration_opening_time: 10,
child_lock: 'OFF',
child_lock_left: 'OFF',
child_lock_right: 'OFF',
device_mode: 'shutter',
last_seen: '2024-04-28T04:27:03+02:00',
linkquality: 83,
motor_state: 'opening',
position: 1,
state: 'OPEN',
state_left: 'OFF',
state_right: 'OFF',
switch_type: 'button',
tilt: 100
}
updateState - latestPosition=1
updateState - this.lastPositionSet=100
updateState - doIgnoreIfEqual=false
scaleAndUpdateCurrentPosition
scaleAndUpdateCurrentPosition - isStopped=true
-----------
updateState
{
calibration_closing_time: 10,
calibration_opening_time: 10,
child_lock: 'OFF',
child_lock_left: 'OFF',
child_lock_right: 'OFF',
device_mode: 'shutter',
last_seen: '2024-04-28T04:27:04+02:00',
linkquality: 83,
motor_state: 'opening',
position: 2,
state: 'OPEN',
state_left: 'OFF',
state_right: 'OFF',
switch_type: 'button',
tilt: 100
}
updateState - latestPosition=2
updateState - this.lastPositionSet=100
updateState - doIgnoreIfEqual=false
scaleAndUpdateCurrentPosition
scaleAndUpdateCurrentPosition - isStopped=true
-----------
updateState
{
calibration_closing_time: 10,
calibration_opening_time: 10,
child_lock: 'OFF',
child_lock_left: 'OFF',
child_lock_right: 'OFF',
device_mode: 'shutter',
last_seen: '2024-04-28T04:27:04+02:00',
linkquality: 83,
motor_state: 'opening',
position: 11,
state: 'OPEN',
state_left: 'OFF',
state_right: 'OFF',
switch_type: 'button',
tilt: 100
}
updateState - latestPosition=11
updateState - this.lastPositionSet=100
updateState - doIgnoreIfEqual=false
scaleAndUpdateCurrentPosition
scaleAndUpdateCurrentPosition - isStopped=true
-----------
updateState
{
calibration_closing_time: 10,
calibration_opening_time: 10,
child_lock: 'OFF',
child_lock_left: 'OFF',
child_lock_right: 'OFF',
device_mode: 'shutter',
last_seen: '2024-04-28T04:27:06+02:00',
linkquality: 83,
motor_state: 'opening',
position: 21,
state: 'OPEN',
state_left: 'OFF',
state_right: 'OFF',
switch_type: 'button',
tilt: 100
}
updateState - latestPosition=21
updateState - this.lastPositionSet=100
updateState - doIgnoreIfEqual=false
scaleAndUpdateCurrentPosition
scaleAndUpdateCurrentPosition - isStopped=true
-----------
updateState
{
calibration_closing_time: 10,
calibration_opening_time: 10,
child_lock: 'OFF',
child_lock_left: 'OFF',
child_lock_right: 'OFF',
device_mode: 'shutter',
last_seen: '2024-04-28T04:27:06+02:00',
linkquality: 83,
motor_state: 'opening',
position: 31,
state: 'OPEN',
state_left: 'OFF',
state_right: 'OFF',
switch_type: 'button',
tilt: 100
}
updateState - latestPosition=31
updateState - this.lastPositionSet=100
updateState - doIgnoreIfEqual=false
scaleAndUpdateCurrentPosition
scaleAndUpdateCurrentPosition - isStopped=true
-----------
updateState
{
calibration_closing_time: 10,
calibration_opening_time: 10,
child_lock: 'OFF',
child_lock_left: 'OFF',
child_lock_right: 'OFF',
device_mode: 'shutter',
last_seen: '2024-04-28T04:27:07+02:00',
linkquality: 83,
motor_state: 'opening',
position: 41,
state: 'OPEN',
state_left: 'OFF',
state_right: 'OFF',
switch_type: 'button',
tilt: 100
}
updateState - latestPosition=41
updateState - this.lastPositionSet=100
updateState - doIgnoreIfEqual=false
scaleAndUpdateCurrentPosition
scaleAndUpdateCurrentPosition - isStopped=true
-----------
updateState
{
calibration_closing_time: 10,
calibration_opening_time: 10,
child_lock: 'OFF',
child_lock_left: 'OFF',
child_lock_right: 'OFF',
device_mode: 'shutter',
last_seen: '2024-04-28T04:27:08+02:00',
linkquality: 83,
motor_state: 'opening',
position: 51,
state: 'OPEN',
state_left: 'OFF',
state_right: 'OFF',
switch_type: 'button',
tilt: 100
}
updateState - latestPosition=51
updateState - this.lastPositionSet=100
updateState - doIgnoreIfEqual=false
scaleAndUpdateCurrentPosition
scaleAndUpdateCurrentPosition - isStopped=true
-----------
updateState
{
calibration_closing_time: 10,
calibration_opening_time: 10,
child_lock: 'OFF',
child_lock_left: 'OFF',
child_lock_right: 'OFF',
device_mode: 'shutter',
last_seen: '2024-04-28T04:27:09+02:00',
linkquality: 83,
motor_state: 'opening',
position: 61,
state: 'OPEN',
state_left: 'OFF',
state_right: 'OFF',
switch_type: 'button',
tilt: 100
}
updateState - latestPosition=61
updateState - this.lastPositionSet=100
updateState - doIgnoreIfEqual=false
scaleAndUpdateCurrentPosition
scaleAndUpdateCurrentPosition - isStopped=true
-----------
updateState
{
calibration_closing_time: 10,
calibration_opening_time: 10,
child_lock: 'OFF',
child_lock_left: 'OFF',
child_lock_right: 'OFF',
device_mode: 'shutter',
last_seen: '2024-04-28T04:27:10+02:00',
linkquality: 83,
motor_state: 'opening',
position: 71,
state: 'OPEN',
state_left: 'OFF',
state_right: 'OFF',
switch_type: 'button',
tilt: 100
}
updateState - latestPosition=71
updateState - this.lastPositionSet=100
updateState - doIgnoreIfEqual=false
scaleAndUpdateCurrentPosition
scaleAndUpdateCurrentPosition - isStopped=true
-----------
updateState
{
calibration_closing_time: 10,
calibration_opening_time: 10,
child_lock: 'OFF',
child_lock_left: 'OFF',
child_lock_right: 'OFF',
device_mode: 'shutter',
last_seen: '2024-04-28T04:27:11+02:00',
linkquality: 83,
motor_state: 'opening',
position: 81,
state: 'OPEN',
state_left: 'OFF',
state_right: 'OFF',
switch_type: 'button',
tilt: 100
}
updateState - latestPosition=81
updateState - this.lastPositionSet=100
updateState - doIgnoreIfEqual=false
scaleAndUpdateCurrentPosition
scaleAndUpdateCurrentPosition - isStopped=true
-----------
updateState
{
calibration_closing_time: 10,
calibration_opening_time: 10,
child_lock: 'OFF',
child_lock_left: 'OFF',
child_lock_right: 'OFF',
device_mode: 'shutter',
last_seen: '2024-04-28T04:27:12+02:00',
linkquality: 80,
motor_state: 'opening',
position: 91,
state: 'OPEN',
state_left: 'OFF',
state_right: 'OFF',
switch_type: 'button',
tilt: 100
}
updateState - latestPosition=91
updateState - this.lastPositionSet=100
updateState - doIgnoreIfEqual=false
scaleAndUpdateCurrentPosition
scaleAndUpdateCurrentPosition - isStopped=true
-----------
updateState
{
calibration_closing_time: 10,
calibration_opening_time: 10,
child_lock: 'OFF',
child_lock_left: 'OFF',
child_lock_right: 'OFF',
device_mode: 'shutter',
last_seen: '2024-04-28T04:27:13+02:00',
linkquality: 80,
motor_state: 'opening',
position: 100,
state: 'OPEN',
state_left: 'OFF',
state_right: 'OFF',
switch_type: 'button',
tilt: 100
}
updateState - latestPosition=100
updateState - this.lastPositionSet=100
updateState - doIgnoreIfEqual=false
scaleAndUpdateCurrentPosition
scaleAndUpdateCurrentPosition - isStopped=true
-----------
updateState
{
calibration_closing_time: 10,
calibration_opening_time: 10,
child_lock: 'OFF',
child_lock_left: 'OFF',
child_lock_right: 'OFF',
device_mode: 'shutter',
last_seen: '2024-04-28T04:27:15+02:00',
linkquality: 83,
motor_state: 'opening',
position: 100,
state: 'OPEN',
state_left: 'OFF',
state_right: 'OFF',
switch_type: 'button',
tilt: 100
}
updateState - latestPosition=100
updateState - this.lastPositionSet=100
updateState - doIgnoreIfEqual=false
scaleAndUpdateCurrentPosition
scaleAndUpdateCurrentPosition - isStopped=true
-----------
updateState
{
calibration_closing_time: 10,
calibration_opening_time: 10,
child_lock: 'OFF',
child_lock_left: 'OFF',
child_lock_right: 'OFF',
device_mode: 'shutter',
last_seen: '2024-04-28T04:27:15+02:00',
linkquality: 80,
motor_state: 'idle',
position: 100,
state: 'OPEN',
state_left: 'OFF',
state_right: 'OFF',
switch_type: 'button',
tilt: 100
}
updateState - latestPosition=100
updateState - this.lastPositionSet=100
updateState - doIgnoreIfEqual=false
scaleAndUpdateCurrentPosition
scaleAndUpdateCurrentPosition - isStopped=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment