Smartnest ES
Buscar…
11. Integración con Homebridge
Para controlar tus dispositivos usando Siri y la API de HomeKit, necesitarás:
    1.
    Instalar Homebridge en tu Windows, Linux, Mac, or Raspberry
    2.
    Instalar el Plugin Homebridge Mqttthing
    3.
    Agregar la configuración del dispositivo como aparece abajo, dependiendo del tipo.
    4.
    Abre tu aplicación Home en tu dispositivo iOS y vincula escaneando el código QR del el portal de administración de Homebridge.
    5.
    Renombra tus dispositivos en la aplicación the Home.
    6.
    Listo!

Configuraciones de dispositivos:

    1.
    Switch or Light (No Tasmota)
1
{
2
"type": "switch",
3
"name": "31141235efb12D367", //YOUR DEVICE ID
4
"url": "smartnest.cz",
5
"username": "USERNAME",
6
"password": "PASSWORD or API KEY",
7
"topics": {
8
"getOnline": "31141235efb12D367/report/connected", //CHANGE HERE TOO
9
"getOn": "31141235efb12D367/report/powerState",
10
"setOn": "31141235efb12D367/directive/powerState"
11
},
12
"onlineValue": "Online",
13
"offlineValue": "Offline",
14
"onValue": "ON",
15
"offValue": "OFF",
16
"accessory": "mqttthing"
17
}
Copied!
2. Switch or Light (Tasmota)
1
{
2
"type": "switch",
3
"name": "31141235efb12D367", //YOUR DEVICE ID
4
"url": "smartnest.cz",
5
"username": "USERNAME",
6
"password": "PASSWORD or API KEY",
7
"topics": {
8
"getOnline": "31141235efb12D367/tele/LWT", //CHANGE HERE TOO
9
"getOn": "31141235efb12D367/stat/POWER",
10
"setOn": "31141235efb12D367/cmnd/POWER"
11
},
12
"onlineValue": "Online",
13
"offlineValue": "Offline",
14
"onValue": "ON",
15
"offValue": "OFF",
16
"accessory": "mqttthing"
17
}
Copied!
3. Door or Lock
1
{
2
"type": "lockMechanism",
3
"name": "31141235efb12D367", //YOUR DEVICE ID
4
"url": "smartnest.cz",
5
"username": "USERNAME",
6
"password": "PASSWORD or API KEY",
7
"topics": {
8
"getOnline": "31141235efb12D367/report/online", //CHANGE HERE TOO
9
"getLockCurrentState": "31141235efb12D367/report/lockedState",
10
"getLockTargetState": "31141235efb12D367/report/lockedState",
11
"setLockTargetState": "31141235efb12D367/directive/lockedState"
12
},
13
"lockValues": [
14
"false",
15
"true",
16
"Jammed",
17
"Unknown"
18
],
19
"accessory": "mqttthing"
20
}
Copied!
4. Thermostat
1
{
2
"accessory": "mqttthing",
3
"type": "thermostat",
4
"name": "31141235efb12D367", //YOUR DEVICE ID
5
"url": "smartnest.cz",
6
"username": "USERNAME",
7
"password": "PASSWORD or API KEY",
8
"topics": { //CHANGE HERE TOO
9
"getCurrentHeatingCoolingState": "31141235efb12D367/report/mode",
10
"setTargetHeatingCoolingState": "31141235efb12D367/directive/mode",
11
"getTargetHeatingCoolingState": "31141235efb12D367/report/mode",
12
"getCurrentTemperature": "31141235efb12D367/report/temperature",
13
"setTargetTemperature": "31141235efb12D367/directive/setpoint",
14
"getTargetTemperature": "31141235efb12D367/report/setpoint",
15
"setTemperatureDisplayUnits": "31141235efb12D367/directive/scale",
16
"getTemperatureDisplayUnits": "31141235efb12D367/directive/scale"
17
},
18
"heatingCoolingStateValues": [
19
"Heat",
20
"Cool",
21
"Auto"
22
],
23
"temperatureDisplayUnitsValues": [
24
"C",
25
"F"
26
],
27
"minTemperature": 10, //Change if you use Fahrenheit
28
"maxTemperature": 30, //Change if you use Fahrenheit
29
"restrictHeatingCoolingState": [
30
0,
31
1
32
]
33
}
Copied!
5. Temperature Sensor
1
{
2
"accessory": "mqttthing",
3
"type": "temperatureSensor",
4
"name": "31141235efb12D367", //YOUR DEVICE ID
5
"url": "smartnest.cz",
6
"username": "USERNAME",
7
"password": "PASSWORD or API KEY",
8
"caption": "Temperature",
9
"topics": { //CHANGE HERE TOO
10
"getCurrentTemperature": "31141235efb12D367/report/temperature"
11
},
12
"history": true,
13
"minTemperature": 10, //Change if you use Fahrenheit
14
"maxTemperature": 30 //Change if you use Fahrenheit
15
}
Copied!
6. Fan
1
{
2
"accessory": "mqttthing",
3
"type": "fan",
4
"name": "31141235efb12D367", //YOUR DEVICE ID
5
"url": "smartnest.cz",
6
"username": "USERNAME",
7
"password": "PASSWORD or API KEY",
8
"caption": "Fan",
9
"topics": { //CHANGE HERE TOO
10
"getOn": "31141235efb12D367/report/powerState",
11
"setOn": "31141235efb12D367/directive/powerState",
12
"getRotationSpeed": "31141235efb12D367/report/percentage",
13
"setRotationSpeed": "31141235efb12D367/directive/percentage"
14
},
15
"integerValue": false,
16
"onValue": "ON",
17
"offValue": "OFF",
18
"turnOffAfterms": 3600000
19
}
Copied!

Si quieres agregar un dispositivo diferente puedes consultar la página de Accesorios soportados en homebridge-mqttthing

Última actualización 1yr ago