mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-15 17:12:59 -04:00
21 lines
1.1 KiB
JavaScript
21 lines
1.1 KiB
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,
|
|
// Keeping the example device in the saved template explains the required
|
|
// ESPHome naming shape while `enabled: false` prevents accidental control.
|
|
defaultValue: { enabled: false, device: 'neato_vacuum' },
|
|
schema: strictObject({
|
|
enabled: boolean({ description: 'Immediately exposes Neato status and commands through the configured Home Assistant ESPHome device.' }),
|
|
device: string({ description: 'ESPHome device name used to derive the Neato entity IDs in Home Assistant; punctuation is normalized to underscores.', examples: ['neato_vacuum'], maxLength: 255 }),
|
|
}, {
|
|
title: 'Neato',
|
|
description: 'Optional Neato robot controls backed by entities published from one ESPHome device through Home Assistant.',
|
|
required: ['enabled', 'device'],
|
|
}),
|
|
};
|