{"action":"created","issue":{"url":"https://api.github.com/repos/cdjackson/HABmin/issues/227","labels_url":"https://api.github.com/repos/cdjackson/HABmin/issues/227/labels{/name}","comments_url":"https://api.github.com/repos/cdjackson/HABmin/issues/227/comments","events_url":"https://api.github.com/repos/cdjackson/HABmin/issues/227/events","html_url":"https://github.com/cdjackson/HABmin/issues/227","id":60444024,"number":227,"title":"rules habmin and habmin2","user":{"login":"alexeinz","id":6789193,"avatar_url":"https://avatars.githubusercontent.com/u/6789193?v=3","gravatar_id":"","url":"https://api.github.com/users/alexeinz","html_url":"https://github.com/alexeinz","followers_url":"https://api.github.com/users/alexeinz/followers","following_url":"https://api.github.com/users/alexeinz/following{/other_user}","gists_url":"https://api.github.com/users/alexeinz/gists{/gist_id}","starred_url":"https://api.github.com/users/alexeinz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexeinz/subscriptions","organizations_url":"https://api.github.com/users/alexeinz/orgs","repos_url":"https://api.github.com/users/alexeinz/repos","events_url":"https://api.github.com/users/alexeinz/events{/privacy}","received_events_url":"https://api.github.com/users/alexeinz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-03-10T03:02:58Z","updated_at":"2015-03-13T02:30:14Z","closed_at":null,"body":"I have been trying to use the rule designer but any rule I create does not have a trigger.\r\nI just dont see how can i add a trigger in a rule like this for example : \r\n![rule1](https://cloud.githubusercontent.com/assets/6789193/6568573/4f4e589e-c71d-11e4-9603-d9f4d31d02e7.jpg)\r\n\r\n------------this is what gets created.....\r\n// This rule file is autogenerated by HABmin.\r\n// Any changes made manually to this file will be overwritten next time HABmin rules are saved.\r\n\r\n// Imports\r\nimport org.openhab.core.library.types.*\r\nimport org.openhab.core.persistence.*\r\nimport org.openhab.model.script.actions.*\r\n\r\n// Global Variables\r\n\r\n// Constants used to generate this rule\r\n// dist_close == 40\r\n\r\nrule \"distance light\"\r\nwhen\r\nthen\r\n  if ((distance_sensor > 40)) {\r\n    sendCommand(lights_on, ON)\r\n  }\r\nend\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/cdjackson/HABmin/issues/comments/78755924","html_url":"https://github.com/cdjackson/HABmin/issues/227#issuecomment-78755924","issue_url":"https://api.github.com/repos/cdjackson/HABmin/issues/227","id":78755924,"user":{"login":"alexeinz","id":6789193,"avatar_url":"https://avatars.githubusercontent.com/u/6789193?v=3","gravatar_id":"","url":"https://api.github.com/users/alexeinz","html_url":"https://github.com/alexeinz","followers_url":"https://api.github.com/users/alexeinz/followers","following_url":"https://api.github.com/users/alexeinz/following{/other_user}","gists_url":"https://api.github.com/users/alexeinz/gists{/gist_id}","starred_url":"https://api.github.com/users/alexeinz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexeinz/subscriptions","organizations_url":"https://api.github.com/users/alexeinz/orgs","repos_url":"https://api.github.com/users/alexeinz/repos","events_url":"https://api.github.com/users/alexeinz/events{/privacy}","received_events_url":"https://api.github.com/users/alexeinz/received_events","type":"User","site_admin":false},"created_at":"2015-03-13T02:30:14Z","updated_at":"2015-03-13T02:30:14Z","body":"Strangely enough, when i just create new rule file myself and add the rule\nas text, it works totally fine.\n\n\n\n\nOn Fri, Mar 13, 2015 at 8:38 AM, Alex Einz <dj@alexeinz.info> wrote:\n\n> I have tried again, this time making sure the names are correct, it did\n> create the trigger but now I have a different issue which I have seen once\n> before too\n> see attached rule image and rule text below\n> this causes java error :\n>\n> 2015-03-13 08:34:24.825 [WARN ] [.o.u.w.i.render.SwitchRenderer] - Cannot\n> determine item type of 'null'\n> org.openhab.core.items.ItemNotFoundException: Item 'null' could not be\n> found in the item registry\n> at\n> org.openhab.core.internal.items.ItemRegistryImpl.getItem(ItemRegistryImpl.java:80)\n> ~[na:na]\n>\n> -----\n>\n>\n>\n> // This rule file is autogenerated by HABmin.\n> // Any changes made manually to this file will be overwritten next time\n> HABmin rules are saved.\n>\n> // Imports\n> import org.openhab.core.library.types.*\n> import org.openhab.core.persistence.*\n> import org.openhab.model.script.actions.*\n>\n> // Global Variables\n> var Timer _timer_001_A = null\n>\n> // Constants used to generate this rule\n> // highdistance == 120\n> // lowdistance == 30\n>\n> rule \"kitchen distance\"\n> when\n>     Item MySENS_Kitchen_dist changed\n>     or\n>     Item miKitchenstove_sw changed\n> then\n>   if (((MySENS_Kitchen_dist.state > 30) && (MySENS_Kitchen_dist.state <\n> 120))) {\n>     sendCommand(miKitchenstove_sw, ON)\n>   }\n>\n>   if (((miKitchenstove_sw.state == ON) && (MySENS_Kitchen_dist.state >\n> 120))) {\n>     if (_timer_001_A == null) {\n>       _timer_001_A = createTimer(now.plusMinutes(5)) [|\n>         _timer_001_A.cancel()\n>         _timer_001_A = null\n>         sendCommand(miKitchenstove_sw, OFF)\n>       ]\n>     }\n>   }\n>   else if(_timer_001_A != null) {\n>     _timer_001_A.cancel()\n>     _timer_001_A = null\n>   }\n> end\n>\n>\n>\n> ------\n> Regards\n> Alex Einz\n>\n> Listen & Download new music here http://goo.gl/Z8PLo\n> <https://t.yesware.com/tl/594c1c6d92e96a1aad8bf1506098e372c8792b60/0ee4614835b3163ebd7d292f46ac34c6/268796d24dca760c79516979435c60f8?ytl=http%3A%2F%2Fgoo.gl%2FZ8PLo>\n>\n> Tel - +81(0) 80-6749-1800\n> dj@alexeinz.info\n>\n> Artist info:\n> http://www.alexeinz.info\n> <https://t.yesware.com/tl/594c1c6d92e96a1aad8bf1506098e372c8792b60/0ee4614835b3163ebd7d292f46ac34c6/51f2cff3e43308690ab95a012b9cd2d9?ytl=http%3A%2F%2Fwww.alexeinz.info>\n> http://sbstrm.com/alexeinz\n> <https://t.yesware.com/tl/594c1c6d92e96a1aad8bf1506098e372c8792b60/0ee4614835b3163ebd7d292f46ac34c6/0937ea1247899605975bfb630a5c9e1b?ytl=http%3A%2F%2Fsbstrm.com%2Falexeinz>\n>\n> Phonika\n> http://phonikatokyo.com\n> <https://t.yesware.com/tl/594c1c6d92e96a1aad8bf1506098e372c8792b60/0ee4614835b3163ebd7d292f46ac34c6/474f1920a19e267faf0ae7c91bfffad9?ytl=http%3A%2F%2Fphonikatokyo.com>\n> --------\n>\n> On Thu, Mar 12, 2015 at 9:44 PM, Chris Jackson <notifications@github.com>\n> wrote:\n>\n>> Ok - no probs. Just let me know if you want me to look at anything... I\n>> need to add something that checks in the client if the item names are\n>> correct - or more specifically, allows you to select item names rather than\n>> typing them in...\n>>\n>> —\n>> Reply to this email directly or view it on GitHub\n>> <https://t.yesware.com/tl/594c1c6d92e96a1aad8bf1506098e372c8792b60/0ee4614835b3163ebd7d292f46ac34c6/65cc07242ece81fcfd769490d338257e?ytl=https%3A%2F%2Fgithub.com%2Fcdjackson%2FHABmin%2Fissues%2F227%23issuecomment-78472470>\n>> .\n>>\n>\n>\n"}}