The protocol is now in the development branch of rfcontroljs.
But at the moment It is only working with the GPIO driver.
-
Quigg Protocol for rfcontroljs
pimatic rocks!!!
-
Thank you for that. I try to implement the protocol, but i have some problems: At first i changed the controller.js in the lib folder. After that i added the switch13.js in lib/protocols. But you have 4 changed files, but in my Homeduino-folder i cannot find the controller.coffee in src and the switch13.coffee in src/protocols. I cannot find folders called like that. So i started pimatic without that two changes. I can add a Button for the switch, but when i will turn it on it comes to a failure: “Ups…object has no method create ‘paritybit’” or something like that. I can see the message just for a little moment. Can you tell me, how the config.json for this protocol have to look like (in the devices section)?
-
You need the helper.js too.
The coffee files are the sources and this are not needed for you.You made it right. copy this one file an it should work.
pimatic rocks!!!
-
The helper.js is already in the /lib folder.
-
my version of this file. I have added a new function to create the parity bit.
https://github.com/pimatic/rfcontroljs/commit/525f1af7f2d02305df92171ad99a6866ad02947f
pimatic rocks!!!
-
Okay now it works perfect! Thank you so much!
-
Did you implement the Dimmer functionality too? Does that work with a HomeduinoRFButtonsDevice with a Dimm-up Button and a Dimm-down Button?
-
You cant use the DimmerDevice because, the protocol don´t support a real dimmer value.
But a ButtonsDevice should already work.{ "id": "homeduino-buttons", "name": "Buttons", "class": "HomeduinoRFButtonsDevice", "buttons": [ { "id": "button-up", "text": "Bright Up", "protocols": [{ "name": "switch13", "options": { "unit": 0, "id": 42, "state": true, "dimm": true } }] }, { "id": "button-down", "text": "Bright Down", "protocols": [{ "name": "switch13", "options": { "unit": 0, "id": 42, "state": false, "dimm": true } }] } ] }
pimatic rocks!!!
-
hm that does not work. is the quigg_switch protocol from pilight the basis for the switch13 protocol? With the quigg_switch protocol i could never control the switch so that the dimmer works. I could only switch them on and off. In pilight 6 they have new quigg protocols: quigg_gt7000 for switching and quigg_screen for the dimmer function. With that (quigg_screen) i can already dim my switch. To get this to work, I have a normal button_device in pimatic and sending “sudo pilight-send -p quigg_screen -u 0 -i 1000 -t” commands with pimatic-shell-execute, when i press a button. For bright down, you need just a “-f” instead of “-t”. Could it be the problem, that you use the quigg_switch protocol as the basis for switches and dimmer?
-
Hm pilight-receive receives a quigg_screen protocol, when i am using the dim buttons with the switch13 protocol. So it ist correct. I’ll have to check my config.
-
Okay that is interesting: When i send a dim-command with pilight-send, the light bright up and pilight-receive give me this output:
{ "origin": "sender", "protocol": "quigg_screen", "message": { "id": 1500, "unit": 1, "state": "up" }, "repeat": 1, "uuid": "0000-00-00-56-7263e9" }
And when i am using the dim_buttons with the switch13 protocol, the light is not bright up and i get this output from pilight-receive:
{ "message": { "id": 1500, "unit": 1, "state": "up" }, "origin": "receiver", "protocol": "quigg_screen", "uuid": "0000-00-00-56-7263e9", "repeats": 1 } { "message": { "id": 1500, "unit": 1, "state": "up" }, "origin": "receiver", "protocol": "quigg_screen", "uuid": "0000-00-00-56-7263e9", "repeats": 2 } { "message": { "id": 1500, "unit": 1, "state": "up" }, "origin": "receiver", "protocol": "quigg_screen", "uuid": "0000-00-00-56-7263e9", "repeats": 3 } { "message": { "id": 1500, "unit": 1, "state": "up" }, "origin": "receiver", "protocol": "quigg_screen", "uuid": "0000-00-00-56-7263e9", "repeats": 4 } { "message": { "id": 1500, "unit": 1, "state": "up" }, "origin": "receiver", "protocol": "quigg_screen", "uuid": "0000-00-00-56-7263e9", "repeats": 5 } { "message": { "id": 1500, "unit": 1, "state": "up" }, "origin": "receiver", "protocol": "quigg_screen", "uuid": "0000-00-00-56-7263e9", "repeats": 6 } { "message": { "id": 1500, "unit": 1, "state": "up" }, "origin": "receiver", "protocol": "quigg_screen", "uuid": "0000-00-00-56-7263e9", "repeats": 7 }
So the protocol seems to be identical. But pimatic sends 7 repeats and pilight just 1. Is this the problem, why the dimmer not react?
-
Pimatic repeats normally all messages 7 times.
Go into this directory
/home/pi/pimatic-app/node_modules/pimatic-homeduino/node_modules/homeduino/lib/
and open the file "board.js"
change this line
https://github.com/pimatic/homeduinojs/blob/master/lib/board.js#L261repeats = 7;
to 1 or 2.
pimatic rocks!!!
-
Hm it does not work. And the switches which are not near at the sender doesn’t work with 1 or 2 repeats pilight-receive gives the outputs which i have posted in my last post. So the protocols seems to be the same or not? But the Dimmer only works when i control it with pilight. Perhaps the quigg_screen protocol can give you more information?
-
With a fast look at the quigg_screen i cant see a different.
pimatic rocks!!!
-
Okay…i changed the id of the switch, to the id of the remote control and check the output from pilight-receive.
With the remote control the Dimmer works and the Output is:
{ "message": { "id": 1462, "unit": 0, "state": "up" }, "origin": "receiver", "protocol": "quigg_screen", "uuid": "0000-00-00-56-7263e9", "repeats": 1 }
With Pilight and the quigg_screen protocol the Dimmer works and the Output is:
{ "origin": "sender", "protocol": "quigg_screen", "message": { "id": 1462, "unit": 0, "state": "up" }, "repeat": 1, "uuid": "0000-00-00-56-7263e9" }
With pimatic and the switch13 protocol the Dimmer doesn’t work and the output is:
{ "message": { "id": 1462, "unit": 0, "state": "up" }, "origin": "receiver", "protocol": "quigg_screen", "uuid": "0000-00-00-56-7263e9", "repeats": 1 }
And 6 more repeats. But there is one diffrence, when i use other unitcodes: If i want to send the protocol with pimatic and switch13 and i set the unitcode to 2, then pilight-receive receives : “unit”: 1 instead of 2. If i set it to unitcode 1 then pilight-receive receives: “unit”: 3 instead of 1. Only unitcode 0 is a “unit”: 0 when i receive the signals with pilight-receive. But this is not so import, because the switches have a learn button. I don’t think that this is the problem, why the Dimmer does not work with the switch13 protocol. So at the moment i don’t know why this fails. I copied the complete code, which you have posted for the Dimmerbuttons in my config. So i don’t know, what i could have done wrong.
-
With the newest update it is possible to change the amount of RF repeats in the config.json.
example:{ "plugin": "homeduino", "driver": "GPIO", "driverOptions": {}, "receiverPin": 0, "transmitterPin": 4, "rfrepeats": 2 }
you can try to change this.
At the weekend i will take a closer look to the pilight protocol and try to find a failurepimatic rocks!!!
-
I tried to change the rfrepeats in the config, but the Dimmer still does not work. By the way, there is a difference between the pilight protocoll quigg_screen and the remote control. With the remote control there are some more Dimmer-steps until the light is completely on. With the pilight protocol the Dimmer makes more dimm-up- or dimm-down-steps in one. Hope you understand what i mean. That is not a Problem for me - but i noticed that.
Thank you for your work so far -
The dimmer problem isnt solved but sweetpi has pushed a update for RFControl and Homeduino so we can handle timings above 65000 on the arduino.
https://github.com/pimatic/RFControl/commit/63007cbf263de5ed361834d6dddeafbe488f61bb
https://github.com/pimatic/homeduino/commit/446fb5645ae22ca3422e215627e1497f21fe3d38pimatic rocks!!!
-
Okay! Next week i’ll get my arduino. Than i can check if the Switches work with an arduino too!
-
The Switches also work perfect with the arduino! But the Dimmer still does not work. Would it be helpfull to post the debug output, when i am receiving the signals from the remote control with the arduino?