{"action":"created","issue":{"url":"https://api.github.com/repos/xoseperez/espurna/issues/521","repository_url":"https://api.github.com/repos/xoseperez/espurna","labels_url":"https://api.github.com/repos/xoseperez/espurna/issues/521/labels{/name}","comments_url":"https://api.github.com/repos/xoseperez/espurna/issues/521/comments","events_url":"https://api.github.com/repos/xoseperez/espurna/issues/521/events","html_url":"https://github.com/xoseperez/espurna/issues/521","id":294209634,"number":521,"title":"Fast MQTT commands are ignored","user":{"login":"hyteoo","id":1378206,"avatar_url":"https://avatars1.githubusercontent.com/u/1378206?v=4","gravatar_id":"","url":"https://api.github.com/users/hyteoo","html_url":"https://github.com/hyteoo","followers_url":"https://api.github.com/users/hyteoo/followers","following_url":"https://api.github.com/users/hyteoo/following{/other_user}","gists_url":"https://api.github.com/users/hyteoo/gists{/gist_id}","starred_url":"https://api.github.com/users/hyteoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hyteoo/subscriptions","organizations_url":"https://api.github.com/users/hyteoo/orgs","repos_url":"https://api.github.com/users/hyteoo/repos","events_url":"https://api.github.com/users/hyteoo/events{/privacy}","received_events_url":"https://api.github.com/users/hyteoo/received_events","type":"User","site_admin":false},"labels":[{"id":815116982,"url":"https://api.github.com/repos/xoseperez/espurna/labels/mqtt","name":"mqtt","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-02-04T16:26:02Z","updated_at":"2018-02-08T15:39:34Z","closed_at":null,"author_association":"NONE","body":"I want to reopen this issue here as I see there is really an issue with MQTT\r\nAfter playing around with the RELAY_FLOOD_WINDOW and RELAY_FLOOD_CHANGES, the behavior is the same.\r\n\r\nMQTT commands sent less than 2000ms apart are ignored.\r\nThis was tested on several builds and devices.\r\n\r\nDouble checked if there's a mqtt /network issue however that is not the case.\r\n\r\nexample: running this\r\nmosquitto_pub -t testdevice/relay/0/set -m 2\r\ntimeout 1\r\nmosquitto_pub -t testdevice/relay/0/set -m 2\r\ntimeout 1\r\n(...repeat about 20 times)\r\n\r\nthe relay switches only once every 2-3 seconds.\r\n\r\nRunning this\r\n\r\nmosquitto_pub -t testdevice/relay/0/set -m 2\r\nmosquitto_pub -t testdevice/relay/0/set -m 2\r\nmosquitto_pub -t testdevice/relay/0/set -m 2\r\nmosquitto_pub -t testdevice/relay/0/set -m 2\r\n(.... repeat about 100 times)\r\n\r\nthe relay only switches once every 2 seconds.\r\n"},"comment":{"url":"https://api.github.com/repos/xoseperez/espurna/issues/comments/364150660","html_url":"https://github.com/xoseperez/espurna/issues/521#issuecomment-364150660","issue_url":"https://api.github.com/repos/xoseperez/espurna/issues/521","id":364150660,"user":{"login":"hyteoo","id":1378206,"avatar_url":"https://avatars1.githubusercontent.com/u/1378206?v=4","gravatar_id":"","url":"https://api.github.com/users/hyteoo","html_url":"https://github.com/hyteoo","followers_url":"https://api.github.com/users/hyteoo/followers","following_url":"https://api.github.com/users/hyteoo/following{/other_user}","gists_url":"https://api.github.com/users/hyteoo/gists{/gist_id}","starred_url":"https://api.github.com/users/hyteoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hyteoo/subscriptions","organizations_url":"https://api.github.com/users/hyteoo/orgs","repos_url":"https://api.github.com/users/hyteoo/repos","events_url":"https://api.github.com/users/hyteoo/events{/privacy}","received_events_url":"https://api.github.com/users/hyteoo/received_events","type":"User","site_admin":false},"created_at":"2018-02-08T15:39:34Z","updated_at":"2018-02-08T15:39:34Z","author_association":"NONE","body":"Most of the services are disabled, I only use MQTT in my network.\r\nHere's a backup from one of the S20 switches - flashed with the release .bin from github:\r\n\r\n`{\"app\":\"ESPURNA\",\"version\":\"1.12.3\",\"relayPulse0\":\"0\",\"cfg\":\"3\",\"board\":\"13\",\"ledGPIO0\":\"13\",\"ledLogic0\":\"1\",\"btnGPIO0\":\"0\",\"btnRelay0\":\"0\",\"relayGPIO0\":\"12\",\"relayType0\":\"0\",\"adminPass\":\"---\",\"haPrefix\":\"homeassistant\",\"relaySync\":\"0\",\"relayTime0\":\"0\",\"mqttGroupInv0\":\"0\",\"useColor\":\"0\",\"useRGB\":\"0\",\"useWhite\":\"0\",\"useGamma\":\"0\",\"useCSS\":\"0\",\"useTransitions\":\"0\",\"apiEnabled\":\"0\",\"apiRealTime\":\"0\",\"apiKey\":\"A62A55515E630474\",\"telnetSTA\":\"0\",\"nofussEnabled\":\"0\",\"ssid0\":\"---\",\"pass0\":\"---\",\"mask0\":\"255.255.255.0\",\"dns0\":\"8.8.8.8\",\"mqttPort\":\"1883\",\"mqttKeep\":\"30\",\"mqttUseSSL\":\"0\",\"mqttTopic\":\"{identifier}\",\"ntpDST\":\"1\",\"dczEnabled\":\"0\",\"dczSkip\":\"2\",\"dczTopicIn\":\"domoticz/in\",\"dczTopicOut\":\"domoticz/out\",\"dczRelayIdx0\":\"0\",\"idbEnabled\":\"0\",\"snsRead\":\"6\",\"tmpUnits\":\"0\",\"tmpCorrection\":\"0\",\"pwrResetCalibration\":\"0\",\"mqttEnabled\":\"1\",\"mqttServer\":\"192.168.0.60\",\"hostname\":\"SwitchSocket1\",\"ledMode0\":\"1\",\"relayBoot0\":\"2\",\"alexaEnabled\":\"0\",\"tspkEnabled\":\"0\",\"tspkRelay0\":\"0\",\"mqttQoS\":\"2\",\"mqttRetain\":\"1\",\"wifiScan\":\"0\",\"btnDelay\":\"200\",\"haEnabled\":\"0\",\"boardName\":\"ITEAD_S20\",\"ntpServer\":\"pool.ntp.org\",\"ntpOffset\":\"120\",\"pwrExpectedC\":\"\",\"pwrExpectedV\":\"\",\"pwrExpectedP\":\"\",\"mqttUseJson\":\"0\",\"now\":\"2018-02-01 22:04:43\"}\r\n`"}}
{"actor":{"display_login":"hyteoo"}}