-
Notifications
You must be signed in to change notification settings - Fork 38
Home
cflurin edited this page Aug 5, 2016
·
8 revisions
Welcome to the homebridge-mqtt wiki!
Example: Temperature Sensor ds18b20
-
Install ESP Easy
-
Open ESP Easy and add a Device:
Device: Temperature - DS18b20
Name: esp18b20
Delay: 300
Value Name 1: temperature
-
In
Tools > Advanced
select Rules -
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
- Add the accessory to homebridge-mqtt e.g. with node-red:
topic: homebridge/to/add
payload: {"name":"esp_temp","service":"TemperatureSensor"}