Uploaded image for project: 'Help-Coaches-Desk'
  1. Help-Coaches-Desk
  2. HELC-1363

FIWARE.Request.Coach.INCENSe.Proton cep rule not working

    Details

    • Type: extRequest
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Component/s: INCENSe
    • Labels:
      None

      Description

      Hi,

      i'm having a strange problem with a Proton rule: it should send a
      notification only when "internal temperature" and "external temperature"
      delta is above X.
      The issue is that the notification is always sent.
      Here is an example of what is pushed to cb (cep is subscribed obviously):
      *Pushing: {"attributes": [

      {"type": "float", "name": "temperature", "value": 19.336043141513539}

      ,

      {"type": "float", "name": "external_temperature", "value": 17.0}

      ,

      {"type": "float", "name": "temp_delta", "value": 5.0}

      ],
      "type": "Room", "id":
      "24246936d26f1544c3ede62259018d850a70b88482044610beeece9eef2c1ecf:Room",
      "isPattern": "false"}*

      (note that i tried with "type": "Double" too).
      And here is a snippet from my cep rule: http://dpaste.com/3HA0RM6.

      Any idea?

      Thanks,
      Federico Di Pierro

      Since January 1st, old domains won't be supported and messages sent to any domain different to @lists.fiware.org will be lost.
      Please, send your messages using the new domain (Fiware-incense-coaching@lists.fiware.org) instead of the old one.
      _______________________________________________
      Fiware-incense-coaching mailing list
      Fiware-incense-coaching@lists.fiware.org
      https://lists.fiware.org/listinfo/fiware-incense-coaching
      [Created via e-mail received from: Federico Di Pierro <f.dipierro@atooma.com>]

        Activity

        Hide
        fw.ext.user FW External User added a comment -

        Comment by f.dipierro@atooma.com :

        I noticed i was using "assertion" in "RoomEPA" instead of using
        "filterExpression" (as i'm doing with my other EPAs).
        This is "RoomEPA" new version: http://dpaste.com/0CNPAXC. It is still not
        working though.

        Federico Di Pierro

        2016-04-12 13:31 GMT+02:00 Federico Di Pierro <f.dipierro@atooma.com>:

        > Hi,
        >
        > i'm having a strange problem with a Proton rule: it should send a
        > notification only when "internal temperature" and "external temperature"
        > delta is above X.
        > The issue is that the notification is always sent.
        > Here is an example of what is pushed to cb (cep is subscribed obviously):
        > *Pushing: {"attributes": [

        {"type": "float", "name": "temperature", > "value": 19.336043141513539}

        ,

        {"type": "float", "name": > "external_temperature", "value": 17.0}

        ,

        {"type": "float", "name": > "temp_delta", "value": 5.0}

        ], "type": "Room", "id":
        > "24246936d26f1544c3ede62259018d850a70b88482044610beeece9eef2c1ecf:Room",
        > "isPattern": "false"}*
        >
        > (note that i tried with "type": "Double" too).
        > And here is a snippet from my cep rule: http://dpaste.com/3HA0RM6.
        >
        > Any idea?
        >
        > Thanks,
        > Federico Di Pierro
        >

        Since January 1st, old domains won't be supported and messages sent to any domain different to @lists.fiware.org will be lost.
        Please, send your messages using the new domain (Fiware-incense-coaching@lists.fiware.org) instead of the old one.

        Show
        fw.ext.user FW External User added a comment - Comment by f.dipierro@atooma.com : I noticed i was using "assertion" in "RoomEPA" instead of using "filterExpression" (as i'm doing with my other EPAs). This is "RoomEPA" new version: http://dpaste.com/0CNPAXC . It is still not working though. Federico Di Pierro 2016-04-12 13:31 GMT+02:00 Federico Di Pierro <f.dipierro@atooma.com>: > Hi, > > i'm having a strange problem with a Proton rule: it should send a > notification only when "internal temperature" and "external temperature" > delta is above X. > The issue is that the notification is always sent. > Here is an example of what is pushed to cb (cep is subscribed obviously): > *Pushing: {"attributes": [ {"type": "float", "name": "temperature", > "value": 19.336043141513539} , {"type": "float", "name": > "external_temperature", "value": 17.0} , {"type": "float", "name": > "temp_delta", "value": 5.0} ], "type": "Room", "id": > "24246936d26f1544c3ede62259018d850a70b88482044610beeece9eef2c1ecf:Room", > "isPattern": "false"}* > > (note that i tried with "type": "Double" too). > And here is a snippet from my cep rule: http://dpaste.com/3HA0RM6 . > > Any idea? > > Thanks, > Federico Di Pierro > Since January 1st, old domains won't be supported and messages sent to any domain different to @lists.fiware.org will be lost. Please, send your messages using the new domain (Fiware-incense-coaching@lists.fiware.org) instead of the old one.
        Hide
        fw.ext.user FW External User added a comment -

        Comment by f.dipierro@atooma.com :

        Again...fixed the issue, i'm sorry if i made you lose your time.
        I forgot to add the newly added attrib ("temp_delta" was added later) to
        the subscription, so CEP did not receive any "temp_delta" value, that
        defaulted to 0.

        Federico Di Pierro

        2016-04-12 14:03 GMT+02:00 Federico Di Pierro <f.dipierro@atooma.com>:

        > I noticed i was using "assertion" in "RoomEPA" instead of using
        > "filterExpression" (as i'm doing with my other EPAs).
        > This is "RoomEPA" new version: http://dpaste.com/0CNPAXC. It is still not
        > working though.
        >
        > Federico Di Pierro
        >
        > 2016-04-12 13:31 GMT+02:00 Federico Di Pierro <f.dipierro@atooma.com>:
        >
        >> Hi,
        >>
        >> i'm having a strange problem with a Proton rule: it should send a
        >> notification only when "internal temperature" and "external temperature"
        >> delta is above X.
        >> The issue is that the notification is always sent.
        >> Here is an example of what is pushed to cb (cep is subscribed obviously):
        >> *Pushing: {"attributes": [

        {"type": "float", "name": "temperature", >> "value": 19.336043141513539}

        ,

        {"type": "float", "name": >> "external_temperature", "value": 17.0}

        ,

        {"type": "float", "name": >> "temp_delta", "value": 5.0}

        ], "type": "Room", "id":
        >> "24246936d26f1544c3ede62259018d850a70b88482044610beeece9eef2c1ecf:Room",
        >> "isPattern": "false"}*
        >>
        >> (note that i tried with "type": "Double" too).
        >> And here is a snippet from my cep rule: http://dpaste.com/3HA0RM6.
        >>
        >> Any idea?
        >>
        >> Thanks,
        >> Federico Di Pierro
        >>
        >
        >

        Since January 1st, old domains won't be supported and messages sent to any domain different to @lists.fiware.org will be lost.
        Please, send your messages using the new domain (Fiware-incense-coaching@lists.fiware.org) instead of the old one.

        Show
        fw.ext.user FW External User added a comment - Comment by f.dipierro@atooma.com : Again...fixed the issue, i'm sorry if i made you lose your time. I forgot to add the newly added attrib ("temp_delta" was added later) to the subscription, so CEP did not receive any "temp_delta" value, that defaulted to 0. Federico Di Pierro 2016-04-12 14:03 GMT+02:00 Federico Di Pierro <f.dipierro@atooma.com>: > I noticed i was using "assertion" in "RoomEPA" instead of using > "filterExpression" (as i'm doing with my other EPAs). > This is "RoomEPA" new version: http://dpaste.com/0CNPAXC . It is still not > working though. > > Federico Di Pierro > > 2016-04-12 13:31 GMT+02:00 Federico Di Pierro <f.dipierro@atooma.com>: > >> Hi, >> >> i'm having a strange problem with a Proton rule: it should send a >> notification only when "internal temperature" and "external temperature" >> delta is above X. >> The issue is that the notification is always sent. >> Here is an example of what is pushed to cb (cep is subscribed obviously): >> *Pushing: {"attributes": [ {"type": "float", "name": "temperature", >> "value": 19.336043141513539} , {"type": "float", "name": >> "external_temperature", "value": 17.0} , {"type": "float", "name": >> "temp_delta", "value": 5.0} ], "type": "Room", "id": >> "24246936d26f1544c3ede62259018d850a70b88482044610beeece9eef2c1ecf:Room", >> "isPattern": "false"}* >> >> (note that i tried with "type": "Double" too). >> And here is a snippet from my cep rule: http://dpaste.com/3HA0RM6 . >> >> Any idea? >> >> Thanks, >> Federico Di Pierro >> > > Since January 1st, old domains won't be supported and messages sent to any domain different to @lists.fiware.org will be lost. Please, send your messages using the new domain (Fiware-incense-coaching@lists.fiware.org) instead of the old one.
        Hide
        pandriani Pasquale Andriani added a comment -

        You're welcome! Happy to know that you're successfully using CEP.

        Regards,
        P.

        Show
        pandriani Pasquale Andriani added a comment - You're welcome! Happy to know that you're successfully using CEP. Regards, P.

          People

          • Assignee:
            pandriani Pasquale Andriani
            Reporter:
            fw.ext.user FW External User
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: