node-red-contrib-esphome
Version:
Node-RED nodes to ESPhome devices
34 lines (32 loc) • 554 B
text/typescript
export const Status: {[key: string]: any} = {
error: {
fill: 'red',
shape: 'dot',
text: 'error'
},
disconnected: {
fill: 'red',
shape: 'ring',
text: 'disconnected'
},
connecting: {
fill: 'yellow',
shape: 'ring',
text: 'connecting'
},
connected: {
fill: 'green',
shape: 'dot',
text: 'connected'
}
} as const;
export const LogLevel: {[key: number]: string} = {
0: 'NONE',
1: 'ERROR',
2: 'WARN',
3: 'INFO',
4: 'CONFIG',
5: 'DEBUG',
6: 'VERBOSE',
7: 'VERY_VERBOSE'
} as const;