homebridge-miot
Version:
Homebridge plugin for devices supporting the miot protocol
57 lines (56 loc) • 1.74 kB
JavaScript
module.exports = {
// general
TOGGLE: 'toggle',
TOGGLE_POWER: 'toggle_power',
TOGGLE_MODE: 'toggle_mode',
TOGGLE_LEVEL: 'toggle_level',
START_CHARGE: 'start_charge',
STOP_CHARGE: 'stop_charge',
GO_CHARGE: 'go_charge',
LOOP_GEAR: 'loop_gear',
PAUSE: 'pause',
// filter
RESET_FILTER_LIFE: 'reset_filter_life',
RESET_HIGH_EFF_FILTER_LIFE: 'reset_high_eff_filter_life',
// robot cleaner
START_SWEEP: 'start_sweep',
STOP_SWEEP: 'stop_sweep',
PAUSE_SWEEP: 'pause_sweep',
START_MOP: 'start_mop',
START_SWEEP_MOP: 'start_sweep_mop',
START_ROOM_SWEEP: 'start_room_sweep',
RESET_BRUSH_LIFE: 'reset_brush_life',
RESET_SIDE_BRUSH_LIFE: 'reset_side_brush_life',
START_CLEAN: 'start_clean',
STOP_CLEAN: 'stop_clean',
PLAY_SOUND: 'play_sound',
LOCATE_ROBOT: 'locate_robot',
START_DUST_COLLECT: 'start_dust_collect',
STOP_MASSAGE: 'stop_massage',
START_ONLY_SWEEP: 'start_only_sweep',
// oven
START_COOK: 'start_cook',
CANCEL_COOKING: 'cancel_cooking',
RESUME_COOK: 'resume_cook',
// ceiling fan
BRIGHTNESS_UP: 'brightness_up',
BRIGHTNESS_DOWN: 'brightness_down',
BRIGHTNESS_CYCLE: 'brightness_cycle',
COLOR_TEMP_CYCLE: 'color_temp_cycle',
COLOR_TEMP_INCREASE: 'color_temp_increase',
COLOR_TEMP_DECREASE: 'color_temp_decrease',
ON_OR_BRIGHT_CYCLE: 'on_or_bright_cycle',
ON_OR_COLOR_TEMP_CYCLE: 'on_or_color_temp_cycle',
FAN_GEAR_CYCLE: 'fan_gear_cycle',
SET_SCENE: 'set_scene',
// camera
SD_CARD_FORMAT: 'sd_card_format',
SD_CARD_POP_UP: 'sd_card_pop_up',
START_P2P_STREAM: 'start_p2p_stream',
STOP_CAMERA_STREAM: 'stop_camera_stream',
RESTART_DEVICE: 'restart_device',
// bath heater
STOP_WORKING: 'stop_working',
// curtain
IDENTIFY: 'identify'
};