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.
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,
{"type": "float", "name": "temperature", > "value": 19.336043141513539}>
> 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": > "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.