Подключение к HomeBridge

Перейти к оглавлению

Содержимое файла Config.json для HomeBridge:

{
  "accessory": "mqttthing",
  "type": "switch",
  "name": "Проветривание",
  "topics":
  {
      "getOn":"driventair-xxx/stat",
      "setOn":"driventair-xxx/sw"
  },
  "onValue":"1",
  "offValue":"0"
},
{
  "accessory": "mqttthing",
  "type": "switch",
  "name": "Расписание",
  "topics":
  {
      "getOn":"driventair-xxx/shstat",
      "setOn":"driventair-xxx/sh"
  },
  "onValue":"1",
  "offValue":"0"
},
{
  "accessory": "mqttthing",
  "type": "thermostat",
  "name": "Термостат",
  "topics":
  {
      "getCurrentHeatingCoolingState": "driventair-xxx/getTerm",
      "setTargetHeatingCoolingState": "driventair-xxx/setTerm",
      "getTargetHeatingCoolingState": "driventair-xxx/getTerm",
      "getCurrentTemperature": "driventair-xxx/temp",
      "setTargetTemperature": "driventair-xxx/setTemp",
      "getTargetTemperature": "driventair-xxx/getTemp",
      "getCurrentRelativeHumidity": "driventair-xxx/hum"
  },
      "heatingCoolingStateValues":["off","heat","cool","auto"],
      "restrictHeatingCoolingState":[0, 2]
},
{
  "accessory": "mqttthing",
  "type": "carbonDioxideSensor",
  "name": "CO2",
  "topics":
  {
  "getCarbonDioxideDetected": {
          "topic": "driventair-xxx/co2",
          "apply": "return (JSON.parse(message) <= 1000 ? 'NORMAL' : 'ABNORMAL');" },
  "getCarbonDioxideLevel":"driventair-xxx/co2"
  },
  "carbonDioxideDetectedValues": [ "NORMAL", "ABNORMAL" ]
}

Перейти к оглавлению