Skip to content

Instantly share code, notes, and snippets.

@IOT-123
Created August 3, 2018 01:06
Show Gist options
  • Save IOT-123/af958800cae364812cf372646a4d393c to your computer and use it in GitHub Desktop.
Save IOT-123/af958800cae364812cf372646a4d393c to your computer and use it in GitHub Desktop.
An example of the deviceInfo packet used for AssimilateCrouton: https://github.com/IOT-123/AssimilateCrouton
{
"deviceInfo": {
"endPoints": {
"CC_device": {
"device_name": "ash_mezz_A3",
"card-type": "assim-device",
"ssid": "Corelines_2",
"ip_addr": "192.168.8.104",
"endpoints": [
{
"title": "Grow Lights",
"card-type": "crouton-simple-toggle",
"endpoint": "switch"
},
{
"title": "Planter Lights",
"card-type": "crouton-assim-weekview",
"endpoint": "CC_switch"
}
]
},
"CC_switch": {
"card-type": "assim-weekview",
"info": "Set the lights on or off in 15 minute time slots",
"path": "http://192.168.8.104/cors",
"title": "Planter Lights",
"interval_mins": 15,
"values": {
"value": ""
}
},
"switch": {
"title": "Grow Lights",
"card-type": "crouton-simple-toggle",
"info": "Turn lights on or off on an ad hoc basis",
"labels": {
"false": "OFF",
"true": "ON"
},
"icons": {
"false": "sun-o",
"true": "sun-o"
},
"values": {
"value": 0
}
}
},
"status": "good",
"name": "ash_mezz_A3",
"description": "Office at Ashmore, Mezzanine, Area A2",
"color": "#4D90FE"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment