Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Mar 09 2015 19:31

    sweetpi on master

    Small fix (compare)

  • Mar 09 2015 19:09
    sweetpi closed #576
  • Mar 09 2015 19:09

    sweetpi on master

    Added gitter badge (compare)

  • Mar 09 2015 19:07
    gitter-badger opened #576
Abílio Costa
@abmantis
ok
bspans
@bspans

Ah, okay, so which one should I take, and also the codes seem to change...

received: [ 284, 432, 1020, 10000 ] 02200220022002020202020202020221020202200220020203
data: "RF receive 284 1020 432 10000 0 0 0 0 01100110011001010101010101010112010101100110010103"
is one time the off button, when I press it again it shows something like

received: [ 200, 312, 1340, 2636, 10432 ] 030102010201020102020101020201010202010201020101020102010202010201010201020102010201020102010201020201010201020102010201020102010204
data: "RF receive 200 2636 312 1340 10432 0 0 0 010203020302030203030202030302020303020302030202030203020303020302020302030203020302030203020302030302020302030203020302030203020304"

Oitzu
@Oitzu
which manufacture?
bspans
@bspans
Promax.
I've been reading that threat.
thread
Abílio Costa
@abmantis
try to stay close to the receiver. it is probably failing to receive the complete signal sometimes, causing the different data
bspans
@bspans
Aha! :smile:
Abílio Costa
@abmantis
by the way, "RF receive" are raw values, while the "received: ...." are optimized If I recall correctly
bspans
@bspans
So the information to use when creating a device I have to take from the received codes
Abílio Costa
@abmantis
you should not need the data to create the device
you create a device with a already existing protocol
except if your device is not supported by any of the already existing protocols, ofc :D
bspans
@bspans
I was under the impression it wasn't supported and you needed the 'raw' type. What works for me now when sending from pimatic is like this
{
  "id": "test-raw",
  "name": "Stalamp",
  "class": "HomeduinoRFSwitch",
  "protocols": [
    {
      "name": "rawswitch",
      "options": {
        "pulseCount": 58,
        "pulseLengths": [
          222,
          438,
          952,
          5028
        ],
        "pulsesOn": "0202210202210202022102022102212102020221020202210221210203",
        "pulsesOff": "0202210202210202212121022121020221212121020202022121210203"
      },
      "send": true,
      "receive": false
    }
  ]
And I took the pluselenght info from the web, not my own remote since I wasn't able to get this information.
Abílio Costa
@abmantis
I've never used the rawswitch, but I think you can take the values from the "received: ..." line
the pulse lengths are on the array at the start : [ 200, 312, 1340, 2636, 10432 ]
bspans
@bspans
hmm, after the update (with the same config.json) the receiver isn't working anymore :(
Abílio Costa
@abmantis
any errors?
bspans
@bspans
hmm nope. Nothing again :( just like it was when the receiver was broken.
Abílio Costa
@abmantis
is the correct pin specified on the config?
bspans
@bspans
Well I think yes, since it's the same config.json that was used earlier.
Abílio Costa
@abmantis
try to check if you can receive data with something simpler than pimatic...
bspans
@bspans
like a connected led on the data and vcc ?
Abílio Costa
@abmantis
I was talking about some binary or script
that simply outputs the values from the receiver
there are some on the web
bspans
@bspans
pilight?
Abílio Costa
@abmantis
if you already have it instlled, yeah
bspans
@bspans
No, I'll look on google, to see what I can find to test the arduino is receiving
Abílio Costa
@abmantis
oh you have it connected to the arduino
bspans
@bspans
Yep.
using the plugin homeduino,
Abílio Costa
@abmantis
yeah
can you send data?
bspans
@bspans
yes
And before the update I was able to receive.
Abílio Costa
@abmantis
a few months ago there was some issues on pimatic that wouldn't show the debug output
not sure if that has been fixed yet
bspans
@bspans
hmm. So i'm better off using the .8 version :)
Abílio Costa
@abmantis
well, 0.9 works very well, except for that :D
if you are okay with messing with coffeescript, you can change the plugin and make it print info-type messages
bspans
@bspans
No I think I'll revert back to the previous version...
bspans
@bspans
hmm it works again :S don't know what happened, other than I've updated node-js
debug [pimatic-homeduino]: doorbell1: { id: 4053, unit: 1399, state: true }
14:47:55debug [pimatic-homeduino]: led4: { id: 21505, command: 'code:00010101' }
14:47:55debug [pimatic-homeduino]: led3: { id: 21505, command: 'magenta' }
14:47:55debug [pimatic-homeduino]: led2: { id: 21505, command: 'code:00010101' }
14:47:55debug [pimatic-homeduino]: led1: { id: 21505, command: 'code:00010101' }
14:47:55debug [pimatic-homeduino]: contact3: { id: 704494, contact: false }
14:47:55debug [pimatic-homeduino]: contact2: { id: 704494, contact: false }
14:47:55debug [pimatic-homeduino]: pir6: { id: 2621994, presence: true }
14:47:55debug [pimatic-homeduino]: pir1: { unit: 3, id: 26, presence: true }
14:47:55debug [pimatic-homeduino]: switch28: { id: 13421226, unit: 22102, command: undefined }
14:47:55debug [pimatic-homeduino]: switch27: { channel: 'D', unit: '0001011', state: false }
14:47:55debug [pimatic-homeduino]: switch22: { id: 704494, command: undefined }
14:47:55debug [pimatic-homeduino]: switch16: { id: 'D', unit: 1, state: false }
14:47:55debug [pimatic-homeduino]: switch15: { id: 344081, unit: 3, state: false, all: false }
14:47:55debug [pimatic-homeduino]: switch14: { id: 344081, unit: 2, all: true, state: true }
14:47:55debug [pimatic-homeduino]: switch7: { unit: 4, id: 7, state: false }
14:47:55debug [pimatic-homeduino]: switch5: { id: 704494, unit: 0, all: true, state: false }
14:47:55debug [pimatic-homeduino]: switch4: { unit: 3, id: 26, state: true }
14:47:55debug [pimatic-homeduino]: switch3: { houseCode: 3, unitCode: 26, state: false }
14:47:55debug [pimatic-homeduino]: switch2: { houseCode: 3, unitCode: 26, state: true }
14:47:55debug [pimatic-homeduino]: received: [ 272, 384, 1008, 9988 ] 02210221022102020202020202020221020202210221022103
14:47:55debug [pimatic-homeduino]: data: "RF receive 272 1008 384 9988 0 0 0 0 01120112011201010101010101010112010101120112011203"
and pushing the same button again I get
2016-10-02 14:49:39debug [pimatic-homeduino]: doorbell1: { id: 4053, unit: 1399, state: true }
14:49:39debug [pimatic-homeduino]: led4: { id: 21505, command: 'code:00010101' }
14:49:39debug [pimatic-homeduino]: led3: { id: 21505, command: 'magenta' }
14:49:39debug [pimatic-homeduino]: led2: { id: 21505, command: 'code:00010101' }
14:49:39debug [pimatic-homeduino]: led1: { id: 21505, command: 'code:00010101' }
14:49:39debug [pimatic-homeduino]: contact3: { id: 704494, contact: false }
14:49:39debug [pimatic-homeduino]: contact2: { id: 704494, contact: false }
14:49:39debug [pimatic-homeduino]: pir6: { id: 2621994, presence: true }
14:49:39debug [pimatic-homeduino]: pir1: { unit: 3, id: 26, presence: true }
14:49:39debug [pimatic-homeduino]: switch28: { id: 13421226, unit: 22102, command: undefined }
14:49:39debug [pimatic-homeduino]: switch27: { channel: 'D', unit: '0001011', state: false }
14:49:39debug [pimatic-homeduino]: switch22: { id: 704494, command: undefined }
14:49:39debug [pimatic-homeduino]: switch16: { id: 'D', unit: 1, state: false }
14:49:39debug [pimatic-homeduino]: switch15: { id: 344081, unit: 3, state: false, all: false }
14:49:39debug [pimatic-homeduino]: switch14: { id: 344081, unit: 2, all: true, state: true }
14:49:39debug [pimatic-homeduino]: switch7: { unit: 4, id: 7, state: false }
14:49:39debug [pimatic-homeduino]: switch5: { id: 704494, unit: 0, all: true, state: false }
14:49:39debug [pimatic-homeduino]: switch4: { unit: 3, id: 26, state: true }
14:49:39debug [pimatic-homeduino]: switch3: { houseCode: 3, unitCode: 26, state: false }
14:49:39debug [pimatic-homeduino]: switch2: { houseCode: 3, unitCode: 26, state: true }
14:49:39debug [pimatic-homeduino]: received: [ 268, 388, 1008, 9988 ] 02210221022102020202020202020221020202210221022103
14:49:39debug [pimatic-homeduino]: data: "RF receive 268 1008 388 9988 0 0 0 0 01120112011201010101010101010112010101120112011203"
seems that this 02210221022102020202020202020221020202210221022103 stays the same
Oitzu
@Oitzu
well it seems all stays the same ^^
is there a corresponding switch protocol to your remote?