Skip to content

Commit f912f09

Browse files
cameronsjoclaude
andauthored
fix(restore-iot): include paused:false in shadow updates (#154)
The Hatch Restore IoT device ignores routine/playback commands unless the `paused` field is explicitly set to `false` in the AWS IoT shadow update. Without this, the device remains in a paused state and does not respond to on/off commands from HomeKit. This fix: - Adds `paused: false` to all `setCurrent()` calls - Adds missing `paused` field to RestIotState type definition Tested with Restore IoT (restoreIot product type) running firmware 9.1.594. Co-authored-by: Cameron Sjo <cameronsjo@users.noreply.github.com> Co-authored-by: Claude <noreply@anthropic.com>
1 parent a3e7183 commit f912f09

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/homebridge-hatch-baby-rest/rest-iot.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ export class RestIot extends IotDevice<RestIotState> implements BaseDevice {
5252
playing,
5353
step,
5454
srId,
55+
paused: false, // Must explicitly unpause or device ignores the command
5556
},
5657
})
5758
}

packages/shared/hatch-sleep-types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ export interface RestIotState {
266266
srId: number
267267
playing: 'none' | 'remote' | 'routine' | string
268268
step: number
269+
paused: boolean
269270
color: {
270271
i: number
271272
id: number

0 commit comments

Comments
 (0)