{"action":"created","issue":{"url":"https://api.github.com/repos/arendst/Sonoff-Tasmota/issues/43","repository_url":"https://api.github.com/repos/arendst/Sonoff-Tasmota","labels_url":"https://api.github.com/repos/arendst/Sonoff-Tasmota/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/arendst/Sonoff-Tasmota/issues/43/comments","events_url":"https://api.github.com/repos/arendst/Sonoff-Tasmota/issues/43/events","html_url":"https://github.com/arendst/Sonoff-Tasmota/issues/43","id":206303482,"number":43,"title":"Help needed adding MQTT_GRPTOPIC to all topics","user":{"login":"SrKlein86","id":15035684,"avatar_url":"https://avatars.githubusercontent.com/u/15035684?v=3","gravatar_id":"","url":"https://api.github.com/users/SrKlein86","html_url":"https://github.com/SrKlein86","followers_url":"https://api.github.com/users/SrKlein86/followers","following_url":"https://api.github.com/users/SrKlein86/following{/other_user}","gists_url":"https://api.github.com/users/SrKlein86/gists{/gist_id}","starred_url":"https://api.github.com/users/SrKlein86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SrKlein86/subscriptions","organizations_url":"https://api.github.com/users/SrKlein86/orgs","repos_url":"https://api.github.com/users/SrKlein86/repos","events_url":"https://api.github.com/users/SrKlein86/events{/privacy}","received_events_url":"https://api.github.com/users/SrKlein86/received_events","type":"User","site_admin":false},"labels":[{"id":527619885,"url":"https://api.github.com/repos/arendst/Sonoff-Tasmota/labels/help%20wanted","name":"help wanted","color":"128A0C","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2017-02-08T19:44:50Z","updated_at":"2017-02-27T11:43:38Z","closed_at":null,"body":"Hello, I'd like to know if there is any way to achieve (in a relatively easy way) an extra level on my MQTT topics:\r\nI have to deploy sensors on a 3 floor building, some of them are sonoffs, some other are not.\r\nTo make everything easier for me, I decided to make everything follow the cmnd, stat, and tele scheme, but now I realize i should have something that differenciates my sonoffs from other sensors, but still be able to tell one sonoff from the other.\r\nWhat I want to achieve is a topic structure like this:\r\nMQTT_GRPTOPIC/SUB_PREFIX/MQTT_TOPIC\r\nMQTT_GRPTOPIC/PUB_PREFIX/MQTT_TOPIC\r\nMQTT_GRPTOPIC/PUB_PREFIX2/MQTT_TOPIC/UPTIME, POWER/LIGHT and TIME\r\n\r\nSo I can subscribe to (for example): 3FSonoffs/tele/+/uptime (where MQTT_TOPIC is unique for each sonoff on the third floor)\r\n\r\nI have tried \"patching\" this on user config, by adding concatenating like this:\r\n#define PUB_PREFIX2            MQTT_GRPTOPIC \"/tele\"\r\nI succesfully send mqtt messages with the topic structure I want, but the problem comes when I try to access the console web interface: I just get a blank console where there used to be a lot of useful info.\r\n\r\nCan anyone help me?\r\n"},"comment":{"url":"https://api.github.com/repos/arendst/Sonoff-Tasmota/issues/comments/282698520","html_url":"https://github.com/arendst/Sonoff-Tasmota/issues/43#issuecomment-282698520","issue_url":"https://api.github.com/repos/arendst/Sonoff-Tasmota/issues/43","id":282698520,"user":{"login":"SrKlein86","id":15035684,"avatar_url":"https://avatars.githubusercontent.com/u/15035684?v=3","gravatar_id":"","url":"https://api.github.com/users/SrKlein86","html_url":"https://github.com/SrKlein86","followers_url":"https://api.github.com/users/SrKlein86/followers","following_url":"https://api.github.com/users/SrKlein86/following{/other_user}","gists_url":"https://api.github.com/users/SrKlein86/gists{/gist_id}","starred_url":"https://api.github.com/users/SrKlein86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SrKlein86/subscriptions","organizations_url":"https://api.github.com/users/SrKlein86/orgs","repos_url":"https://api.github.com/users/SrKlein86/repos","events_url":"https://api.github.com/users/SrKlein86/events{/privacy}","received_events_url":"https://api.github.com/users/SrKlein86/received_events","type":"User","site_admin":false},"created_at":"2017-02-27T11:43:38Z","updated_at":"2017-02-27T11:43:38Z","body":"OK, thanks everyone so much! that was what caused the issue I was experiencing!\r\nJust one more question before closing this thread: Is there any way to set what kind of module and sensor I'm using before flashing? i'll have to deploy a bunch of DHTs with AM2301s without web interface, and it feels tedious to configure one by one via MQTT messages."}}
{"actor":{"display_login":"SrKlein86"}}