File tree Expand file tree Collapse file tree 5 files changed +15
-0
lines changed
homebridge-hatch-baby-rest Expand file tree Collapse file tree 5 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' homebridge-hatch-baby-rest ' : minor
3+ ---
4+
5+ Add support for Restore 3 (restoreV5)
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ const knownProducts: Product[] = [
3333 Product . restore ,
3434 Product . restoreIot ,
3535 Product . restoreV4 ,
36+ Product . restoreV5 ,
3637 Product . restBaby ,
3738 ] ,
3839 ignoredProducts : Product [ ] = [
@@ -244,6 +245,7 @@ export class HatchBabyApi {
244245 restores : createDevices ( Product . restore , Restore ) ,
245246 restoreIots : createDevices ( Product . restoreIot , RestIot ) ,
246247 restoreV4s : createDevices ( Product . restoreV4 , RestIot ) ,
248+ restoreV5s : createDevices ( Product . restoreV5 , RestIot ) ,
247249 restBabies : createDevices ( Product . restBaby , RestIot ) ,
248250 }
249251 }
Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ export class HatchBabyRestPlatform implements DynamicPlatformPlugin {
7575 restIots,
7676 restIotPluses,
7777 restoreV4s,
78+ restoreV5s,
7879 restBabies,
7980 } = hatchBabyApi
8081 ? await hatchBabyApi . getDevices ( )
@@ -86,6 +87,7 @@ export class HatchBabyRestPlatform implements DynamicPlatformPlugin {
8687 restIotPluses : [ ] ,
8788 restoreIots : [ ] ,
8889 restoreV4s : [ ] ,
90+ restoreV5s : [ ] ,
8991 restBabies : [ ] ,
9092 } ,
9193 { api } = this ,
@@ -101,6 +103,7 @@ export class HatchBabyRestPlatform implements DynamicPlatformPlugin {
101103 ...restores ,
102104 ...restoreIots ,
103105 ...restoreV4s ,
106+ ...restoreV5s ,
104107 ...restBabies ,
105108 ]
106109
Original file line number Diff line number Diff line change @@ -24,6 +24,10 @@ export class RestIot extends IotDevice<RestIotState> implements BaseDevice {
2424 return 'Rest+ 2nd Gen'
2525 case Product . restBaby :
2626 return 'Hatch Baby'
27+ case Product . restoreV4 :
28+ return 'Restore 2'
29+ case Product . restoreV5 :
30+ return 'Restore 3'
2731 case Product . riot :
2832 return 'Rest 2nd Gen'
2933 default :
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ export const Product = {
77 restore : 'restore' ,
88 restoreIot : 'restoreIot' ,
99 restoreV4 : 'restoreV4' ,
10+ restoreV5 : 'restoreV5' ,
1011 alexa : 'alexa' ,
1112 grow : 'grow' ,
1213 answeredReader : 'answeredReader' ,
You can’t perform that action at this time.
0 commit comments