{"action":"created","issue":{"url":"https://api.github.com/repos/openhab/openhab2/issues/412","labels_url":"https://api.github.com/repos/openhab/openhab2/issues/412/labels{/name}","comments_url":"https://api.github.com/repos/openhab/openhab2/issues/412/comments","events_url":"https://api.github.com/repos/openhab/openhab2/issues/412/events","html_url":"https://github.com/openhab/openhab2/issues/412","id":110674510,"number":412,"title":"Don't manage to have rules working with enOcean","user":{"login":"jrcourtois","id":5859493,"avatar_url":"https://avatars.githubusercontent.com/u/5859493?v=3","gravatar_id":"","url":"https://api.github.com/users/jrcourtois","html_url":"https://github.com/jrcourtois","followers_url":"https://api.github.com/users/jrcourtois/followers","following_url":"https://api.github.com/users/jrcourtois/following{/other_user}","gists_url":"https://api.github.com/users/jrcourtois/gists{/gist_id}","starred_url":"https://api.github.com/users/jrcourtois/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrcourtois/subscriptions","organizations_url":"https://api.github.com/users/jrcourtois/orgs","repos_url":"https://api.github.com/users/jrcourtois/repos","events_url":"https://api.github.com/users/jrcourtois/events{/privacy}","received_events_url":"https://api.github.com/users/jrcourtois/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-09T14:51:15Z","updated_at":"2015-10-09T14:58:24Z","closed_at":null,"body":"I manage to do this in openhab 1, but when I try to do the same (switching lights on when pressing an enocean button), in openHab 2, it just does not work.\r\n\r\nWhen I stop my openhab I got infinite loop of this message, so I don't know if it is linked or not, but does any one already faced this issue ?\r\n\r\n```\r\n2015-10-09 16:42:39 [INFO ] [opencean.core.eep.RockerSwitch:58   ] - Current State: buttonAI=null, buttonAO=Released, buttonBI=null, buttonBO=null\r\n2015-10-09 16:42:39 [INFO ] [org.opencean.core.ESP3Host    :15   ] - Received RadioPacket with value Released\r\n2015-10-09 16:42:39 [DEBUG] [.e.internal.bus.EnoceanBinding:276  ] - Received new value Released for device at EnoceanParameter: {id=\"00:25:87:86\", channel=\"A\", parameter=\"O\"}\r\n2015-10-09 16:42:39 [DEBUG] [b.e.i.profiles.StandardProfile:76   ] - Received new value OFF for items [B2Up (Type=SwitchItem, State=Uninitialized)]\r\n2015-10-09 16:42:39 [ERROR] [org.opencean.core.ESP3Host    :78   ] - Errorjava.lang.NullPointerException: null\r\n\tat org.openhab.core.events.EventPublisherDelegate.postUpdate(EventPublisherDelegate.java:77)\r\n\tat org.openhab.binding.enocean.internal.profiles.StandardProfile.valueChanged(StandardProfile.java:77)\r\n\tat org.openhab.binding.enocean.internal.bus.EnoceanBinding.valueChanged(EnoceanBinding.java:289)\r\n\tat org.opencean.core.ParameterChangeNotifier.receivePacket(ParameterChangeNotifier.java:47)\r\n\tat org.opencean.core.ESP3Host.notifyReceivers(ESP3Host.java:52)\r\n\tat org.opencean.core.ESP3Host.run(ESP3Host.java:73)\r\n```\r\nmy conf.items\r\n```\r\nSwitch B1Down \"B1 du bas\" (Enocean) {enocean=\"{id=00:25:87:86, eep=F6:02:01, channel=B, parameter=I}\"} \r\nSwitch B1Up \"B1 du haut\" (Enocean) {enocean=\"{id=00:25:87:86, eep=F6:02:01, channel=B, parameter=O}\"} \r\nSwitch B2Down \"B2 du bas\" (Enocean) {enocean=\"{id=00:25:87:86, eep=F6:02:01, channel=A, parameter=I}\"}\r\nSwitch B2Up \"B2 du haut\" (Enocean) {enocean=\"{id=00:25:87:86, eep=F6:02:01, channel=A, parameter=O}\"}\r\n```\r\nmy rules the first one works ok\r\n````\r\nrule \"Initialize light states\"\r\n\twhen\r\n\t\tSystem started\r\n\tthen\r\n\t\tsendCommand(Switching, ON)\r\nend\r\n\r\nrule \"Light off\"\r\n\twhen\r\n\t\tItem B1Down changed to OFF\r\n\tthen\r\n\t\tsendCommand(Switching, OFF)\r\nend\r\nrule \"Lights off 2\"\r\n\twhen\r\n\t\tItem B2Up received command\r\n\tthen\r\n\t\tsendCommand(Switching, OFF)\r\nend\r\nrule \"Lights on\"\r\n\twhen\r\n\t\tItem B1Up received update\r\n\tthen\r\n\t\tsendCommand(Switching, ON)\r\nend\r\nrule \"Lights on 2\"\r\n\twhen\r\n\t\tItem B2Down received update\r\n\tthen\r\n\t\tsendCommand(Switching, ON)\r\nend\r\n````\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/openhab/openhab2/issues/comments/146895921","html_url":"https://github.com/openhab/openhab2/issues/412#issuecomment-146895921","issue_url":"https://api.github.com/repos/openhab/openhab2/issues/412","id":146895921,"user":{"login":"kaikreuzer","id":3244965,"avatar_url":"https://avatars.githubusercontent.com/u/3244965?v=3","gravatar_id":"","url":"https://api.github.com/users/kaikreuzer","html_url":"https://github.com/kaikreuzer","followers_url":"https://api.github.com/users/kaikreuzer/followers","following_url":"https://api.github.com/users/kaikreuzer/following{/other_user}","gists_url":"https://api.github.com/users/kaikreuzer/gists{/gist_id}","starred_url":"https://api.github.com/users/kaikreuzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaikreuzer/subscriptions","organizations_url":"https://api.github.com/users/kaikreuzer/orgs","repos_url":"https://api.github.com/users/kaikreuzer/repos","events_url":"https://api.github.com/users/kaikreuzer/events{/privacy}","received_events_url":"https://api.github.com/users/kaikreuzer/received_events","type":"User","site_admin":false},"created_at":"2015-10-09T14:58:24Z","updated_at":"2015-10-09T14:58:24Z","body":"Which version of openHAB 2 are you using? It looks like an old one.\r\nCould you try with the current snapshot at https://openhab.ci.cloudbees.com/job/openHAB2/?"}}