Read the statement by Michael Teeuw here.
MMM-MQTTbridge
-
here is fribse’s great tutorial for simple integration of MM into Home Assistant ecosystem.
Following the logic from his post, user can expand it and control everything on its MM:https://community.home-assistant.io/t/magicmirror-integration-into-home-assistant-with-mqtt/177246
-
Hi @Serge , I found one thing missing from the noti->mqtt, the QOS is not settable.
I can see that you send them with qos:0, it should be settable to 0,1 or 2 as to how much guarantee for delivery it’s supposed to get.
Other than that, it’s working perfectly, even via Google Home to turn the screen on and off (via the switch in Home Assistant) -
This looks very interesting! Thanks a lot for the effort to create this module. I look forward to trying it :)
-
Hey @Serge
i am struggeling around with publishing a variable. Here is the thing: I want to publish a variable from the default “newsfeed” module of MMM. I already get a notification ofARTICLE_INFO_RESPONSE
. I took a look at the source code and it seems likeARTICLE_INFO_RESPONSE
is kind of an Array. I spend hours trying to get the “URL” variable from this Array intomqttMsgPayload:
. Is it possible to get variables (from “arrays”) into themqttMsgPayload
variable of NotiDictionary.js?
It can be a really easy thing, but I am kind of a newbie in JavaScrip…But newertheless I really like your module! Very good job!!!
-
This is perfect!!! Thanks so much! I run OpenHAB and utilise MQTT quite heavily. However I don’t like MQTT persistence, as it doesn’t work for me in OpenHAB. I run MMM-MQTT module in MM, but the problem with that is, when MagicMirror starts up it doesn’t display MQTT topic payload, as many MQTT updates I get are on intermittent basis (eg: swimming pool temperature, only updates if it changes, garden sprinkler last run, only updates when it’s run etc) So I’ve used this with MMM-Pages (I have several MM screens) and the 2nd page has mostly OpenHAB related info that I want to display. So I use the Notification ‘PAGE_CHANGED’ with payload = 1 (as pages start from 0) to publish an MQTT message of openhab/magicmirror/requestmqtt = ON. This is tied to a switch item in OpenHAB, and a rule in OpenHAB detects when the switch gets turned on, and in turn publishes a list of latest home automation data out to MQTT, which gets picked up and displayed on Magic Mirror. Prior to this, I would have a lot of items with “updating…” and had to wait until the device sent its latest information to MQTT.
This covers all bases and more. I can see this becoming a very powerful little module!
Thanks again!
-
@chimera said in MMM-MQTTbridge:
eg: swimming pool temperature, only updates if it changes, garden sprinkler last run, only updates when it’s run, etc
As far as I understood you, you need to issue some NOTI during the MM/Module startup, right?
How would be the best option to do that? One possible solution is to have a file with the list of topics (e.g. “swimmingpool/temp/status”, “gardenspirnkler/run/status”) to which MQTTbrdige will send the mqtt-messages at startup.
Will this solve your problem with the integration of MM to your smart home? -
@oberpiller said in MMM-MQTTbridge:
Is it possible to get variables (from “arrays”) into the mqttMsgPayload variable of NotiDictionary.js?
nope. I will think about it.
should it work somehow like that:
In notiMqtt dict should be specified whether we are using variable or not and, if yes, use it:var notiMqttCommands = [ { commandId: "Command 1", mqttTopic: "myhome/kitchen/light/set", useVariables: true, //added new setting to the dict to mqttMsgPayload: ARTICLE_INFO_RESPONSE //if useVriables=true, put here the variable name. If useVariable=false or not stated - mqttMsgPayload will send "ARTICLE_INFO_RESPONSE" in its payload. }, ];
-
This post is deleted! -
When i publish 1 message, it’s receiving it multiple times for some reason. Do i need to be worried?
-
@shinebright should produce one note per each mqtt message, check your settings once more or try to install on clean mm setup.