Skip to content
cflurin edited this page Aug 5, 2016 · 8 revisions

Welcome to the homebridge-mqtt wiki!

Homebridge <-> ESP8266

Example: Temperature Sensor ds18b20

  1. Install ESP Easy

  2. Open ESP Easy and add a Device:

Device: Temperature - DS18b20
Name: esp18b20
Delay: 300
Value Name 1: temperature
  1. In Tools > Advancedselect Rules

  2. Open the tab Rules and add this code:

on ds18b20#temperature do
  Publish homebridge/to/set,{"name":"esp_temp","characteristic":"CurrentTemperature","value":[ds18b20#temperature]}
endon
  1. Add the accessory to homebridge-mqtt e.g. with node-red:
topic: homebridge/to/add
payload: {"name":"esp_temp","service":"TemperatureSensor"}
Clone this wiki locally