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
bspans
@bspans
Is this even possible?
Oitzu
@Oitzu
Yes create devices that correspond to your button presses.
You can then create rules that respond to the state of that devices.
bspans
@bspans
It also seems that the remote sends with one press a whole lot of information. Or is it just pimatic interpreting it differently.
i'm just installing the new pimatic from scratch, so it takes some time to send information or codes.
Abílio Costa
@abmantis
@bspans what do you mean by a lot of information?
bspans
@bspans
when my installation finshes I'll share some of the output.
Abílio Costa
@abmantis
many protocols on the log? if so, that is normal. usually many protocols match with the same code, but only one of the protocols will work correctly
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