Skip to content

Instantly share code, notes, and snippets.

@tomvo
Created September 19, 2016 16:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomvo/cefaee14dfb496c2667eca52dce7e33c to your computer and use it in GitHub Desktop.
Save tomvo/cefaee14dfb496c2667eca52dce7e33c to your computer and use it in GitHub Desktop.
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