Hello again,
If I took protocol Alarm 1 and class HomeduinoRFPIR" I received a couple of errors.
In another threat ( http://forum.pimatic.org/topic/548/solved-fa21rf-smoke-detector-alarm2/8 ) they use other values. I changed HomeduinoRFPir to HomeduinoRFSwitch and played wilt alarm1 and alarm2
If I start Pimatic it detects and connects with the device, so it’s looking good. Then I go to the Devices page and add a on/off button on the front screen. If I push the On/Off button nothing happens.
This is the log:
20:13:32.237 2016-01-18 Monday
20:14:04.642 [pimatic] info: Starting pimatic version 0.8.98
20:14:14.082 [pimatic] info: Loading plugin: "pimatic-cron" (0.8.5)
20:14:17.202 [pimatic] info: Loading plugin: "pimatic-mobile-frontend" (0.8.81)
20:14:23.495 [pimatic] info: Loading plugin: "pimatic-homeduino" (0.8.66)
20:14:31.025 [pimatic-cron] info: the time is: Mon Jan 18 2016 20:14:31 GMT+0000 (UTC)
20:14:32.148 [pimatic] warn: Device configuration of smoke1: Unknown config entry with name resetTime.
20:14:32.208 [pimatic] info: New device "Smoke alarm"...
20:14:32.773 [pimatic-homeduino] debug: data: "ready"
20:14:32.851 [pimatic-homeduino] info: Connected to homeduino device.
20:14:33.056 [pimatic-homeduino] debug: data: "ACK"
20:14:33.104 [pimatic-homeduino] debug: Receiving on pin 0
20:14:34.944 [pimatic-mobile-frontend] info: packing static assets
20:14:38.444 [pimatic-mobile-frontend] info: packing static assets finished
20:14:38.531 [pimatic-mobile-frontend] info: rendering html
20:15:32.588 [pimatic-mobile-frontend] info: rendering html finished
20:15:32.963 [pimatic] info: Listening for HTTP-request on port 80...
20:16:52.498 [pimatic-homeduino] debug: Sending Protocol: alarm1 id: 9699218 all: false state: true Pin: 1 Repeats: 7
20:16:54.665 [pimatic-homeduino] debug: data: "ACK"
20:16:59.599 [pimatic-homeduino] debug: Sending Protocol: alarm1 id: 9699218 all: false state: false Pin: 1 Repeats: 7
20:16:59.664 [pimatic-homeduino] debug: data: "ACK"
And this is my config:
{
"//": "Please only change this file when pimatic is NOT running, otherwise pimatic will overwrite your changes.",
"settings": {
"debug": true,
"logLevel": "debug",
"httpServer": {
"enabled": true,
"port": 80
},
"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": "1d"
}
]
},
"authentication": {
"secret": "xxxxxxxxxxxxxxxxxxxxxxxxxx"
},
"httpsServer": {},
"gui": {}
},
"plugins": [
{
"plugin": "cron"
},
{
"plugin": "mobile-frontend"
},
{
"plugin": "homeduino",
"driver": "gpio",
"driverOptions": {},
"receiverPin": 0,
"transmitterPin": 1
}
],
"devices": [
{
"id": "smoke1",
"name": "Smoke alarm",
"class": "HomeduinoRFSwitch",
"protocols": [
{
"name": "alarm1",
"options": {
"id": 9699218
}
}
],
"resetTime": 10000
}
],
"rules": [],
"pages": [
{
"id": "favourite",
"name": "Favourites",
"devices": [
{
"deviceId": "smoke1"
}
]
}
],
"groups": [],
"users": [
{
"username": "admin",
"password": "admin",
"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": []
}
I’m a complete noob like you see…
TIA