iobroker.esphome
Version:
Control your ESP8266/ESP32 with simple yet powerful configuration files created and managed by ESPHome
103 lines (101 loc) • 2.49 kB
JavaScript
const stateAttrb = {
NAMEOFTHESTATE1: {
name: 'READABLE NAME/DESCRIPTION',
type: 'number|string|array|boolean...',
read: true,
write: false,
role: 'value',
// unit: 's|°|%...',
// modify: ['multiply(3.6)', 'round(2)']
},
Position: {
name: 'Position of cover',
type: 'number.',
read: true,
write: false,
role: 'level.blind',
},
Tilt: {
name: 'Tilt of cover',
type: 'number',
read: true,
write: false,
role: 'level.tilt',
// unit: 's|°|%...',
// modify: ['multiply(3.6)', 'round(2)']
},
Stop: {
name: 'STOP cover',
type: 'boolean',
read: true,
write: false,
role: 'button',
// unit: 's|°|%...',
// modify: ['multiply(3.6)', 'round(2)']
},
Button: {
name: 'Button',
type: 'boolean',
read: true,
write: true,
role: 'button',
// unit: 's|°|%...',
// modify: ['multiply(3.6)', 'round(2)']
},
LockState: {
name: 'Lock State',
type: 'number',
read: true,
write: false,
role: 'sensor.lock',
// 0 = NONE, 1 = LOCKED, 2 = UNLOCKED, 3 = JAMMED, 4 = LOCKING, 5 = UNLOCKING
},
LockCommand: {
name: 'Lock Command',
type: 'number',
read: true,
write: true,
role: 'level.lock',
// 0 = UNLOCK, 1 = LOCK, 2 = OPEN
},
FanSpeed: {
name: 'Fan Speed (deprecated)',
type: 'number',
read: true,
write: false,
role: 'level',
// Deprecated: 0 = LOW, 1 = MEDIUM, 2 = HIGH
},
FanSpeedLevel: {
name: 'Fan Speed Level',
type: 'number',
read: true,
write: true,
role: 'level',
// Speed level from 0 to supported_speed_levels
},
FanDirection: {
name: 'Fan Direction',
type: 'number',
read: true,
write: true,
role: 'value',
// 0 = FORWARD, 1 = REVERSE
},
FanOscillating: {
name: 'Fan Oscillating',
type: 'boolean',
read: true,
write: true,
role: 'switch',
},
rgbAutoWhite: {
name: 'Auto white channel',
type: 'boolean',
read: true,
write: true,
role: 'switch',
},
};
module.exports = stateAttrb;
//# sourceMappingURL=stateAttr.js.map