Complete Guide MQTT OpenHAB ESP8266 Door / Window Sensor: Software WINDOWS

Поділитися
Вставка
  • Опубліковано 28 гру 2024

КОМЕНТАРІ • 63

  • @Jimmy_Jones
    @Jimmy_Jones 7 років тому

    Thanks. I have been waiting for a hardware setup by someone for ages.

  • @chrisn5827
    @chrisn5827 4 роки тому

    Awesome video!!!!!!! The mqtt binding is 2.5.7 now and no embedded biker in misc. Doni need to do some different steps now as i can't get thr slide door to change sates in the basic UI? Any help would be great. Mqtt works well

  • @Hi5ist
    @Hi5ist 7 років тому +1

    Can can I change the item of the door for a custom?

  • @arturl5087
    @arturl5087 7 років тому

    Will it work with home assistant as well?

  • @ssj4naka
    @ssj4naka 5 років тому

    Hi Matt, great videos as always.
    I've noticed that your new ino files are quite different than your videos show.
    Do you have any older ino files for esp8266 contact switches available?
    I have a project in the works using two contact switches with one esp8266 to check my refrigerator doors.
    Thanks

  • @phoenixcontactapps903
    @phoenixcontactapps903 6 років тому

    Please, you have some MQTT example ?

  • @danserban8109
    @danserban8109 7 років тому

    Hi, how hard would be to implement POE ( power over ethernet ) and adapt the code for it so we only use one wire instead two and a power supply ? Wouldn't be also cheaper this way ? Thank you !

  • @ryanparsley6494
    @ryanparsley6494 7 років тому

    Great Videos! Can you show us a video how you setup the alarm keypad installed on the panel?

  • @DiyintheGhetto
    @DiyintheGhetto 7 років тому

    The host name update_path i don't remember settings up in your other video where can i find them at?

    • @MKSmartHouse
      @MKSmartHouse  7 років тому

      /firmware i think that is what you are asking

    • @DiyintheGhetto
      @DiyintheGhetto 7 років тому

      The Esp code i was not understanding it. I kind of understand it now as you did the demo part on the MQTTFX program. Then i saw how you added the parts to the hom.items i wasn't understand where the Host name and the update_path was for.

  • @DiyintheGhetto
    @DiyintheGhetto 7 років тому

    I created my first test sensor with a push button and a ESP8266 it working. Compile still got that Error but it does Compile with no problem. But one thing that doesn't happen is the Notification. When i push the button it says Door is open i can see it on my phone when it says Open and Close. and the Button is turn on Green not red for off. So not sure Why there is no notification?

  • @DiyintheGhetto
    @DiyintheGhetto 7 років тому +1

    Hello I finally got a switch working as a prototype into i can order one of yours. Everything is working i can see if see it in the openhab UI page when it says open and closed. Also in my cellphone i can also see it when it says Open and Closed. But i do not get any notification on my phone. It is Checked in the Green box so the icon on the left is in green. I'm wondering Why I'm unable to get Notifications. I followed all your steps correctly.

    • @ryanparsley6494
      @ryanparsley6494 7 років тому

      I am having the same issue. Did you ever figure it out?

    • @ryanparsley6494
      @ryanparsley6494 7 років тому

      I figured it out. On your iOS device, go to settings in the openhab app. Make sure the remote URL is "myopenhab.org". Make sure it says this exactly.

  • @lewisbarnard3606
    @lewisbarnard3606 7 років тому

    Hi Matt, LOVE your videos! Im over in Australia and I am using a ESP8266 on a breadboard at the moment, I have the ESP talk to the MQTT.fx great, and everything works! But when you say move the jumper from program to run, what pins is that linking on the ESP? And is it going via a resistor or anything? Please please help me out!! Cheers!!

    • @MKSmartHouse
      @MKSmartHouse  7 років тому

      +Lewis Barnard when in program mode GPIO 0 is connected to ground and on run mode it is connected to 3.3v

    • @lewisbarnard3606
      @lewisbarnard3606 7 років тому

      MK-SmartHouse thank you so much for getting back to me. Thanks I will try that! I think I have got a bad batch of ESP so will have to order some more! I would share my ideas with you!

  • @nishitpatel6840
    @nishitpatel6840 7 років тому +1

    I don't get any feedback of contact's position on subscribing to mqtt topic running on raspberry pi

  • @mcgamingproyt
    @mcgamingproyt 7 років тому

    Why use that MQTT library and not the common PubSubClient ?

    • @MKSmartHouse
      @MKSmartHouse  7 років тому +1

      I like this one in my opinion it is better and faster

  • @ssj4naka
    @ssj4naka 6 років тому

    If anyone can answer, In the arduino file, does mqttDeviceID need to be specific to or match anything defined in openhabian? my program gets stuck in the connect() function.

  • @jeffreyevans2947
    @jeffreyevans2947 7 років тому

    Have you tried to upload this to a ESP8266-01?
    I have bricked 2 of them now trying to upload this sensor script.
    It builds, starts to upload and gets to about 40% then the lights stop flashing indicating program going into esp8266. I get message after a while saying upload complete but nothing works, both red and blue light lit and if I try to reload I get many errors.

  • @The_StruggleBuss
    @The_StruggleBuss 7 років тому

    Quick question, can multiple sensors be hooked up to one ESP8266 or is it one sensor per ESP8266? Thank you for these videos, keep it up!

    • @enriquephan7729
      @enriquephan7729 7 років тому

      Yes and no(because you would have to change the PCB board), talking about software you would have to add another "SensorPin" and another "OutTopic" as well as a way to handle the digitalRead of your new SensorPin2. Talking about hardware, you would need to design a new board with one more output... If you are not afraid of this, let me know and I wil try to explain it to you more in detail.

    • @MKSmartHouse
      @MKSmartHouse  7 років тому

      It can but, not the devices that I make.

    • @The_StruggleBuss
      @The_StruggleBuss 7 років тому

      Nope makes sense. Thank you all for the response.

  • @StePhanMckillen
    @StePhanMckillen 7 років тому

    Nice One again what about added the DHT11 to it

    • @MKSmartHouse
      @MKSmartHouse  7 років тому

      I could... but I think I am going to make a separate device for the DHT

    • @StePhanMckillen
      @StePhanMckillen 7 років тому

      why not both i help you

  • @tuasco
    @tuasco 7 років тому

    could you show us how to add a new sensor and how to make one single esp8266 read a sensor state and control a relay?
    Thanks for the videos!
    Now you have a Brazilian​ subscriber :)

  • @polyszi
    @polyszi 7 років тому

    First I would like to say Thanks your tutorials videos. They are very useful.
    I have a problem and I don't understand what is that exactly. I read your Forum and here the comment and the MQTT for everyone working correctly but unfortunately for me not. It get the esp8266 the power and if the state is open, then I get the messege from open state. And when I make it to close then also get close but after close state the esp8266 doesn't send message anymore. If i plug out the power(reset the device) then state is open then I get again the mqtt message but if the state will be close after this message I don't get any state.. So what i think in Sketch some where something is said the Modul if the state is closed then you should working anymore. I don't know. Do you have anyidea why happening this? I just changed in your sketch the wifi and the password, everythingelse is the same as by you. Thank you very much again. :)

  • @ka4a4eto
    @ka4a4eto 7 років тому

    Configuration model 'home.rules' has errors, therefore ignoring it: [4,3]: no viable alternative at input 'item'
    how to solved this error?

  • @cheesecake667
    @cheesecake667 6 років тому +1

    TX to TX and RX to RX sounds wrong. Shouldnt it be TX to RX and RX to TX?

    • @stanisawbiaas827
      @stanisawbiaas827 5 років тому

      TX to RX and RX to TX otherwise it wont work. I've checked that :)

  • @traxxasdude99
    @traxxasdude99 7 років тому

    i keep getting espcomm_upload_mem failed any ideas on this ? ive tried with a pc and mac

    • @MKSmartHouse
      @MKSmartHouse  7 років тому +1

      1. Are you sure you have the right com port 2. is it in program mode 3. Do you have the proper connections between the arduino

    • @traxxasdude99
      @traxxasdude99 7 років тому

      MK-SmartHouse yes and this is the second time Ive tried with a totally new pcb and components

    • @traxxasdude99
      @traxxasdude99 7 років тому

      MK-SmartHouse the issue im having is i soldered the board and the ESP board together and just waited for today for the resisters so i soldered them in and then i connected up to the arduino after messing around to get it all connected it connected and the file uploaded

    • @traxxasdude99
      @traxxasdude99 7 років тому

      MK-SmartHouse i pluged into power after moving the jumper to run i then opened up the MQTT on my MAC and connected and subscribed then i moved the sensor loose part to the wired in sensor and the circuit board cut out and smelt bad i burnt my finger but i dont know what it was on

    • @traxxasdude99
      @traxxasdude99 7 років тому

      MK-SmartHouse after trial and error of messing with a spare circuit board and components however no esp was on this PCB i moved the sensor just to see if it broke the circuit and it stayed on

  • @Hi5ist
    @Hi5ist 7 років тому +1

    I love your videos, I´m doing all and trying to do more!!
    can you helpme with something? in the firmware in the part that says: " const char* update_username = " " " there go the user name that I created in the web page "myopenhab.org" ? I use the email and password of that page, but it dosen´t contect with the rasperry, the ESP8266 is conected to my wifi, but it dosn´t reognize the MQTT messages

    • @casticolo
      @casticolo 6 років тому +1

      Good morning I am with your same problem, with MQTT I check how it opens and closes but I do not see it in the app or openhab page.
      Have you solved the problem? please if you found the solution, help me.
      thanks and best regards

  • @bmwproboi05
    @bmwproboi05 7 років тому

    Side note for those of you guys using NODE RED with a Pi or something else sending MQTT. The Contact item needs to receive OPEN or CLOSED as seen not open close. It is case sensitive. Each item has a predefined value it must see or so I have read. Also, do not put spaces before and after = it will not work.

  • @MatterSec
    @MatterSec 7 років тому

    Got mine :) - only issue I have is it won't join the wifi network (has correct details etc.) it works with Mqtt local with open/close etc.

    • @MKSmartHouse
      @MKSmartHouse  7 років тому

      +MrFrostmaul what do u mean it won't join the wifi network? How can it send Matt commands without wifi?

    • @MatterSec
      @MatterSec 7 років тому

      Mean't it can recieve commands via the MQTT via ardunio into computer, but just the wi-fi doesn't connect.

  • @MrBobWareham
    @MrBobWareham 7 років тому

    Hi it all looks good until you need mains power to keep it running I would buy some but it would need to be battery powered with a small battery that can be recharged !!

  • @bfkmnemonic
    @bfkmnemonic 7 років тому

    If you get this error:
    "An error occured during the script execution: The name 'sendBroadcastNotification()' cannot be resolved to an item or type."
    It means that you did not connect your openhab server with the cloud and therefore cannot send notifications.

    • @MKSmartHouse
      @MKSmartHouse  7 років тому

      yes please watch my video on the cloud connector to learn how to set it up

  • @yogeshsraibagkar9261
    @yogeshsraibagkar9261 4 роки тому

    The codes needs to be updated as esp8266 community has moved to board library version 2.7.2 and our code is not compatible with that.

  • @vtech8716
    @vtech8716 7 років тому

    Thanks a lot for your video. But I have a problem with appearance of switches in graphic UI, despite I have been create necessary files (*.sitemaps and *.items) ??? MQTT broker works good.

    • @MKSmartHouse
      @MKSmartHouse  7 років тому

      you must have a syntax error or what you wrote in those files, did u copy exactly what is on my website?

    • @vtech8716
      @vtech8716 7 років тому

      I have my oun simple (sitemap):
      Frame label="MQTT Test"{
      Switch item=MQTTLED label="LED"
      }
      and (items):
      witch MQTTLED {mqtt=">[localbroker:/openhabdemo/gpio/2:command:ON:1],>[localbroker:/openhabdemo/gpio/2:command:OFF:0]"}

    • @vtech8716
      @vtech8716 7 років тому

      Maybe I need to reboot OpenHAB?

    • @MKSmartHouse
      @MKSmartHouse  7 років тому

      Im hoping that in the items file you have an s in switch, also why do you have the label in the sitemap and not in items.