Connecting Temperature and Humidity Sensor DHT22 to OpenHAB 2 with MQTT

Поделиться
HTML-код
  • Опубликовано: 23 окт 2024

Комментарии • 32

  • @larsweimer4784
    @larsweimer4784 4 года назад +1

    Today I received three thermometer units - great work! But I'm facing a problem trying to use the thermometer in OpenHAB: I don't see any values. Is it mandatory to flash the device? Setting up was fine, but I have only MQTT topics workgroup//sketch and workgroup//wifi/...
    No topic at all! I'm using the OpenHAB MQTT embedded broker so what I'm doing wrong? Any idea's? Thanks a lot.

    • @LeonAnavi
      @LeonAnavi  4 года назад

      yes, it is recommended to use the latest firmware. There have been some improvements lately. Details how to do it are available here:
      ruclips.net/video/HMIkPuz0ZJs/видео.html
      The source code of the Arduino sketch is available at GitHub as well as pre-built binaries (in the releases):
      github.com/AnaviTechnology/anavi-thermometer-sw
      I haven't tested the OpenHAB MQTT embedded broker. As you can see in the video I used Mosquitto. Although, I doubt to have any issues with the embedded MQTT broker, I recommend using Mosquitto.
      I hope this information will help. Thanks for using ANAVI Thermometer and for the feedback. Please keep me updated with your progress.

    • @larsweimer4784
      @larsweimer4784 4 года назад +1

      @@LeonAnavi Good news: it works after 2 restarts with the installed sketch. The latest Arduino file "anavi-thermometer-sw.ino" cannot be compiled - error message "stray '\302' in program". Any suggestions for that issue? Thanks!

    • @LeonAnavi
      @LeonAnavi  4 года назад

      @@larsweimer4784 congrats for the progress! Thanks for reporting this issue. It is a weird error, probably an encoding issue. I will have a look and try to reproduce it.
      In the mean time you can also flash a pre-built release using esptool: github.com/AnaviTechnology/anavi-thermometer-sw/releases
      I have in my to-do list making a video about esptool. I will increase the priority of this task :)

    • @larsweimer4784
      @larsweimer4784 4 года назад +1

      @@LeonAnavi Now with the latest firmware it works!

    • @LeonAnavi
      @LeonAnavi  4 года назад

      @@larsweimer4784 Cool! Thanks for the feedback, hope you will enjoy your thermometer.

  • @1dwilde
    @1dwilde 4 года назад +1

    Good job! I've running 3 units one of them with the barometric pressure sensor and they are doing well.
    But I experienced one issue: from time to time the stop the topic "air" only the topic "wifi" is still alive. Any suggestions to solve this without unplugging?
    Thanks!

    • @LeonAnavi
      @LeonAnavi  4 года назад

      Thanks for the feedback! Unfortunately, I don't have a good recommendation for this case at the moment. Right now in GitHub there is an open technical discussion about implementing a mechanism for MQTT last will and testament message that informs the home automation system that ANAVI Thermometer isn't online: github.com/AnaviTechnology/anavi-thermometer-sw/issues/38
      Also you can have a look at the recent release of the open source firmware of ANAVI Thermometer and upgrade yours (if you haven't done it already):
      github.com/AnaviTechnology/anavi-thermometer-sw/releases

  • @markawbolton
    @markawbolton 5 лет назад +1

    Excellent work!

  • @nasriismail6504
    @nasriismail6504 3 года назад

    can u plz tell where did u get the MQTT topic state ID .. i'm followig ur steps in the video but i lost in the time 4:30 in u vid !!

    • @LeonAnavi
      @LeonAnavi  3 года назад

      Sorry for the late reply. The MQTT topic for the integration of ANAVI Thermometer using the default open source firmware is:
      //air/temperature
      Replace and with the actual values during the initial configuration of ANAVI Thermometer on first boot. More details are available at the user's manual: github.com/AnaviTechnology/anavi-docs/blob/master/anavi-thermometer/anavi-thermometer.md#openhab-step-5-add-anavi-thermometer-as-mqtt-generic-thing

  • @alibouragaa9938
    @alibouragaa9938 2 года назад

    can i do Connexion du capteur de température et d'humidité without using raspberry pi

    • @LeonAnavi
      @LeonAnavi  2 года назад +1

      Yes, absolutely, with the default open source firmware you can use any MQTT broker no matter if it is installed on a Raspberry Pi, your desktop, somewhere in the cloud, etc.

  • @grapes_sts
    @grapes_sts 4 года назад

    I want to ask you that your ip of mqtt is different to the ip of raspberry pi how you find your mqtt ip address

    • @LeonAnavi
      @LeonAnavi  4 года назад

      The MQTT address and port depend on the configuration. Different MQTT brokers have different default values and approach for configuration.

  • @primafauzan470
    @primafauzan470 5 лет назад

    can I make temperature sensor DHT22 only using raspberry pi without ESP8266?

    • @LeonAnavi
      @LeonAnavi  5 лет назад

      Yes, of course. You can connect DHT22 to the GPIO pins on the Raspberry Pi header. There are numerous tutorials in the web that explain the exact steps.

    • @primafauzan470
      @primafauzan470 5 лет назад

      @@LeonAnavi And then what exactly next steps are? do I have to use EXEC Binding to run it?

    • @LeonAnavi
      @LeonAnavi  5 лет назад

      @@primafauzan470 sorry, the questions that you ask are out of the scope of this video. As I told you previously, I recommend you to find step by steps tutorial for connecting DHT22 sensor directly to the pins on the Raspberry Pi. There are many tutorials for this.

    • @primafauzan470
      @primafauzan470 5 лет назад

      @@LeonAnavi OK, thank you for your share

  • @josephlo6005
    @josephlo6005 4 года назад +1

    I am interested in this. where can i get one?

    • @LeonAnavi
      @LeonAnavi  4 года назад

      ANAVI Thermometer is available at various distributors:
      www.crowdsupply.com/anavi-technology/anavi-thermometer
      www.mouser.bg/Search/Refine?Keyword=anavi+thermometer
      uk.pi-supply.com/products/anavi-thermometer
      www.sparkfun.com/products/15549
      As for OpenHAB visit www.openhab.org/

  • @michaelmutekeri8770
    @michaelmutekeri8770 3 года назад +2

    too fast for a tutorial...interesting concept though..

    • @LeonAnavi
      @LeonAnavi  3 года назад +1

      Noted! Thanks for the feedback. I am kind of person that likes quick and short tutorials. I will add chapters to the progress bar of the video to make the tutorial more comprehensive.

    • @LeonAnavi
      @LeonAnavi  3 года назад

      Done, based on your feedback I've added chapters to the video as well as more links in the description.

    • @michaelmutekeri8770
      @michaelmutekeri8770 3 года назад

      @@LeonAnavi thanx, will check it out

  • @1dwilde
    @1dwilde 4 года назад

    Good job! I've running 3 units one of them with the barometric pressure sensor and they are doing well.
    But I experienced one issue: from time to time the stop the topic "air" only the topic "wifi" is still alive. Any suggestions to solve this without unplugging?
    Thanks!

    • @LeonAnavi
      @LeonAnavi  4 года назад

      Hi Daniel. Thanks for the feedback! Sorry for the late reply, I've just seen the comment. Not sure about his particular issue. Are you using the latest version of the open source firmware?