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..
Posts made by Astrofotograf
-
RE: Openhab2 + mqtt: PIR working, switch does not
-
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
-
RE: Another beginner project
@HenryWhite said:
Hi! Which "Funklichtschalter (Sender)" are you going to use?
I ordered this one: "Smartwares SmartHome Funk-Einzelwandschalter 1-Kanal, SH5-TSW-A"
together with this one: "Smartwares SmartHome Funk-Einbauschalter 1000 W, SH5-RBS-10A"
and this one: "Smartwares SmartHome Funk-Fernbedienung 4-Kanal, SH5-TDR-F"
But didn't try them yet, so no further experiences with them yet
-
RE: Another beginner project
So it should work like this (german, but I hope you can understand)
-
RE: Another beginner project
Is the gateway always one way? So it will receive the data from sensors and transmits it to the controller? What if I want to expand the system with a light switch? The light switch works also with 433 MHz, but it should not directly control the light. Instead it should send the signal to the controller, which then sends the signal to the receiver. Do I need a gateway per frequency band or a controller per task (receiving gateway / transmit gateway)?
-
Another beginner project
Hi, I am currently reading a lot about home automation and want to start a project. I have an arduino uno for a few years now and started my new project by getting some 433 MHz wall outlets from the local diy store. I already managed to get the binary code from the remote and send it from my arduino via 433 MHz, so evey 10 seconds the lamp connected to the outlet switches on/off. Great :d
Now I also own a raspberry pi 2 and so I am planning now to set up a home automation system:
The RasPi will serve as the controller with OpenHab and the arduino uno will be the ethernet gateway and communicates via 2.4 GHz with a few sensors.
Additionally I want to keep the 433 MHz wall outlets. So the gateway will also have the 433 MHz sender wired.But my quastion is: will this configuration work? I begin to understand the theory, but I can't imagine how all these things are set up and communicate with each other.
For example I want to have a sensor in the corridor. The sensor consists of a PIR sensor and a light sensor. Data will be transmitted via 2.4 GHz to the gateway. Now I want to switch on the light (433 MHz light switch) when the sensor detects movement and the light in the corridor is below a specific value.I am currently waiting for a few parts, especially the 2.4 GHz modules and the ethernet shield, but I think I have to set all this up, maybe things get clearer then..