{"action":"created","issue":{"url":"https://api.github.com/repos/arendst/Sonoff-Tasmota/issues/3942","repository_url":"https://api.github.com/repos/arendst/Sonoff-Tasmota","labels_url":"https://api.github.com/repos/arendst/Sonoff-Tasmota/issues/3942/labels{/name}","comments_url":"https://api.github.com/repos/arendst/Sonoff-Tasmota/issues/3942/comments","events_url":"https://api.github.com/repos/arendst/Sonoff-Tasmota/issues/3942/events","html_url":"https://github.com/arendst/Sonoff-Tasmota/issues/3942","id":365226844,"node_id":"MDU6SXNzdWUzNjUyMjY4NDQ=","number":3942,"title":"Garage Door opener with sensors, publish Rule not working.","user":{"login":"svh1985","id":5213210,"node_id":"MDQ6VXNlcjUyMTMyMTA=","avatar_url":"https://avatars0.githubusercontent.com/u/5213210?v=4","gravatar_id":"","url":"https://api.github.com/users/svh1985","html_url":"https://github.com/svh1985","followers_url":"https://api.github.com/users/svh1985/followers","following_url":"https://api.github.com/users/svh1985/following{/other_user}","gists_url":"https://api.github.com/users/svh1985/gists{/gist_id}","starred_url":"https://api.github.com/users/svh1985/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svh1985/subscriptions","organizations_url":"https://api.github.com/users/svh1985/orgs","repos_url":"https://api.github.com/users/svh1985/repos","events_url":"https://api.github.com/users/svh1985/events{/privacy}","received_events_url":"https://api.github.com/users/svh1985/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-30T13:58:40Z","updated_at":"2018-09-30T14:06:05Z","closed_at":null,"author_association":"NONE","body":"**IMPORTANT NOTICE**\r\nIf you do not complete the template below it is likely that your issue will not be addressed. When providing information about your issue please be as extensive as possible so that it can be solved by as little as possible responses.\r\n\r\nMake sure these boxes are checked [x] before submitting your issue - Thank you!\r\n\r\n- [x] Searched the problem in issues (https://github.com/arendst/Sonoff-Tasmota/issues)\r\n- [x] Searched the problem in the wiki (https://github.com/arendst/Sonoff-Tasmota/wiki/Troubleshooting)\r\n- [x] Searched the problem in the forum (https://groups.google.com/d/forum/sonoffusers)\r\n- [x] Searched the problem in the chat (https://discord.gg/Ks2Kzd4)\r\n- [X] Development/Compiler/Upload tools used : Visual Studio\r\n- [x] Hardware used : WeMos D1 Mini\r\n- [X] Provide the output of command ``status 0`` :\r\n```\r\n15:45:57 MQT: stat/GarageDoor/STATUS = {\"Status\":{\"Module\":18,\"FriendlyName\":[\"Garage Door\",\"WeMos D1 Mini2\",\"WeMos D1 Mini3\"],\"Topic\":\"GarageDoor\",\"ButtonTopic\":\"0\",\"Power\":2,\"PowerOnState\":3,\"LedState\":1,\"SaveData\":1,\"SaveState\":1,\"ButtonRetain\":0,\"PowerRetain\":0}}\r\n15:45:57 MQT: stat/GarageDoor/STATUS1 = {\"StatusPRM\":{\"Baudrate\":115200,\"GroupTopic\":\"sonoffs\",\"OtaUrl\":\"http://ota.bla.com/tasmota/svh/wemosd1mini.bin\",\"RestartReason\":\"Software/System restart\",\"Uptime\":\"0T01:00:16\",\"StartupUTC\":\"2018-09-30T12:45:41\",\"Sleep\":0,\"BootCount\":9,\"SaveCount\":96,\"SaveAddress\":\"3F4000\"}}\r\n15:45:57 MQT: stat/GarageDoor/STATUS2 = {\"StatusFWR\":{\"Version\":\"6.1.1\",\"BuildDateTime\":\"2018-09-22T20:43:17\",\"Boot\":31,\"Core\":\"2_3_0\",\"SDK\":\"1.5.3(aec24ac9)\"}}\r\n15:45:57 MQT: stat/GarageDoor/STATUS3 = {\"StatusLOG\":{\"SerialLog\":2,\"WebLog\":2,\"SysLog\":0,\"LogHost\":\"\",\"LogPort\":514,\"SSId\":[\"WiFi\",\"\"],\"TelePeriod\":300,\"SetOption\":[\"00008009\",\"55818000\"]}}\r\n15:45:57 MQT: stat/GarageDoor/STATUS4 = {\"StatusMEM\":{\"ProgramSize\":489,\"Free\":2580,\"Heap\":20,\"ProgramFlashSize\":4096,\"FlashSize\":4096,\"FlashMode\":3,\"Features\":[\"00000809\",\"0F082790\",\"00000001\",\"21021796\",\"00000000\"]}}\r\n15:45:57 MQT: stat/GarageDoor/STATUS5 = {\"StatusNET\":{\"Hostname\":\"GarageDoor-5145\",\"IPAddress\":\"172.16.0.21\",\"Gateway\":\"172.16.0.1\",\"Subnetmask\":\"255.255.255.0\",\"DNSServer\":\"172.16.0.2\",\"Mac\":\"A0:20:A6:2F:74:19\",\"Webserver\":2,\"WifiConfig\":5}}\r\n15:45:57 MQT: stat/GarageDoor/STATUS6 = {\"StatusMQT\":{\"MqttHost\":\"172.16.0.5\",\"MqttPort\":1883,\"MqttClientMask\":\"DVES_%06X\",\"MqttClient\":\"DVES_2F7419\",\"MqttUser\":\"admin\",\"MqttType\":1,\"MAX_PACKET_SIZE\":1000,\"KEEPALIVE\":15}}\r\n15:45:57 MQT: stat/GarageDoor/STATUS7 = {\"StatusTIM\":{\"UTC\":\"Sun Sep 30 13:45:57 2018\",\"Local\":\"Sun Sep 30 15:45:57 2018\",\"StartDST\":\"Sun Mar 25 02:00:00 2018\",\"EndDST\":\"Sun Oct 28 03:00:00 2018\",\"Timezone\":99,\"Sunrise\":\"07:39\",\"Sunset\":\"19:20\"}}\r\n15:45:57 MQT: stat/GarageDoor/STATUS10 = {\"StatusSNS\":{\"Time\":\"2018-09-30T15:45:57\",\"Switch2\":\"OFF\",\"Switch3\":\"ON\"}}\r\n15:45:57 MQT: stat/GarageDoor/STATUS11 = {\"StatusSTS\":{\"Time\":\"2018-09-30T15:45:57\",\"Uptime\":\"0T01:00:16\",\"Vcc\":2.788,\"POWER1\":\"OFF\",\"POWER2\":\"ON\",\"POWER3\":\"OFF\",\"Wifi\":{\"AP\":1,\"SSId\":\"WiFi\",\"RSSI\":100,\"APMac\":\"00:1D:AA:69:D5:88\"}}}\r\n```\r\n\r\nHello,\r\n\r\nI'm building a Garage Door opener with two reed sensors to check the garage door's state.\r\n\r\nThe sensors are connected to switches that track the door's status:\r\nSwitch1 ON = door fully CLOSED\r\nSwitch2 ON = door fully OPENED\r\n\r\nI would like the senor's to publish the OPENED & CLOSED state to the same topic so I created a rule to have Tasmota publish the state when a switch is triggered:\r\n_rule2 on switch2#state=1 do publish stat/GarageDoor/DOOR CLOSED endon on switch3#state=1 do publish stat/GarageDoor/DOOR OPENED endon_\r\n\r\nUnfortunately the rule is not triggered.\r\n\r\nMy module's configuration:\r\n![ger_s_macbook_pro](https://user-images.githubusercontent.com/5213210/46258353-7f6b2900-c4c9-11e8-8b14-93c074939021.jpg)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/arendst/Sonoff-Tasmota/issues/comments/425723237","html_url":"https://github.com/arendst/Sonoff-Tasmota/issues/3942#issuecomment-425723237","issue_url":"https://api.github.com/repos/arendst/Sonoff-Tasmota/issues/3942","id":425723237,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNTcyMzIzNw==","user":{"login":"ascillato","id":35405447,"node_id":"MDQ6VXNlcjM1NDA1NDQ3","avatar_url":"https://avatars1.githubusercontent.com/u/35405447?v=4","gravatar_id":"","url":"https://api.github.com/users/ascillato","html_url":"https://github.com/ascillato","followers_url":"https://api.github.com/users/ascillato/followers","following_url":"https://api.github.com/users/ascillato/following{/other_user}","gists_url":"https://api.github.com/users/ascillato/gists{/gist_id}","starred_url":"https://api.github.com/users/ascillato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ascillato/subscriptions","organizations_url":"https://api.github.com/users/ascillato/orgs","repos_url":"https://api.github.com/users/ascillato/repos","events_url":"https://api.github.com/users/ascillato/events{/privacy}","received_events_url":"https://api.github.com/users/ascillato/received_events","type":"User","site_admin":false},"created_at":"2018-09-30T14:06:05Z","updated_at":"2018-09-30T14:06:05Z","author_association":"CONTRIBUTOR","body":"Do you have rule2 1 in order to enable rules? Do you have switchtopic2 and switchtopic3 both to 0? Which switchmode do you choose? "}}
{"actor":{"display_login":"ascillato"}}