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
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
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 !
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.
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?
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.
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!!
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!
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.
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.
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.
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 :)
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. :)
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
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
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
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
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
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.
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 !!
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.
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.
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]"}
Thanks. I have been waiting for a hardware setup by someone for ages.
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
Can can I change the item of the door for a custom?
Will it work with home assistant as well?
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
Please, you have some MQTT example ?
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 !
Great Videos! Can you show us a video how you setup the alarm keypad installed on the panel?
The host name update_path i don't remember settings up in your other video where can i find them at?
/firmware i think that is what you are asking
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.
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?
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.
I am having the same issue. Did you ever figure it out?
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.
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!!
+Lewis Barnard when in program mode GPIO 0 is connected to ground and on run mode it is connected to 3.3v
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!
I don't get any feedback of contact's position on subscribing to mqtt topic running on raspberry pi
Why use that MQTT library and not the common PubSubClient ?
I like this one in my opinion it is better and faster
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.
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.
No I have not tried on the 01
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!
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.
It can but, not the devices that I make.
Nope makes sense. Thank you all for the response.
Nice One again what about added the DHT11 to it
I could... but I think I am going to make a separate device for the DHT
why not both i help you
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 :)
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. :)
Configuration model 'home.rules' has errors, therefore ignoring it: [4,3]: no viable alternative at input 'item'
how to solved this error?
TX to TX and RX to RX sounds wrong. Shouldnt it be TX to RX and RX to TX?
TX to RX and RX to TX otherwise it wont work. I've checked that :)
i keep getting espcomm_upload_mem failed any ideas on this ? ive tried with a pc and mac
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
MK-SmartHouse yes and this is the second time Ive tried with a totally new pcb and components
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
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
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
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
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
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.
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.
+MrFrostmaul what do u mean it won't join the wifi network? How can it send Matt commands without wifi?
Mean't it can recieve commands via the MQTT via ardunio into computer, but just the wi-fi doesn't connect.
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 !!
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.
yes please watch my video on the cloud connector to learn how to set it up
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.
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.
you must have a syntax error or what you wrote in those files, did u copy exactly what is on my website?
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]"}
Maybe I need to reboot OpenHAB?
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.