This page last changed on Mar 14, 2015 by jean-philippe.

Hello,

I've followed many tutorials to find out a solution but I'm stuck.

I have an enocean USB300 which seem to work fine.
And I'm trying to use a Rocker switch (4 buttons) that I'd like to use to trigger event (launch shell..etc) when I push On or Off.

I've added a Device with 2 commands :

name :SWITCH_ALARM_ROCKER_A
id : 0x<id>
cmd : STATUS_ROCKER_A
EEP : F6-02-01

name :SWITCH_ALARM_ROCKER_B
id : 0x<id>
cmd : STATUS_ROCKER_B
EEP : F6-02-01

And I've created a sensor switch for test on ROCKER_A

I've added a label in gui with ON and OFF as label for the same sensor.

When I push the button, I see those logs :

TRACE 2015-03-14 16:32:39,505 (EnOcean): Received serial data from [COM port: /dev/ttyUSB0, Protocol: ESP3, Communication Layer: RXTX] : 0x55 0x00 0x07 0x07
TRACE 2015-03-14 16:32:39,505 (EnOcean): Received serial data from [COM port: /dev/ttyUSB0, Protocol: ESP3, Communication Layer: RXTX] : 0x01
TRACE 2015-03-14 16:32:39,506 (EnOcean): Received serial data from [COM port: /dev/ttyUSB0, Protocol: ESP3, Communication Layer: RXTX] : 0x7A 0xF6 0x10 0x00 0x29
TRACE 2015-03-14 16:32:39,507 (EnOcean): Received serial data from [COM port: /dev/ttyUSB0, Protocol: ESP3, Communication Layer: RXTX] : 0xCD 0xD5 0x30 0x01 0xFF 0xFF
TRACE 2015-03-14 16:32:39,507 (EnOcean): Received serial data from [COM port: /dev/ttyUSB0, Protocol: ESP3, Communication Layer: RXTX] : 0xFF
TRACE 2015-03-14 16:32:39,508 (EnOcean): Received serial data from [COM port: /dev/ttyUSB0, Protocol: ESP3, Communication Layer: RXTX] : 0xFF 0x58 0x00 0xAA
DEBUG 2015-03-14 16:32:39,508 (EnOcean): Received radio telegram : [RADIO: RORG=RPS, sender ID=0x0029CDD5, payload=0x10, status=0x30]
ERROR 2015-03-14 16:32:39,509 (EnOcean): Thread 'ESP processor listener executor' terminated with exception : null
java.lang.NullPointerException
at org.openremote.controller.statuscache.rules.RuleEngine.push(RuleEngine.java:145)
at org.openremote.controller.statuscache.EventProcessorChain.push(EventProcessorChain.java:188)
at org.openremote.controller.statuscache.StatusCache.update(StatusCache.java:260)
at org.openremote.controller.model.sensor.Sensor.update(Sensor.java:342)
at org.openremote.controller.protocol.enocean.profile.EepF60201.updateSensor(EepF60201.java:474)
at org.openremote.controller.protocol.enocean.EnOceanCommand.update(EnOceanCommand.java:201)
at org.openremote.controller.protocol.enocean.TransceiveCommand.radioTelegramReceived(TransceiveCommand.java:128)
at org.openremote.controller.protocol.enocean.EnOceanGateway.radioTelegramReceived(EnOceanGateway.java:160)
at org.openremote.controller.protocol.enocean.Esp3Connection.radioTelegramReceived(Esp3Connection.java:131)
at org.openremote.controller.protocol.enocean.packet.Esp3Processor$1.run(Esp3Processor.java:156)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)

And the same log when release with a payload=0x00

But I'm not sure it works because, on the remote interface on my smartphone, the label allways shows "N/A".

Thanks for your help

Same problem with D5-00-01 door contact ....

I see traffic in logs but the UI doesn't change...
And I keep seeing :

WARN 2015-03-15 16:33:35,980 (EnOcean): Unknown EnOcean property '<property name = "name" value = "status"/>'.
INFO 2015-03-15 16:33:35,980 (EnOcean): Created EnOcean Command (ID = '0x0181DF24', EEP (Type = 'D5-00-01', Contact = 'N/A')).
WARN 2015-03-15 16:33:35,982 (EnOcean): Unknown EnOcean property '<property name = "name" value = "SWITCH_ROCKER"/>'.

any help would be appreciated :')

My products are from "nodon" vendor, does-it means the protocols/commands are not supported by OpenRemote ??

JP

Posted by jean-philippe at Mar 15, 2015 15:50

I have found the solution I think.

I was running witht java 1.7 wich was highe,r I've downgraded to 16. and it's seems ok.

I had the error in the log but I was thinking it was only a problem for Rules.

JP

Posted by jean-philippe at Mar 15, 2015 16:58
Document generated by Confluence on Jun 05, 2016 09:33