forked from nielsfaber/scheduler-card
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconst.ts
executable file
·44 lines (36 loc) · 1.11 KB
/
const.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import { CardConfig } from './types';
export const CARD_VERSION = 'v2.4.0';
export const DefaultTimeStep = 10;
export const DefaultGroupIcon = 'folder-outline';
export const DefaultEntityIcon = 'folder-outline';
export const DefaultActionIcon = 'flash';
export const DeadEntityName = '(unknown entity)';
export const DeadEntityIcon = 'help-circle-outline';
export const FieldTemperature = 'temperature';
export const WorkdaySensor = 'binary_sensor.workday_sensor';
export const NotifyDomain = 'notify';
export enum ETabOptions {
Entity = 'entity',
Time = 'time',
Options = 'options',
}
export const DefaultCardConfig: CardConfig = {
type: 'scheduler-card',
discover_existing: true,
standard_configuration: true,
include: [],
exclude: [],
groups: [],
customize: {},
title: true,
time_step: 10,
show_header_toggle: false,
display_options: {
primary_info: 'default',
secondary_info: ['relative-time', 'additional-tasks'],
icon: 'action',
},
tags: [],
sort_by: ['relative-time', 'state'],
};
export const WebsocketEvent = 'scheduler_updated';