Announcement

Collapse
No announcement yet.

MQTT with raspberry pi

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    MQTT with raspberry pi

    I downloaded the raspberry pi plug in and it it very good however didn't give me analogue inputs. So after a bit of playing around I set up 2 raspberry pi's and loaded mqtt on them.
    I have one in an out building and one in the house.
    Using red node to program some inputs and outputs with a little logic I now have motion, temperature and humidity. Smoke and carbon monoxide sensors and relay outputs working a treat on the pi's and interfacing to HS3 very effectively.
    Next is to add a camera and rfid to the pi's.

    It's was easy to do and must say seems to be responsive and so far stable.

    If the rfid works it gives a very cost effective node that can do anything.


    Sent from my iPhone using Tapatalk

    #2
    You have my interest, how are you doing this? Sounds like a great way to do stuff...

    Jay

    Comment


      #3
      On the raspberry pi I installed mosquitto. One needs to have the broker installed.
      Once that's on and running I used node red on the pi to read the gpio ports.
      These are published from node red to mqtt.
      On the HS3 machine I installed the mqtt plug in.
      Subscribed to the mqtt topics.
      I then published 2 or 3 devices from the HS3 machine.

      Back on the pi I subscribe to the topics.

      A motion sensor on the pi for example publishes the status to mqtt. HS3 subscribes to that and I use that to turn the lights on via an event.

      I got an rfid reader working last night on another raspberry pi.
      I'll publish the results for HS3 to pick up.

      It's been rock solid for reliability and responds very quickly.


      Sent from my iPhone using Tapatalk

      Comment


        #4
        Originally posted by gd1210 View Post
        On the raspberry pi I installed mosquitto. One needs to have the broker installed.
        Once that's on and running I used node red on the pi to read the gpio ports.
        These are published from node red to mqtt.
        On the HS3 machine I installed the mqtt plug in.
        Subscribed to the mqtt topics.
        I then published 2 or 3 devices from the HS3 machine.

        Back on the pi I subscribe to the topics.

        A motion sensor on the pi for example publishes the status to mqtt. HS3 subscribes to that and I use that to turn the lights on via an event.

        I got an rfid reader working last night on another raspberry pi.
        I'll publish the results for HS3 to pick up.

        It's been rock solid for reliability and responds very quickly.


        Sent from my iPhone using Tapatalk


        Are running anything on (HS3 )? If so there are few other bits which can make your project even more crazy


        Eman.
        TinkerLand : Life's Choices,"No One Size Fits All"

        Comment


          #5
          I'm running lots in HS3.

          Zwave, Sonos, nest smoke alarms, weather plug in, bblan,
          ImperiHome and HS3Touch.

          The raspberry pi's give me very cost effective and flexible nodes.

          I'll make an alarm bell box with a camera in with one.
          Lights, security etc for an out building.
          Rfid log in with keypad (maybe on a small touch screen) at front and back door too.


          Sent from my iPhone using Tapatalk

          Comment


            #6
            Originally posted by gd1210 View Post
            I'm running lots in HS3.

            Zwave, Sonos, nest smoke alarms, weather plug in, bblan,
            ImperiHome and HS3Touch.

            The raspberry pi's give me very cost effective and flexible nodes.

            I'll make an alarm bell box with a camera in with one.
            Lights, security etc for an out building.
            Rfid log in with keypad (maybe on a small touch screen) at front and back door too.


            Sent from my iPhone using Tapatalk


            Good wook man. Now check your PMs and get busy!


            Eman.
            Last edited by Eman; November 28, 2016, 12:55 AM.
            TinkerLand : Life's Choices,"No One Size Fits All"

            Comment


              #7
              Rfid now working well from the raspberry pi into HS3.
              This is good **** ha

              Comment


                #8
                Great Work !

                I have on/off working!!

                If I want to read a Temperature what sensor, what input on the PI and what input in NODE RED?

                Thanks

                Jay

                Comment


                  #9
                  MQTT with raspberry pi

                  What sensor do you have? There will be an add on for it.

                  Comment


                    #10
                    I'm not at my machine just now but if it's dht22 or dht21 it's the same as mine.
                    You import the library. Then it appears on the list on the left.

                    Comment


                      #11
                      I have not bought a sensor as of yet. What library are you speaking of.

                      BTW What a cool find!

                      Jay

                      Comment


                        #12
                        I'll look when I get home, I forget the exact name

                        Comment


                          #13
                          Thanks!

                          Comment


                            #14

                            Comment


                              #15
                              this sounds amazing!! I've got to give this a try

                              Comment

                              Working...
                              X