@4nubis
Normally the protocol and the parameters are shown after the data receive. Something like this:
“debug: shutter1: { id: 1484914960, all: false, state: false }”
And then you can see the decoded id. I will have a look on this tomorrow.
[Solved] Roller Code 433 Mhz (Nobily) - Shutter 1
@4nubis
Normally the protocol and the parameters are shown after the data receive. Something like this:
“debug: shutter1: { id: 1484914960, all: false, state: false }”
And then you can see the decoded id. I will have a look on this tomorrow.
Danke für deine Hilfe Willy
We’re not finished Will need your help for further testing.
No problem, i will try to help . So good night this day,
@4nubis
OK, here are the new files:
awning1.js
shutter1.js
Copy them to “/home/pi/pimatic-app/node_modules/pimatic-homeduino/node_modules/homeduino/node_modules/rfcontroljs/lib/protocols”
controller.js
This file to “/home/pi/pimatic-app/node_modules/pimatic-homeduino/node_modules/homeduino/node_modules/rfcontroljs/lib” (first backup the old file):
Stop pimatic
Insert a new device:
{
"id": "rollo1",
"name": "Rollo1",
"class": "HomeduinoRFButtonsDevice",
"buttons": [
{
"id": "roll1-up",
"text": "Oeffnen",
"protocols": [
{
"name": "shutter1",
"options": {
"id": 1484914960,
"command": "up"
}
}
]
},
{
"id": "roll1-stop",
"text": "Stop",
"protocols": [
{
"name": "shutter1",
"options": {
"id": 1484914960,
"command": "stop"
}
}
]
},
{
"id": "roll1-down",
"text": "Schliessen",
"protocols": [
{
"name": "shutter1",
"options": {
"id": 1484914960,
"command": "down"
}
}
]
}
]
},
Restart pimatic.
Now you see the pressed buttons from the remote (except stop button due to different pulses … but works for sending) in the debug. Here you can also see your IDs for your different shutters.
there is a bug in the controller,js, because when i load it, there are no more devices and the homeduino debug doesnt load too. So i put the awning1 and shutter1 to the protocol of my backup controller.js and now it works . The id is showing too in the debug of homeduino.
But since i put the awning1 and shutter1 in lib, the cpu load is always on 50%, before it was only 2-3%. Use the gpios of the pi.
And did you know, why i cant use this rule?
(if rolladen-runter is pressed then after 5 seconds press rolladen-stop)
@4nubis
seems that the rule isn’t triggered.
Try this workaround:
create a new ButtonsDevice:
{
"id": "5sec-test",
"name": "5 Sekunden Test",
"class": "ButtonsDevice",
"buttons": [
{
"id": "5sec-test-button",
"text": "5 Sekunden fahren"
}
]
}
add a rule:
{
"id": "rolladen-test",
"name": "Rolladen Test",
"rule": "if 5sec-test-button is pressed then press rolladen-runter and after 5 seconds press rolladen-stop",
"active": true,
"logging": true
}
This worked in my quick tests.
When the changed protocolls are in the official sources you can use them as normal. For now you have to copy the files manual to their locations after the updates.
Yes with the second button it works! I tested to get the id from 5 Devices and it works also.
Thanks Willy
@4nubis
Which motors do you use? Are they silent?