{"action":"opened","issue":{"url":"https://api.github.com/repos/letscontrolit/ESPEasy/issues/1662","repository_url":"https://api.github.com/repos/letscontrolit/ESPEasy","labels_url":"https://api.github.com/repos/letscontrolit/ESPEasy/issues/1662/labels{/name}","comments_url":"https://api.github.com/repos/letscontrolit/ESPEasy/issues/1662/comments","events_url":"https://api.github.com/repos/letscontrolit/ESPEasy/issues/1662/events","html_url":"https://github.com/letscontrolit/ESPEasy/issues/1662","id":351839750,"node_id":"MDU6SXNzdWUzNTE4Mzk3NTA=","number":1662,"title":"Starting from mega-20180722 action is triggered in rules with no reason at startup","user":{"login":"giig1967g","id":21318099,"node_id":"MDQ6VXNlcjIxMzE4MDk5","avatar_url":"https://avatars3.githubusercontent.com/u/21318099?v=4","gravatar_id":"","url":"https://api.github.com/users/giig1967g","html_url":"https://github.com/giig1967g","followers_url":"https://api.github.com/users/giig1967g/followers","following_url":"https://api.github.com/users/giig1967g/following{/other_user}","gists_url":"https://api.github.com/users/giig1967g/gists{/gist_id}","starred_url":"https://api.github.com/users/giig1967g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giig1967g/subscriptions","organizations_url":"https://api.github.com/users/giig1967g/orgs","repos_url":"https://api.github.com/users/giig1967g/repos","events_url":"https://api.github.com/users/giig1967g/events{/privacy}","received_events_url":"https://api.github.com/users/giig1967g/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-18T18:02:28Z","updated_at":"2018-08-18T18:02:28Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"### Summarize of the problem/feature request\r\nStarting from mega-20180722 if I put in the rules the following code, it gets triggered at startup:\r\n\r\n```\r\non p1#Switch=0 do\r\n  event,R1toggle\r\nendon\r\n\r\non R1toggle do\r\n  if [Relay1#r1]=0\r\n    PCFGPIO,65,1 \r\n    taskvalueset 1,1,1\r\n  else\r\n    PCFGPIO,65,0\r\n    taskvalueset 1,1,0\r\n  endif \r\n  timerSet,4,1\r\nendon\r\n\r\n```\r\n\r\nthis piece of code is executed just after startup, and as a result it switches on the relay.\r\n\r\n### Expected behavior\r\nThe above piece of code should not be executed.\r\n\r\nAttached my config:\r\n![schermata 2018-08-18 alle 17 38 06](https://user-images.githubusercontent.com/21318099/44302021-93940600-a321-11e8-915a-b6639ae45aaa.png)\r\n"}}
{"actor":{"display_login":"giig1967g"}}