@@ -708,6 +980,10 @@ export class EcoViewPeripherals extends DeesElement {
}
private renderContent(): TemplateResult {
+ if (this.activeCategory === 'settings') {
+ return this.renderSettings();
+ }
+
const devices = this.getFilteredDevices();
return html`
@@ -716,14 +992,23 @@ export class EcoViewPeripherals extends DeesElement {
${this.getCategoryTitle()}
${this.getCategoryDescription()}
-
+
Network Ranges
+
+ Add network ranges in CIDR notation to scan for devices (e.g., 192.168.1.0/24)
+
+
+
+ this.newNetworkInput = (e.target as HTMLInputElement).value}
+ @keydown=${(e: KeyboardEvent) => e.key === 'Enter' && this.handleAddNetwork()}
+ />
+
+
+
+ ${this.networkRanges.length > 0 ? html`
+
+ ${this.networkRanges.map(range => html`
+
+
+
+ ${range.cidr}
+ ${range.label ? html`${range.label}` : ''}
+
+
+
+ `)}
+
+
+
+ ` : html`
+
+ No network ranges configured. Add a range above to enable network scanning.
+
+ `}
+
+
+
+
+
Add Device by IP
+
+ Add a specific device by entering its IP address directly
+
+
+
+ this.newDeviceIpInput = (e.target as HTMLInputElement).value}
+ @keydown=${(e: KeyboardEvent) => e.key === 'Enter' && this.handleAddDeviceByIp()}
+ />
+
+
+
+ `;
+ }
+
private renderGroupedDevices(devices: IPeripheralDevice[]): TemplateResult {
const groups = new Map