Skip to content

Instantly share code, notes, and snippets.

@tomvo tomvo/config.json
Created Sep 19, 2016

Embed
What would you like to do?
pimatic config for dht22 and 433mhz sending and receiving
{
"settings": {
"debug": true,
"logLevel": "debug",
"httpServer": {
"enabled": false,
"port": 80
},
"httpsServer": {
"enabled": true,
"port": 443,
"hostname": "",
"keyFile": "ca/pimatic-ssl/private/privkey.pem",
"certFile": "ca/pimatic-ssl/public/cert.pem",
"rootCertFile": "ca/certs/cacert.crt"
},
"database": {
"deviceAttributeLogging": [
{
"deviceId": "*",
"attributeName": "*",
"type": "*",
"interval": "0",
"expire": "7d"
},
{
"deviceId": "*",
"attributeName": "*",
"type": "continuous",
"interval": "5min",
"expire": "7d"
},
{
"deviceId": "*",
"attributeName": "temperature",
"type": "number",
"expire": "1y"
},
{
"deviceId": "*",
"attributeName": "humidity",
"type": "number",
"expire": "1y"
}
],
"messageLogging": [
{
"level": "*",
"tags": [],
"expire": "7d"
},
{
"level": "debug",
"tags": [],
"expire": "0"
}
]
},
"authentication": {
"secret": "WA1yxV9t+Lz/iyrBvEtIumGSEy9w+yLnSx+uhYntn5jjM8dcFqVIuNf/Xv2jBnzsURnucMVaLUlna5DeJcXFpQ=="
},
"gui": {},
"cors": {}
},
"plugins": [
{
"plugin": "cron"
},
{
"plugin": "mobile-frontend"
},
{
"plugin": "gpio"
},
{
"plugin": "homeduino",
"driver": "serialport",
"driverOptions": {
"serialDevice": "/dev/ttyUSB0",
"baudrate": 115200
},
"receiverPin": 0,
"transmitterPin": 4,
"debug": true,
"active": true
},
{
"plugin": "dht-sensors"
}
],
"devices": [
{
"protocols": [
{
"name": "switch1",
"options": {
"id": "123456",
"unit": 0
}
}
],
"id": "humidifier",
"name": "humidifier",
"class": "HomeduinoRFSwitch"
},
{
"pin": 10,
"xAttributeOptions": [],
"id": "dht22",
"name": "dht22",
"class": "HomeduinoDHTSensor",
"type": 22,
"interval": 5000
},
{
"protocols": [
{
"name": "switch1",
"options": {
"id": "123456",
"unit": 1
}
}
],
"id": "fridge",
"name": "fridge",
"class": "HomeduinoRFSwitch"
}
],
"rules": [
{
"id": "humidity-drying-phase",
"name": "Humidity Drying Phase",
"rule": "when humidity of dht22 <= 80 then turn on humidifier",
"active": true,
"logging": true
},
{
"id": "humidity-off-drying-phase",
"name": "humidity off - Drying Phase",
"rule": "when humidity of dht22 > 85 then turn off humidifier",
"active": true,
"logging": true
},
{
"id": "turn-fridge-off-when-below-drying-temperature",
"name": "turn fridge off when below drying temperature",
"rule": "when temperature of dht22 < 12 then turn fridge off",
"active": true,
"logging": true
},
{
"id": "turn-fridge-on-when-above-drying-temperature",
"name": "turn fridge on when above drying temperature",
"rule": "when temperature of dht22 >= 16 then turn fridge on",
"active": true,
"logging": true
}
],
"pages": [
{
"id": "favourite",
"name": "Favourites",
"devices": [
{
"deviceId": "humidifier"
},
{
"deviceId": "dht22"
},
{
"deviceId": "fridge"
},
{
"deviceId": "lamp"
}
]
}
],
"groups": [],
"users": [
{
"username": "admin",
"password": "CHANGEME",
"role": "admin"
}
],
"roles": [
{
"name": "admin",
"permissions": {
"pages": "write",
"rules": "write",
"variables": "write",
"messages": "write",
"events": "write",
"devices": "write",
"groups": "write",
"plugins": "write",
"updates": "write",
"database": "write",
"config": "write",
"controlDevices": true,
"restart": true
}
}
],
"variables": []
}
pi@ra
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.