mirror of
https://github.com/DigiLive/mushroom-strategy.git
synced 2025-08-04 20:14:28 +02:00
@@ -166,6 +166,10 @@ export const ConfigurationDefaults: StrategyDefaults = {
|
||||
order: 2,
|
||||
hidden: false,
|
||||
},
|
||||
lock: {
|
||||
order: 10,
|
||||
hidden: false,
|
||||
},
|
||||
scene: {
|
||||
order: 9,
|
||||
hidden: false,
|
||||
|
@@ -40,7 +40,10 @@
|
||||
"lights": "Leuchten"
|
||||
},
|
||||
"lock": {
|
||||
"locks": "Schlösser"
|
||||
"locked": "Gesperrt",
|
||||
"all_locks": "Alle Schlösser",
|
||||
"locks": "Schlösser",
|
||||
"unlocked": "Entsperrt"
|
||||
},
|
||||
"media_player": {
|
||||
"media_players": "Wiedergabegeräte"
|
||||
|
@@ -40,7 +40,10 @@
|
||||
"lights": "Lights"
|
||||
},
|
||||
"lock": {
|
||||
"locks": "Locks"
|
||||
"all_locks": "All Locks",
|
||||
"locked": "Locked",
|
||||
"locks": "Locks",
|
||||
"unlocked": "Unlocked"
|
||||
},
|
||||
"media_player": {
|
||||
"media_players": "Media Players"
|
||||
|
@@ -40,7 +40,10 @@
|
||||
"lights": "Luces"
|
||||
},
|
||||
"lock": {
|
||||
"locks": "Candados"
|
||||
"all_locks": "Todas las Candados",
|
||||
"locked": "Locked",
|
||||
"locks": "Candados",
|
||||
"unlocked": "Desbloqueado"
|
||||
},
|
||||
"media_player": {
|
||||
"media_players": "Reproductores Multimedia"
|
||||
|
@@ -40,7 +40,10 @@
|
||||
"lights": "Lampen"
|
||||
},
|
||||
"lock": {
|
||||
"locks": "Sloten"
|
||||
"all_locks": "Alle Sloten",
|
||||
"locked": "Vergrendeld",
|
||||
"locks": "Sloten",
|
||||
"unlocked": "Ontgrendeld"
|
||||
},
|
||||
"media_player": {
|
||||
"media_players": "Mediaspelers"
|
||||
|
@@ -45,7 +45,18 @@ const SUPPORTED_DOMAINS = [
|
||||
*
|
||||
* This constant array defines the views that are supported by the strategy.
|
||||
*/
|
||||
const SUPPORTED_VIEWS = ['camera', 'climate', 'cover', 'fan', 'home', 'light', 'scene', 'switch', 'vacuum'] as const;
|
||||
const SUPPORTED_VIEWS = [
|
||||
'camera',
|
||||
'climate',
|
||||
'cover',
|
||||
'fan',
|
||||
'home',
|
||||
'light',
|
||||
'lock',
|
||||
'scene',
|
||||
'switch',
|
||||
'vacuum',
|
||||
] as const;
|
||||
|
||||
/**
|
||||
* List of supported chips.
|
||||
@@ -245,7 +256,7 @@ export interface StrategyArea extends AreaRegistryEntry {
|
||||
* @property {boolean} fan_count - Chip to display the number of fans on.
|
||||
* @property {boolean} light_count - Chip to display the number of lights on.
|
||||
* @property {boolean} switch_count - Chip to display the number of switches on.
|
||||
* @property {"auto" | `weather.${string}`} weather_entity - Entity id for the weather chip to use.
|
||||
* @property {'auto' | `weather.${string}`} weather_entity - Entity id for the weather chip to use.
|
||||
* Accepts `weather.` ids or `auto` only.
|
||||
*/
|
||||
export interface ChipConfiguration {
|
||||
|
@@ -7,13 +7,13 @@ import { localize } from '../utilities/localize';
|
||||
import AbstractView from './AbstractView';
|
||||
|
||||
/**
|
||||
* Lock View Class.
|
||||
* Vacuum View Class.
|
||||
*
|
||||
* Used to create a view configuration for entities of the lock domain.
|
||||
*/
|
||||
class LockView extends AbstractView {
|
||||
/** The domain of the entities that the view is representing. */
|
||||
static readonly domain = 'lock' as const;
|
||||
static readonly domain = 'vacuum' as const;
|
||||
|
||||
/** Returns the default configuration object for the view. */
|
||||
static getDefaultConfig(): ViewConfig {
|
||||
|
Reference in New Issue
Block a user