Skip to content
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

beta <- alpha #1045

Closed
wants to merge 29 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
db3a36c
Upgrade minimum node version and dependency maintenance (#988)
Supereg Nov 28, 2022
cc567f4
Removing deprecated service and characteristic definitions (#989)
Supereg Nov 28, 2022
4c33cf0
Add updated services and characteristics
Supereg Apr 20, 2023
e502c41
Remove deprecated Core and BridgeCore (see #1001)
Supereg Apr 20, 2023
b597f87
Discord Webhooks
donavanbecker Dec 28, 2023
7fbf230
Update Workflows
donavanbecker Dec 28, 2023
650ec3d
Merge branch 'latest' into beta-1.0.0
donavanbecker Jun 24, 2024
49abf34
Update pr-labeler.yml
donavanbecker Jun 24, 2024
a99b99f
AdaptiveLightingController fix & improvement (#1038)
Shaquu Jun 25, 2024
ae9981c
Merge branch 'beta-0.12.3' into beta-1.0.0
donavanbecker Jun 25, 2024
ed02c8c
correct log spacing
donavanbecker Jun 26, 2024
c2b70b8
Support for IPv4-mapped IPv6 addresses
donavanbecker Jun 27, 2024
f4e3227
Merge branch 'beta-0.12.3' into ipv4mapped2ipv6-hap
donavanbecker Jun 28, 2024
16fcfc1
prepare for v1.0.0
donavanbecker Jun 25, 2024
ea4657d
hap-nodejs: alpha
donavanbecker Jul 1, 2024
dcd6c1c
Update CHANGELOG.md
donavanbecker Jul 4, 2024
80923fa
Merge branch 'beta-0.12.3' into ipv4mapped2ipv6-hap
donavanbecker Jul 4, 2024
80f7ac3
ensure that the startsWith shifts to a case-insensitive regex
donavanbecker Jul 4, 2024
3009a73
ensure that the startsWith shifts to a case-insensitive regex
donavanbecker Jul 4, 2024
9baa2ef
update from beta
donavanbecker Jul 4, 2024
5e9ec8b
Update checkName.ts
donavanbecker Jul 4, 2024
7226f8d
Merge branch 'beta-0.12.3' into alpha-1.0.0
donavanbecker Jul 4, 2024
8009662
ciao: alpha
donavanbecker Jul 5, 2024
772c2eb
Merge branch 'ipv4mapped2ipv6-hap' into alpha-1.0.0
donavanbecker Jul 5, 2024
ba34259
Merge branch 'beta-0.12.3' into alpha-1.0.0
donavanbecker Jul 5, 2024
82d11c8
Delete discord-webhooks.yml
donavanbecker Jul 5, 2024
3997e72
Merge branch 'latest' into alpha-1.0.0
donavanbecker Jul 6, 2024
7628d8b
Update CHANGELOG.md
donavanbecker Jul 6, 2024
77219c8
Merge branch 'latest' into alpha-1.0.0
donavanbecker Jul 11, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/accessories/Camera_accessory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -515,8 +515,8 @@ class MP4StreamingServer {
console.log(this.ffmpegPath + " " + this.args.join(" "));

this.childProcess = spawn(this.ffmpegPath, this.args, { env: process.env, stdio: this.debugMode? "pipe": "ignore" });
if (!this.childProcess) {
console.error("ChildProcess is undefined directly after the init!");
if (!this.childProcess ||!this.childProcess.stdout || !this.childProcess.stderr) {
throw new Error("ChildProcess or its streams is undefined directly after the init!");
}
if(this.debugMode) {
this.childProcess.stdout?.on("data", data => console.log(data.toString()));
Expand Down
18 changes: 9 additions & 9 deletions src/accessories/gstreamer-audioProducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,15 +134,15 @@ export class GStreamerAudioProducer implements SiriAudioStreamProducer {
}

/*
This listener seems to get called with only one opus frame most of the time.
Though it happens regularly that another or many more frames get appended.
This causes some problems as opus frames don't contain their data length in the "header".
Opus relies on the container format to specify the length of the frame.
Although sometimes multiple opus frames are squashed together the decoder seems to be able
to handle that as it just creates a not very noticeable distortion.
If we would want to make this perfect we would need to write a nodejs c++ submodule or something
to interface directly with gstreamer api.
*/
This listener seems to get called with only one opus frame most of the time.
Though it happens regularly that another or many more frames get appended.
This causes some problems as opus frames don't contain their data length in the "header".
Opus relies on the container format to specify the length of the frame.
Although sometimes multiple opus frames are squashed together the decoder seems to be able
to handle that as it just creates a not very noticeable distortion.
If we wanted to make this perfect we would need to write a nodejs c++ submodule or something
to interface directly with gstreamer api.
*/

this.frameHandler({
data: data,
Expand Down
45 changes: 10 additions & 35 deletions src/lib/Characteristic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ import type {
ManagedNetworkEnable,
ManuallyDisabled,
Manufacturer,
MatterFirmwareRevisionNumber,
MatterFirmwareUpdateStatus,
MaximumTransmitPower,
MetricsBufferFullState,
Model,
Expand Down Expand Up @@ -142,9 +144,6 @@ import type {
RecordingAudioActive,
RelativeHumidityDehumidifierThreshold,
RelativeHumidityHumidifierThreshold,
RelayControlPoint,
RelayEnabled,
RelayState,
RemainingDuration,
RemoteKey,
ResetFilterIndication,
Expand Down Expand Up @@ -230,10 +229,6 @@ import type {
ThreadStatus,
Token,
TransmitPower,
TunnelConnectionTimeout,
TunneledAccessoryAdvertising,
TunneledAccessoryConnected,
TunneledAccessoryStateNumber,
ValveType,
Version,
VideoAnalysisActive,
Expand Down Expand Up @@ -1062,6 +1057,14 @@ export class Characteristic extends EventEmitter {
* @group Characteristic Definitions
*/
public static Manufacturer: typeof Manufacturer;
/**
* @group Characteristic Definitions
*/
public static MatterFirmwareRevisionNumber: typeof MatterFirmwareRevisionNumber;
/**
* @group Characteristic Definitions
*/
public static MatterFirmwareUpdateStatus: typeof MatterFirmwareUpdateStatus;
/**
* @group Characteristic Definitions
*/
Expand Down Expand Up @@ -1226,18 +1229,6 @@ export class Characteristic extends EventEmitter {
* @group Characteristic Definitions
*/
public static RelativeHumidityHumidifierThreshold: typeof RelativeHumidityHumidifierThreshold;
/**
* @group Characteristic Definitions
*/
public static RelayControlPoint: typeof RelayControlPoint;
/**
* @group Characteristic Definitions
*/
public static RelayEnabled: typeof RelayEnabled;
/**
* @group Characteristic Definitions
*/
public static RelayState: typeof RelayState;
/**
* @group Characteristic Definitions
*/
Expand Down Expand Up @@ -1578,22 +1569,6 @@ export class Characteristic extends EventEmitter {
* @group Characteristic Definitions
*/
public static TransmitPower: typeof TransmitPower;
/**
* @group Characteristic Definitions
*/
public static TunnelConnectionTimeout: typeof TunnelConnectionTimeout;
/**
* @group Characteristic Definitions
*/
public static TunneledAccessoryAdvertising: typeof TunneledAccessoryAdvertising;
/**
* @group Characteristic Definitions
*/
public static TunneledAccessoryConnected: typeof TunneledAccessoryConnected;
/**
* @group Characteristic Definitions
*/
public static TunneledAccessoryStateNumber: typeof TunneledAccessoryStateNumber;
/**
* @group Characteristic Definitions
*/
Expand Down
54 changes: 12 additions & 42 deletions src/lib/definitions/CharacteristicDefinitions.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,18 @@ describe("CharacteristicDefinitions", () => {
});
});

describe("MatterFirmwareRevisionNumber", () => {
it("should be able to construct", () => {
new Characteristic.MatterFirmwareRevisionNumber();
});
});

describe("MatterFirmwareUpdateStatus", () => {
it("should be able to construct", () => {
new Characteristic.MatterFirmwareUpdateStatus();
});
});

describe("MaximumTransmitPower", () => {
it("should be able to construct", () => {
new Characteristic.MaximumTransmitPower();
Expand Down Expand Up @@ -832,24 +844,6 @@ describe("CharacteristicDefinitions", () => {
});
});

describe("RelayControlPoint", () => {
it("should be able to construct", () => {
new Characteristic.RelayControlPoint();
});
});

describe("RelayEnabled", () => {
it("should be able to construct", () => {
new Characteristic.RelayEnabled();
});
});

describe("RelayState", () => {
it("should be able to construct", () => {
new Characteristic.RelayState();
});
});

describe("RemainingDuration", () => {
it("should be able to construct", () => {
new Characteristic.RemainingDuration();
Expand Down Expand Up @@ -1360,30 +1354,6 @@ describe("CharacteristicDefinitions", () => {
});
});

describe("TunnelConnectionTimeout", () => {
it("should be able to construct", () => {
new Characteristic.TunnelConnectionTimeout();
});
});

describe("TunneledAccessoryAdvertising", () => {
it("should be able to construct", () => {
new Characteristic.TunneledAccessoryAdvertising();
});
});

describe("TunneledAccessoryConnected", () => {
it("should be able to construct", () => {
new Characteristic.TunneledAccessoryConnected();
});
});

describe("TunneledAccessoryStateNumber", () => {
it("should be able to construct", () => {
new Characteristic.TunneledAccessoryStateNumber();
});
});

describe("ValveType", () => {
it("should be able to construct", () => {
new Characteristic.ValveType();
Expand Down
158 changes: 35 additions & 123 deletions src/lib/definitions/CharacteristicDefinitions.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// THIS FILE IS AUTO-GENERATED - DO NOT MODIFY
// V=880
// V=884

import { Access, Characteristic, Formats, Perms, Units } from "../Characteristic";

Expand Down Expand Up @@ -2014,6 +2014,40 @@ export class Manufacturer extends Characteristic {
}
Characteristic.Manufacturer = Manufacturer;

/**
* Characteristic "Matter Firmware Revision Number"
*/
export class MatterFirmwareRevisionNumber extends Characteristic {

public static readonly UUID: string = "0000026D-0000-1000-8000-0026BB765291";

constructor() {
super("Matter Firmware Revision Number", MatterFirmwareRevisionNumber.UUID, {
format: Formats.UINT32,
perms: [Perms.NOTIFY, Perms.PAIRED_READ],
});
this.value = this.getDefaultValue();
}
}
Characteristic.MatterFirmwareRevisionNumber = MatterFirmwareRevisionNumber;

/**
* Characteristic "Matter Firmware Update Status"
*/
export class MatterFirmwareUpdateStatus extends Characteristic {

public static readonly UUID: string = "0000026E-0000-1000-8000-0026BB765291";

constructor() {
super("Matter Firmware Update Status", MatterFirmwareUpdateStatus.UUID, {
format: Formats.TLV8,
perms: [Perms.NOTIFY, Perms.PAIRED_READ],
});
this.value = this.getDefaultValue();
}
}
Characteristic.MatterFirmwareUpdateStatus = MatterFirmwareUpdateStatus;

/**
* Characteristic "Maximum Transmit Power"
* @since iOS 14
Expand Down Expand Up @@ -2805,60 +2839,6 @@ export class RelativeHumidityHumidifierThreshold extends Characteristic {
}
Characteristic.RelativeHumidityHumidifierThreshold = RelativeHumidityHumidifierThreshold;

/**
* Characteristic "Relay Control Point"
*/
export class RelayControlPoint extends Characteristic {

public static readonly UUID: string = "0000005E-0000-1000-8000-0026BB765291";

constructor() {
super("Relay Control Point", RelayControlPoint.UUID, {
format: Formats.TLV8,
perms: [Perms.NOTIFY, Perms.PAIRED_READ, Perms.PAIRED_WRITE],
});
this.value = this.getDefaultValue();
}
}
Characteristic.RelayControlPoint = RelayControlPoint;

/**
* Characteristic "Relay Enabled"
*/
export class RelayEnabled extends Characteristic {

public static readonly UUID: string = "0000005B-0000-1000-8000-0026BB765291";

constructor() {
super("Relay Enabled", RelayEnabled.UUID, {
format: Formats.BOOL,
perms: [Perms.NOTIFY, Perms.PAIRED_READ, Perms.PAIRED_WRITE],
});
this.value = this.getDefaultValue();
}
}
Characteristic.RelayEnabled = RelayEnabled;

/**
* Characteristic "Relay State"
*/
export class RelayState extends Characteristic {

public static readonly UUID: string = "0000005C-0000-1000-8000-0026BB765291";

constructor() {
super("Relay State", RelayState.UUID, {
format: Formats.UINT8,
perms: [Perms.NOTIFY, Perms.PAIRED_READ],
minValue: 0,
maxValue: 5,
minStep: 1,
});
this.value = this.getDefaultValue();
}
}
Characteristic.RelayState = RelayState;

/**
* Characteristic "Remaining Duration"
*/
Expand Down Expand Up @@ -4571,74 +4551,6 @@ export class TransmitPower extends Characteristic {
}
Characteristic.TransmitPower = TransmitPower;

/**
* Characteristic "Tunnel Connection Timeout"
*/
export class TunnelConnectionTimeout extends Characteristic {

public static readonly UUID: string = "00000061-0000-1000-8000-0026BB765291";

constructor() {
super("Tunnel Connection Timeout", TunnelConnectionTimeout.UUID, {
format: Formats.INT,
perms: [Perms.NOTIFY, Perms.PAIRED_READ, Perms.PAIRED_WRITE],
});
this.value = this.getDefaultValue();
}
}
Characteristic.TunnelConnectionTimeout = TunnelConnectionTimeout;

/**
* Characteristic "Tunneled Accessory Advertising"
*/
export class TunneledAccessoryAdvertising extends Characteristic {

public static readonly UUID: string = "00000060-0000-1000-8000-0026BB765291";

constructor() {
super("Tunneled Accessory Advertising", TunneledAccessoryAdvertising.UUID, {
format: Formats.BOOL,
perms: [Perms.NOTIFY, Perms.PAIRED_READ, Perms.PAIRED_WRITE],
});
this.value = this.getDefaultValue();
}
}
Characteristic.TunneledAccessoryAdvertising = TunneledAccessoryAdvertising;

/**
* Characteristic "Tunneled Accessory Connected"
*/
export class TunneledAccessoryConnected extends Characteristic {

public static readonly UUID: string = "00000059-0000-1000-8000-0026BB765291";

constructor() {
super("Tunneled Accessory Connected", TunneledAccessoryConnected.UUID, {
format: Formats.BOOL,
perms: [Perms.NOTIFY, Perms.PAIRED_READ, Perms.PAIRED_WRITE],
});
this.value = this.getDefaultValue();
}
}
Characteristic.TunneledAccessoryConnected = TunneledAccessoryConnected;

/**
* Characteristic "Tunneled Accessory State Number"
*/
export class TunneledAccessoryStateNumber extends Characteristic {

public static readonly UUID: string = "00000058-0000-1000-8000-0026BB765291";

constructor() {
super("Tunneled Accessory State Number", TunneledAccessoryStateNumber.UUID, {
format: Formats.INT,
perms: [Perms.NOTIFY, Perms.PAIRED_READ],
});
this.value = this.getDefaultValue();
}
}
Characteristic.TunneledAccessoryStateNumber = TunneledAccessoryStateNumber;

/**
* Characteristic "Valve Type"
*/
Expand Down
Loading
Loading