@homebridge-plugins/homebridge-meross 10.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1346 -0
- package/LICENSE +21 -0
- package/README.md +68 -0
- package/config.schema.json +2066 -0
- package/eslint.config.js +49 -0
- package/lib/connection/http.js +345 -0
- package/lib/connection/mqtt.js +174 -0
- package/lib/device/baby.js +532 -0
- package/lib/device/cooler-single.js +447 -0
- package/lib/device/diffuser.js +730 -0
- package/lib/device/fan.js +530 -0
- package/lib/device/garage-main.js +225 -0
- package/lib/device/garage-single.js +495 -0
- package/lib/device/garage-sub.js +376 -0
- package/lib/device/heater-single.js +445 -0
- package/lib/device/hub-contact.js +56 -0
- package/lib/device/hub-leak.js +86 -0
- package/lib/device/hub-main.js +403 -0
- package/lib/device/hub-sensor.js +115 -0
- package/lib/device/hub-smoke.js +40 -0
- package/lib/device/hub-valve.js +377 -0
- package/lib/device/humidifier.js +521 -0
- package/lib/device/index.js +63 -0
- package/lib/device/light-cct.js +474 -0
- package/lib/device/light-dimmer.js +312 -0
- package/lib/device/light-rgb.js +528 -0
- package/lib/device/outlet-multi.js +383 -0
- package/lib/device/outlet-single.js +405 -0
- package/lib/device/power-strip.js +282 -0
- package/lib/device/purifier-single.js +372 -0
- package/lib/device/purifier.js +403 -0
- package/lib/device/roller-location.js +317 -0
- package/lib/device/roller.js +234 -0
- package/lib/device/sensor-presence.js +201 -0
- package/lib/device/switch-multi.js +403 -0
- package/lib/device/switch-single.js +371 -0
- package/lib/device/template.js +177 -0
- package/lib/device/thermostat.js +493 -0
- package/lib/fakegato/LICENSE +21 -0
- package/lib/fakegato/fakegato-history.js +814 -0
- package/lib/fakegato/fakegato-storage.js +108 -0
- package/lib/fakegato/fakegato-timer.js +125 -0
- package/lib/fakegato/uuid.js +27 -0
- package/lib/homebridge-ui/public/index.html +316 -0
- package/lib/homebridge-ui/server.js +10 -0
- package/lib/index.js +8 -0
- package/lib/platform.js +1256 -0
- package/lib/utils/colour.js +581 -0
- package/lib/utils/constants.js +377 -0
- package/lib/utils/custom-chars.js +165 -0
- package/lib/utils/eve-chars.js +130 -0
- package/lib/utils/functions.js +39 -0
- package/lib/utils/lang-en.js +114 -0
- package/package.json +70 -0
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
accNotFound: 'accessory not found',
|
|
3
|
+
accTokenFail: 'could not use existing access token as',
|
|
4
|
+
accTokenFromCache: 'retrieved access token from cache',
|
|
5
|
+
accTokenInvalid: 'access token is invalid - check your credentials in the plugin config',
|
|
6
|
+
accTokenNoExist: 'does not exist, this is normally not an issue',
|
|
7
|
+
accTokenStoreErr: 'could not store access token as',
|
|
8
|
+
accTokenUserChange: 'username has changed',
|
|
9
|
+
alDisabled: 'adaptive lighting disabled due to change of colour detected',
|
|
10
|
+
beta: 'You are using a beta version of the plugin - you will experience more logging than normal',
|
|
11
|
+
brand: 'Meross Technology',
|
|
12
|
+
cfgDef: 'is not a valid number so using default of',
|
|
13
|
+
cfgDup: 'will be ignored since another entry with this ID already exists',
|
|
14
|
+
cfgIgn: 'is not configured correctly so ignoring',
|
|
15
|
+
cfgIgnItem: 'has an invalid entry which will be ignored',
|
|
16
|
+
cfgItem: 'Config entry',
|
|
17
|
+
cfgLow: 'is set too low so increasing to',
|
|
18
|
+
cfgMoveEntry: 'configuration entry should be moved to appropriate section in the UI',
|
|
19
|
+
cfgRmv: 'is unused and can be removed',
|
|
20
|
+
cfgQts: 'should not have quotes around its entry',
|
|
21
|
+
complete: '✓ Setup complete',
|
|
22
|
+
curBright: 'current brightness',
|
|
23
|
+
curCool: 'current cooling',
|
|
24
|
+
curDiffSpray: 'current diffuser spray',
|
|
25
|
+
curDiffState: 'current diffuser state',
|
|
26
|
+
curHeat: 'current heating',
|
|
27
|
+
curHumi: 'current humidity',
|
|
28
|
+
curInUse: 'current in use',
|
|
29
|
+
curLeak: 'current leak',
|
|
30
|
+
curLightBright: 'current light brightness',
|
|
31
|
+
curLightColour: 'current light colour (hs/rgb)',
|
|
32
|
+
curLightMode: 'current light mode',
|
|
33
|
+
curLightState: 'current light state',
|
|
34
|
+
curLightTemp: 'current light temperature (mired/kelvin)',
|
|
35
|
+
curLux: 'current lux',
|
|
36
|
+
curLock: 'current lock',
|
|
37
|
+
curOcc: 'current occupancy',
|
|
38
|
+
curMode: 'current mode',
|
|
39
|
+
curPos: 'current position',
|
|
40
|
+
curPower: 'current power',
|
|
41
|
+
curScene: 'current scene',
|
|
42
|
+
curSong: 'current song',
|
|
43
|
+
curSpeed: 'current speed',
|
|
44
|
+
curSpray: 'current spray',
|
|
45
|
+
curState: 'current state',
|
|
46
|
+
curTarg: 'current target',
|
|
47
|
+
curTemp: 'current temperature',
|
|
48
|
+
curVol: 'current volume',
|
|
49
|
+
curVolt: 'current voltage',
|
|
50
|
+
curWindow: 'current window',
|
|
51
|
+
devAdd: 'has been added to Homebridge',
|
|
52
|
+
devInit: 'initialised with id',
|
|
53
|
+
devInitOpts: 'initialising with options',
|
|
54
|
+
devNotAdd: 'could not be added to Homebridge as',
|
|
55
|
+
devNotConf: 'could not be configured as',
|
|
56
|
+
devNotInit: 'could not be initialised as',
|
|
57
|
+
devNotRemove: 'could not be removed from Homebridge as',
|
|
58
|
+
devRemove: 'has been removed from Homebridge',
|
|
59
|
+
devSubInit: 'subdevice initialised with id',
|
|
60
|
+
disabling: 'Disabling plugin',
|
|
61
|
+
disablingCloud: 'Disabling cloud client as',
|
|
62
|
+
disablingPower: 'disabling power readings as',
|
|
63
|
+
hbVersionFail: 'Your version of Homebridge is too low - update to v1.6',
|
|
64
|
+
httpRetry: 'unable to reach Meross, retrying in 30 seconds',
|
|
65
|
+
identify: 'identify button pressed',
|
|
66
|
+
incSubDevices: 'incoming subdevices',
|
|
67
|
+
incMQTT: 'incoming mqtt',
|
|
68
|
+
incPoll: 'incoming poll',
|
|
69
|
+
initialised: 'Plugin initialised. Setting up accessories...',
|
|
70
|
+
initialising: 'Initialising plugin',
|
|
71
|
+
invalidDevices: 'invalid device list received',
|
|
72
|
+
invalidResponse: 'invalid response received',
|
|
73
|
+
invalidSubdevices: 'invalid subdevice list received',
|
|
74
|
+
jsonInfo: 'json debug info',
|
|
75
|
+
loginFail: 'login failed',
|
|
76
|
+
loginRetry: 'retrying login as existing token is invalid/expired',
|
|
77
|
+
logout: 'Meross session closed and logged out',
|
|
78
|
+
merossKey: 'Meross Key',
|
|
79
|
+
mfaFail: 'MFA code missing or incorrect - please update your config',
|
|
80
|
+
missingCreds: 'username and password not supplied in config',
|
|
81
|
+
missingModal: 'missing config property \'model\' for this device',
|
|
82
|
+
noCredentials: 'Neither of username and password nor user key has been configured, or there was an issue obtaining cloud devices',
|
|
83
|
+
noHybridMode: 'cloud control is forced',
|
|
84
|
+
noInitHKIgnore: 'not initialising cloud device as matched as HomeKit native model',
|
|
85
|
+
noInitIgnore: 'not initialising cloud device as ignored or configured locally',
|
|
86
|
+
noInitMatterIgnore: 'not initialising cloud device as matched as Matter model',
|
|
87
|
+
noIP: 'no IP address provided for device',
|
|
88
|
+
noResponse: 'no response received from Meross server',
|
|
89
|
+
notAuth: 'not authenticated',
|
|
90
|
+
notSupp: 'is not supported, do create a github issue https://bit.ly/hb-meross-issues with info',
|
|
91
|
+
notSuppLocal: 'device does not support local control',
|
|
92
|
+
noUserKey: 'user key has not been configured',
|
|
93
|
+
pluginNotConf: 'Plugin has not been configured',
|
|
94
|
+
powerFail: 'failed to request power as',
|
|
95
|
+
refFailed: 'failed to refresh status as',
|
|
96
|
+
regionUpdate: 'region has been updated to',
|
|
97
|
+
repOffline: 'has been reported [offline]',
|
|
98
|
+
repOnline: 'has been reported [online]',
|
|
99
|
+
reqFail: 'request failed',
|
|
100
|
+
reqFailed: 'failed to request status as',
|
|
101
|
+
reqFailedSubs: 'failed to request subdevices as',
|
|
102
|
+
revertToCloud: 'reverting to cloud control as',
|
|
103
|
+
sendFailed: 'sending update failed as',
|
|
104
|
+
sendMQTT: 'sending mqtt',
|
|
105
|
+
sendPolling: 'sending poll request',
|
|
106
|
+
sendUpdate: 'sending update',
|
|
107
|
+
sensorNoCloud: 'cloud connection is necessary for MSH300/MSH400',
|
|
108
|
+
sensorNoSubs: 'subdevice list not in correct format',
|
|
109
|
+
storageWriteErr: 'could not save accessory to file as',
|
|
110
|
+
timeout: 'the request timed out',
|
|
111
|
+
viaAL: 'via adaptive lighting',
|
|
112
|
+
welcome: 'This plugin has been made with ♥ by bwp91, please consider a ☆ on GitHub if you are finding it useful!',
|
|
113
|
+
wrongDevice: 'queried IP belongs to a different Meross device',
|
|
114
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@homebridge-plugins/homebridge-meross",
|
|
3
|
+
"alias": "Meross",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"version": "10.8.0",
|
|
6
|
+
"description": "Homebridge plugin to integrate Meross devices into HomeKit.",
|
|
7
|
+
"author": {
|
|
8
|
+
"name": "bwp91",
|
|
9
|
+
"email": "bwp91@icloud.com"
|
|
10
|
+
},
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"funding": [
|
|
13
|
+
{
|
|
14
|
+
"type": "github",
|
|
15
|
+
"url": "https://github.com/sponsors/bwp91"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"type": "kofi",
|
|
19
|
+
"url": "https://ko-fi.com/bwp91"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"type": "patreon",
|
|
23
|
+
"url": "https://www.patreon.com/bwp91"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"type": "paypal",
|
|
27
|
+
"url": "https://www.paypal.me/BenPotter"
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"homepage": "https://github.com/homebridge-plugins/homebridge-meross",
|
|
31
|
+
"repository": {
|
|
32
|
+
"type": "git",
|
|
33
|
+
"url": "https://github.com/homebridge-plugins/homebridge-meross.git"
|
|
34
|
+
},
|
|
35
|
+
"bugs": {
|
|
36
|
+
"url": "https://github.com/homebridge-plugins/homebridge-meross/issues"
|
|
37
|
+
},
|
|
38
|
+
"keywords": [
|
|
39
|
+
"homebridge",
|
|
40
|
+
"homebridge-plugin",
|
|
41
|
+
"homebridge-meross",
|
|
42
|
+
"hoobs",
|
|
43
|
+
"hoobs-plugin",
|
|
44
|
+
"homekit",
|
|
45
|
+
"siri",
|
|
46
|
+
"meross",
|
|
47
|
+
"meross-cloud"
|
|
48
|
+
],
|
|
49
|
+
"main": "lib/index.js",
|
|
50
|
+
"engines": {
|
|
51
|
+
"homebridge": "^1.6.0 || ^2.0.0-beta.0",
|
|
52
|
+
"node": "^18.20.4 || ^20.18.0 || ^22.10.0"
|
|
53
|
+
},
|
|
54
|
+
"scripts": {
|
|
55
|
+
"lint": "eslint . --fix",
|
|
56
|
+
"rebuild": "rm -rf package-lock.json && rm -rf node_modules && npm install"
|
|
57
|
+
},
|
|
58
|
+
"dependencies": {
|
|
59
|
+
"@homebridge/plugin-ui-utils": "^1.0.3",
|
|
60
|
+
"axios": "^1.7.7",
|
|
61
|
+
"mqtt": "^5.10.1",
|
|
62
|
+
"node-persist": "^4.0.3",
|
|
63
|
+
"p-queue": "^8.0.1",
|
|
64
|
+
"p-timeout": "^6.1.3"
|
|
65
|
+
},
|
|
66
|
+
"devDependencies": {
|
|
67
|
+
"@antfu/eslint-config": "^3.8.0",
|
|
68
|
+
"eslint": "^9.13.0"
|
|
69
|
+
}
|
|
70
|
+
}
|