Read the statement by Michael Teeuw here.
MMM-Tasmota in combination with Sonoff basic r2 and mosquito as broker
-
I’m running mosquito as broker on the pi. With MMM-MQTTBridge I can properly send and receive messages from my sonoff switches, e.g. when I manually enable the light with the button on the device I can show an alert on the mirror.
Now I want to add an interface to the screen to be able to show the status of the switch and toggle it from the mirror. For this purpose I wanted to use MMM-Tasmota, however I’m struggling with the configuration, and now I’m even wondering if this module actually supports the sonoff switches or only the sensors.
for MMM-MQTTBridge I use this in config:
mqttServer: "mqtt://:@localhost:1883",
the format for MMM-Tasmota suggests something like this, is that the correct format?host: 'http://localhost:1883',In logs I do see this:
host: 'http://localhost:1883',but I do not see any messages about subscribing to the topic of my sonoff switch for which I configured:devices: [ { topic: "woonkamer/sonoff-nr1", name: "lamp", showPowerStats: true } ],Should I use a different config?
(I guess an example file on the github page would be useful).
-
After some debugging in with
npm start devand checking the console this pointed me to an error in my config; showPowerStats is a global setting, not per device.After that it started at least to the point where it would subscribe to the mqtt topic, however I should have considered the obvious; my mqtt structure is not the default suggestion of tasmota, so the code does not correspond with that. Currently trying to adapt for that.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login