{"action":"created","issue":{"url":"https://api.github.com/repos/eclipse/smarthome/issues/2863","repository_url":"https://api.github.com/repos/eclipse/smarthome","labels_url":"https://api.github.com/repos/eclipse/smarthome/issues/2863/labels{/name}","comments_url":"https://api.github.com/repos/eclipse/smarthome/issues/2863/comments","events_url":"https://api.github.com/repos/eclipse/smarthome/issues/2863/events","html_url":"https://github.com/eclipse/smarthome/issues/2863","id":201762222,"number":2863,"title":"Processing of things file hits problem, possibly with REGEX, and stops parsing .things file","user":{"login":"jackdewinter","id":25124582,"avatar_url":"https://avatars.githubusercontent.com/u/25124582?v=3","gravatar_id":"","url":"https://api.github.com/users/jackdewinter","html_url":"https://github.com/jackdewinter","followers_url":"https://api.github.com/users/jackdewinter/followers","following_url":"https://api.github.com/users/jackdewinter/following{/other_user}","gists_url":"https://api.github.com/users/jackdewinter/gists{/gist_id}","starred_url":"https://api.github.com/users/jackdewinter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackdewinter/subscriptions","organizations_url":"https://api.github.com/users/jackdewinter/orgs","repos_url":"https://api.github.com/users/jackdewinter/repos","events_url":"https://api.github.com/users/jackdewinter/events{/privacy}","received_events_url":"https://api.github.com/users/jackdewinter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-01-19T04:28:35Z","updated_at":"2017-01-19T04:31:35Z","closed_at":null,"body":"- Problem 1: the specified line for exec:command:office_desk_backlight_ping raises an error condition that causes the exec:command:office_desk_backlight_check line and others after it to be ignored\r\n- Problem 1a: something in the content of the .thing line for the ping causes an error condition to occur.  That issue is not logged in the log file at general log levels, hence it is difficult to determine any error and debug it.\r\n- Problem 1b: the REGEX for the ping does not seem to be working, regardless of its position.\r\n\r\nUpgraded to a new version of OpenHab on 14 Jan's nightly build, included eclipse.smarthome.\r\n\r\nAt the time, I added the following lines to my .things file:\r\n\r\n```\r\nexec:command:office_desk_backlight \"TP-PlugSwitch\"\t[command=\"/bin/tplink.exe %2$s\", interval=0, timeout=5, autorun=false]\r\nexec:command:office_desk_backlight_ping\t\"TP-PlugPing\" [command=\"/bin/cping.exe --ip 192.168.2.3\", interval=30, timeout=30\", transform=\"REGEX(.*sent(.*)replies.*)\", autorun=true]\r\nexec:command:office_desk_backlight_check \"TP-PlugStatus\" [command=\"/bin/tplink.exe check\", interval=15, timeout=5, transform=\"REGEX(.*stateX\\\":\\\"(.*)\\\".*)\", autorun=true]\r\n```\r\nwhen added in this order, the following lines are output as part of the logs:\r\n\r\n```\r\n20:45:14.520 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model 'jack.things'\r\n20:45:14.542 [DEBUG] [er.antlr.AbstractInternalAntlrParser] - Parsing took: 16 ms\r\n20:45:14.544 [DEBUG] [.linking.impl.AbstractCleaningLinker] - beforeModelLinked took: 0ms\r\n20:45:14.545 [DEBUG] [.linking.impl.AbstractCleaningLinker] - doLinkModel took:1ms\r\n20:45:14.546 [DEBUG] [.linking.impl.AbstractCleaningLinker] - afterModelLinked took: 1ms\r\n20:45:14.604 [WARN ] [.thing.internal.GenericThingProvider] - Thing exe does not have a bridge so it needs to be defined in full notation like :exe:check\r\n20:45:14.639 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'exec:command:office_desk_backlight_check' changed from ONLINE to UNINITIALIZED (HANDLER_MISSING_ERROR)\r\n20:45:14.661 [INFO ] [smarthome.event.ThingRemovedEvent ] - Thing 'exec:command:office_desk_backlight_check' has been removed.\r\n20:45:14.662 [WARN ] [.thing.internal.GenericThingProvider] - Thing exe does not have a bridge so it needs to be defined in full notation like :exe:check\r\n20:45:14.670 [WARN ] [.thing.internal.GenericThingProvider] - Thing exe does not have a bridge so it needs to be defined in full notation like :exe:check\r\n20:45:14.685 [INFO ] [smarthome.event.ThingUpdatedEvent ] - Thing 'exec:command:office_desk_backlight' has been updated.\r\n20:45:14.692 [INFO ] [smarthome.event.ThingUpdatedEvent ] - Thing 'exec:command:office_desk_backlight_ping' has been updated.\r\n20:45:14.691 [WARN ] [.thing.internal.GenericThingProvider] - Thing exe does not have a bridge so it needs to be defined in full notation like :exe:check\r\n\r\n```\r\n\r\nAt this point, the REGEX from the ping will not work, and the check will not be scheduled and not produce any output.\r\n\r\nHowever, if I put the TP-PlugPing line at the end, both lines will load, the check will be active and it's REGEX will work, and the ping will still be scheduled, but not apply the REGEX to the input.\r\n\r\n```\r\n20:55:13.002 [INFO ] [smarthome.event.ThingUpdatedEvent ] - Thing 'exec:command:office_desk_backlight' has been updated.\r\n20:55:13.010 [INFO ] [smarthome.event.ThingUpdatedEvent ] - Thing 'exec:command:office_desk_backlight_check' has been updated.\r\n20:55:13.012 [INFO ] [smarthome.event.ThingUpdatedEvent ] - Thing 'exec:command:office_desk_backlight_ping' has been updated.\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/eclipse/smarthome/issues/comments/273679680","html_url":"https://github.com/eclipse/smarthome/issues/2863#issuecomment-273679680","issue_url":"https://api.github.com/repos/eclipse/smarthome/issues/2863","id":273679680,"user":{"login":"jackdewinter","id":25124582,"avatar_url":"https://avatars.githubusercontent.com/u/25124582?v=3","gravatar_id":"","url":"https://api.github.com/users/jackdewinter","html_url":"https://github.com/jackdewinter","followers_url":"https://api.github.com/users/jackdewinter/followers","following_url":"https://api.github.com/users/jackdewinter/following{/other_user}","gists_url":"https://api.github.com/users/jackdewinter/gists{/gist_id}","starred_url":"https://api.github.com/users/jackdewinter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackdewinter/subscriptions","organizations_url":"https://api.github.com/users/jackdewinter/orgs","repos_url":"https://api.github.com/users/jackdewinter/repos","events_url":"https://api.github.com/users/jackdewinter/events{/privacy}","received_events_url":"https://api.github.com/users/jackdewinter/received_events","type":"User","site_admin":false},"created_at":"2017-01-19T04:31:35Z","updated_at":"2017-01-19T04:31:35Z","body":"note: the rule seems to stop because of a \" after the timeout value.  But I would expect a warning about the one line, and not stopping the entire file from loading."}}
{"actor":{"display_login":"jackdewinter"}}