Read the statement by Michael Teeuw here.
Display different Roomtemperature on MagicMirror
-
Hey, im completley new here and im trying to find an easy way to display different Roomtemperatures (and humidity) on my MagicMirror.
I guess it doesn´t work, to just by an Temperature-Sensor on Amazon and add a Module in my Config file, or does it?
The best case would be an Thermometer connected to the SmartLife App (via this Modul: https://github.com/slametps/MMM-TuyaSL). But i don`t know if the Module can display the Temperature and Humidity.
After some research I think there a two ways:
-
Buy an already Working smart thermometer like this here: https://www.amazon.de/gp/product/B08W1HM4WV/ref=ox_sc_act_title_1?smid=A2IT6QWJ19LHT0&psc=1 and connect it to the MagicMirror via the SmartLife- or TuyaApp. And i can read the data directly from the Thermometer.
-
Build something like this:
With a Module like this: https://github.com/balassy/MMM-RemoteTemperature
Im not sure if i can do this myself (I can´t Code). But its cheaper i guess
I know there are already exsisting modules to hook up a sensor direct to your Raspberry Pi, but this wont work for me, i need more than 3 Sensors that are connectet over WiFi.
Sooo that´s it, I hope someone can help me, i just need an easy solution :).
-
-
@Xilef
Hi,
did a lot of research to this topic in the last view years.Things depend heavily on your needs.
Do you plan to power the devices with a power supply or do they need to run on battery?I can`t suggest Tuya devices as they changed the firmware in newer devices to do not allow local connections anymore. Most of the modules i found need to connect directly to the devices which is blocked now.
Last week i replaced two of my Tuya smart plugs with ones of Shelly cause they are not supported by tuyalib anymore and a was not able to integrate integrate them into my installation.Personally i ended up providing the temperature and humidity values with BME280 or HTU21 sensor connected to ESP8266 or ESP32 micro controllers.
My MMM-Temperature module contains some examples and i can provide some more if needed.
The easiest way is to start a webserver on the ESP controller that sends the data as JSON string if somebody connects. The main disadvantage is that the controller needs to run all the time and wait for new connections. It is hard to realize authentication mechanism, too.
I suggest to use a MQTT-Broker (like Mosquitto) and send the data via MQTT to the broker which forwards the data to the mirror. You then can use my MMM-ValuesByNotification the sensor data and much more.
If needed the ESP controller fall a sleep for some time and i.e. send data only every 30 minutes. There are a lot of possibilities and i tried a lot of them.I provide scripts to send the data of Miflora flower sensors (which provide temperature as well) to a MQTT broker, too. The scripts (MMM-CommandToNotification script or system service read the data via bluetooth and send it to the broker.
As a third alternative you can sensors that are supported of Zigbee2MQTT, buy a supported Zigbee usb stick like this one and configure Zigbee2MQTT to send the data to the MQTT broker.
-
@wishmaster270 Thanks for your reply.
@wishmaster270 said in Display different Roomtemperature on MagicMirror:
Do you plan to power the devices with a power supply or do they need to run on battery?
Mostly on power supplys
In general, I would think your solution would work for me, but the big problem is, if i buy like an EPS8266/ESP32 and BME280/HTU21 sensor, i can solder them together, but i have no idea how to set up the software.
Im glad that i managed it to run Weather, Calendar and an RSS-Feed on my Mirror. But I don’t know much more than that. If there were step-by-step instructions, I would definitely be able to do it, but I don’t think there is one for exactly my needs.
I would definitely try to do it, but i need help i guess. -
@Xilef esp8266, see the instructables.com site
also download the Arduino ide to create and load sw on the device.
I capture the temp and push it to a local server running and http server. you can also use Matt to push
-
@sdetweil no idea what you are talking about after Arduino ide xD but thanks anyway
I think I will first order an ESP8226 and see if I can set it up/play a sample program on it, with the help of an YT Tutorial. And then Im trying to connect it with the sensor and display the data on the Mirror using an http server
and it would be cool if someone would upvote my posts so that they arent dumped into the moderation queue
-
@Xilef https://docs.arduino.cc/software/ide-v2/tutorials/getting-started/ide-v2-downloading-and-installing
that’s for programming the ESP8266
-
@sdetweil thx
-
@Xilef
ESP8266 is a good choice. I prefer ESP32 cause it has more power but does not need that much more energy. You have a lot more GPIOs with a ESP32 than a with the ESP8266.I can provide you a ESP32 sketch which is ready to flash and only needs the Wifi-SSID, Wifi-Password and the MQTT parameters configured.
I use the Arduino IDE to flash the boards. -
@wishmaster270 thanks
As I understand it, something like this is my target:
And i would need:
- ESP32
- DHT11-Sensor Problem with this Sensor is the accuracy i think, but if it works I can swap them out I guess
- BreadBoard
And as Powersupply something with 5V and 1-1,5A right?
I would probably do it like this guy on youtube https://www.youtube.com/watch?v=ebJpXs2-WgM&list=PLUwa0e4GQGhS6KCSbLAQGog4_Z7eIWOm3&index=3
And from the ESP32-Website the MagicMirror should be able to read the data and display it
-
@Xilef
You need a ESP32 ( I use a D1 Mini but nearly everyone should be fine)
You need a Temperature and Humidity Sensor (BME280 and HTU21 are a lot more accurate and use I2c to communicate with the controller.
A Power supply with 5V 1A should be more than enough.That’s how I display my values…
The first three are ESP32 the others my thermostats.