@V1per Thanks. I’m still relatively new to the Pi, so could you explain me the more detailed steps to achieve this?
-
Option for wireless modules?
-
Please read first the description off all options you have, when you know what way you want to go we can help you.
-
@V1per I think I’m gonna use to ESP8266 with the mqtt-plugin for pimatic, as I think it would suit me the best.
-
OK, have you allways work with Arduino or ESP8266?
Have you programmed a ESP8266 over the Arduino interface? -
@V1per None of both unfortunately…
-
OK, you need:
- Buy a ESP8266
- For the temperature it gives severall sensors, the cheapest is a DS18B20, or how @Stokstaart wrote an DHT11 or DHT22 (who can also send humity) buy what you mean.
- Install the Arduino interface and the ESP8266 Board see: Installation
- Install the Mosqiitto Server on your Raspi: Installation
- Install the MQTT-Plugin into Pimatic
- Wrote the Arduino scetch for the ESP8266 with yout temperature sensor and the MQTT plugin. And send the temperature to a topic to your mosqitto server on the Raspi
- In Pimatic you have to set a MQTT Device who subcribes the topic from the ESP8266
This is all very theoretic so when you have some troubles please ask here.
-
@v1per I found the NodeMCU a LOT easier to flash when compared to an ESP. NodeMCU has an built in serial converter so no need for additional converter (not mentioned) or wiring the ESP up to an Arduino in the first place (not mentioned).
For flashing the NodeMCU you just connect it to you PC/Laptop via an mirco usb cable and start the ESPEasy flasher program (needs to be downloaded). As far as i know Adruino IDE doesn’t even have to be installed! (please correct me if i am wrong though!)
MQTT server and plugin still needs to be installed but hardwarewise i would definitely go for a NodeMCU!
Example NodeMCU here
ESPEasy Firmware, flasher and lots of info here -
@Stokstaart
Sounds easy for me, I don’t have work with ESPeasy maybee it is the easiest way.
So @TheOnlyNexus try it how Stokstaart wrote you have also the MQTT-Protokoll but you must by a NodeMCU not an ESP8266.
I think both ways are good but ESPeasy is for you a lot easyer to make because you don’t need to programming a scetch in Arduino.I first have worked with MySensors, also a great projekt but for each sensor you have your own protocol then I have seen how easy the MQTT Protokol works and so all my new sensors worked with MQTT.
-
Take a sonoff TH10 or TH 16 with external Temp/Humidity sensor AM2301.
Flash with ESPEasy or sonoff Tasmota.
Example:
Integration in pimatic with a shell sensor.
Command:curl --silent http://ip-address/cm?cmnd=Status%2010 | grep 'Temperature' | cut -d ':' -f7 | cut -d ',' -f1
Output:
-
or use ESPimatic
https://forum.pimatic.org/category/25/espimatic
https://github.com/koffienl/ESPimaticanother approach would be to use homeduino (or ESPimaticRF in combination with homeduino) to have 433MHz RF. Then you can use sensors from weather stations e.g.
just my two cents.pimatic v0.9 has been released!
Support Pimatic and get some free stickers
Like us on Facebookmake it so !
-
This post is deleted!