mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 01:21:20 -04:00
19 lines
939 B
JavaScript
19 lines
939 B
JavaScript
// Neato Configuration
|
|
// Purpose: Defines the Neato device mapping nested beneath the shared Home Assistant connection.
|
|
// Scope: Exports a nested configuration fragment without initializing either service.
|
|
const { strictObject, string, boolean } = require('../../configuration/schemaHelpers');
|
|
|
|
module.exports = {
|
|
key: 'neato',
|
|
feature: true,
|
|
defaultValue: { enabled: false, device: '' },
|
|
schema: strictObject({
|
|
enabled: boolean({ description: 'Exposes Neato status and commands through the configured Home Assistant ESPHome device after restart.' }),
|
|
device: string({ description: 'ESPHome device name used to derive the Neato entity IDs in Home Assistant; punctuation is normalized to underscores.', maxLength: 255 }),
|
|
}, {
|
|
title: 'Neato',
|
|
description: 'Optional Neato robot controls backed by entities published from one ESPHome device through Home Assistant.',
|
|
required: ['enabled', 'device'],
|
|
}),
|
|
};
|