@ahmedadelhosni Yep, ordered one yesterday. Hope it won't take weeks again.
Astrofotograf
@Astrofotograf
Best posts made by Astrofotograf
-
RE: OpenHAB + Arduino Uno Gateway + ENC28J60 + MQTT
Latest posts made by Astrofotograf
-
RE: Openhab2 + mqtt: PIR working, switch does not
Omg.. Topic can be closed. After hours and hours of search, try and error, I noticed I called the switch SW2 in the items file and SW1 in the sitemap..
-
Openhab2 + mqtt: PIR working, switch does not
I have just installed openhab2 with mosquitto and the mqtt gateway on my raspi. I made a motion sensor with an arduino nano, which totally works in openhab.The item entry is:
Number PIR "Bewegungsmelder" {mqtt=">[broker:mysensors-out/10/1/1/0/16:state:default]"}Now I wanted to create a switch, which is basically a 433MHz module sending a 24 bit string to control a 433MHz wall plug.
Item entry:
Switch SW2 "Lampe" {mqtt=">[broker:mysensors-in/11/1/1/0/16:command:on:000000000000000000000111],[broker:mysensors-in/11/1/1/0/16:command:off:000000000000000000000110]"}Now when I add the switch to my basic ui and I toggle it, nothing happens. When I send the 24 bit via mqtt.fx to the topic mysensors-in/11/1/1/0/16 it works. But when I toggle the switch in openhab, I don't see an entry in mqtt.fx
What did I do wrong?
-
RE: OpenHAB + Arduino Uno Gateway + ENC28J60 + MQTT
@ahmedadelhosni Yep, ordered one yesterday. Hope it won't take weeks again.
-
RE: OpenHAB + Arduino Uno Gateway + ENC28J60 + MQTT
Looks like I will just get a W5100 module to solve the problems..
-
OpenHAB + Arduino Uno Gateway + ENC28J60 + MQTT
Hi, I'm still about to set up my home automation. I didn't do anything on the gateway yet (still waiting for the 2.4 GHz modules), but I think I encountered some problems now.
I have installed OpenHAB and Mosquitto on the raspberry. Now I want the Arduino Uno to act as an Ethernet MQTT Client Gateway. Unfortunately my Ethernet module is based on the ENC28J60. Will this work at all? There is no MQTT Client Gateway in the dev package of MySensors.
Ok, fine, I still can use the MQTT broker Gateway. Can I? Is this MQTT Gateway sketch designed for the W5100 or will it work with the ENC28J60, too?
If not, what is my alternative? Can I set up the serial Gateway as a MQTT Client / broker? I am totally confused, but I want to avoid ordering another bunch of parts with delivery time of more than x days, costing me another bunch of money..
-
RE: Another beginner project
Hm, I installed OpenHAB now on my RasPi, also Mosquitto. I think I begin to understand this. So MQTT is just some kind of "forum", and when in the thread "livingroom/temperature" something changes, OpenHAB recognizes it. The sensor sends just its data to the gateway and the gateway writes the MQTT thread?
Will the other way round work too, so OpenHAB writes data into a specific thread, the gateway recognizes it and sends a command so, say a servo node to move something?If that all is correct, I sould be able to connect the 433 MHz things just like a normal sensor node. The receiver acts as a normal sensor and the sender could use the servo sketch to send some commands via 433 MHz band?
-
RE: Another beginner project
Okay, thanks. Seems I just have to experiment a bit with it.
-
RE: Another beginner project
But in general, I could save the second gateway with that?
I'm not sure if I understand all of that correctly. Just spent a few hours to get the demo of openHAB running and still get some errors (persistence service not available) where I don't know whether it is normal to get these errors.. -
RE: Another beginner project
So you add the 433 MHz modules directly to the rapberry GPIO pins and use the arduino just for the sensors?
-
RE: Another beginner project
With an arduino + 433 MHz receiver. The library is rc switch. There is a receive example sketch coming with it