Skip to content

Instantly share code, notes, and snippets.

@nrobinson2000
Created September 18, 2016 14:47
Show Gist options
  • Save nrobinson2000/714400c4184eff7628b499ae0348e4c6 to your computer and use it in GitHub Desktop.
Save nrobinson2000/714400c4184eff7628b499ae0348e4c6 to your computer and use it in GitHub Desktop.
Hombridge config.json for creating Particle and IFTTT accessories
{
"bridge": {
"name": "Homebridge",
"username": "CC:22:3D:E3:CE:39",
"port": 51826,
"pin": "031-45-154"
},
"description": "This configuration file creates a Particle platform with 4 accessories, and an IFTTT platform with 1 accessory.",
"platforms": [
{
"platform": "Particle",
"name": "Particle Devices",
"access_token": "CENSORED",
"cloudurl": "https://api.particle.io/v1/devices/",
"devices": [
{
"accessory": "LED",
"name": "LED",
"deviceid": "CENSORED",
"type": "LIGHT",
"function_name": "onoff",
"args": "0={STATE"
},
{
"accessory": "Light",
"name": "Light",
"deviceid": "CENSORED",
"type": "SENSOR",
"sensorType": "light",
"key": "light",
"event_name": "light"
},
{
"accessory": "Temperature",
"name": "Temperature",
"deviceid": "CENSORED",
"type": "SENSOR",
"sensorType": "temperature",
"key": "temperature",
"event_name": "temperature"
},
{
"accessory": "Humidity",
"name": "Humidity",
"deviceid": "CENSORED",
"type": "SENSOR",
"sensorType": "humidity",
"key": "humidity",
"event_name": "humidity"
}
]
},
{
"platform": "IFTTT",
"name": "IFTTT",
"makerkey": "CENSORED",
"accessories": [
{
"name": "Notification",
"buttons": [
{
"caption": "Notify",
"trigger": "notify"
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment