I'm running the example sketch so the sleepfunction is allready there. So it's the 5V power that's the issue?
Posts made by Gustafsson
-
RE: Motionsensor
-
Motionsensor
Hi guys,
I just build my first motionsensor but i think I have some problems. Everything is working and the sensors send 1 and 0 to my gateway, but my problem is that it looks like this in the serial monitor.
1 0 1 0 0 1 0 1 1 0 1 1 0 1 1 0 1 0 0 1 0 1 1 0 1 1 0 1 1 0 1 0 1 1 0 1 1 0 1 1 0 1 0
The problem is that I get like 10 - 20 updates / second and as you see, its 1 and 0 at the same time and its pointed at a clean wall with no motions.
Anyone have any thoughts how to solve this?
Cheers
-
RE: openHAB 2.0 binding
@gonzalonal sorry, I missed it when I pasted in my code here, so there is in fact a { in my code. Any other ideas?
-
RE: openHAB 2.0 binding
@andreacioni That's exactly what I did.
Things
Bridge mysensors:bridge-eth:gateway [ ipAddress="192.168.254.228", tcpPort=5003, sendDelay=200 ] door frontDoor [ nodeId="102", childId="4" ] }
Items
Text frontDoor "Door" { channel="mysensors:door:gateway:frontDoor:tripped" }
Sitemap
sitemap MySitemap label="Main Menu" { Frame { Text item=frontDoor } }
This is how everything looks like now. I get the door item green in habmin but still the red cross on the gateway. The door item dosn't show me if it's open or closed.
-
RE: openHAB 2.0 binding
Hi guys,
I've tried to add my ethernet gateway to openhab2 through but I just cant get the Online-status on, it. Do I have to do anything else than just adding it into the things file?
-
RE: Add item in openhab from MQTT gateway
Hi again,
I got to the point where I ain't get any error in my openhab.log file and this is how it looks now, but still doesn't work.
Contact door "MQTT [MAP(door.map):%s]" {mqtt="<[homeAuto:homeAuto-out/101/3/1/0/V_TRIPPED:state:MAP(door.map)]"}
Thanks
-
Add item in openhab from MQTT gateway
Hi guys,
You have been a big help to me so far and I would like some more.
I have a running MQTT Ethernet Gateway, I also have a running BinarySwitch but I just don't have a clue how I add this as an item in openhab. I tried this one, but it ain't working.
Contact door "MQTT [%s]" {mqtt=">[homeAuto:homeAuto-out/101/3/V_TRIPPED:state:OFF:1],>[homeAuto:homeAuto-out/101/3/V_TRIPPED:state:ON:0]"}
Is there anyone who can help me with this one? And is there somewhere I can read about how to configure different items from MQTT in openhab?
Thanks guys
-
RE: [SOLVED] MQTT Ethernet shield gateway
Good to hear that you had a plan
Now the only problem is that I need to figure out how to connect everything with the sensors and then to openhab. I'm off duty tonight so I'm going to see what Google have for me
-
RE: [SOLVED] MQTT Ethernet shield gateway
Problem fixed.
Apparently my wires from Chine was the problem. Bought some new ones and now it works.
Thanks for all help @Thomas-Augustinus
-
RE: [SOLVED] MQTT Ethernet shield gateway
@Thomas-Augustinus Thanks for the pictures.
I checked my gateway and it's wired exactly the way yours is but still no luck.
I reinstalled my arduinoprogram and installed the latest MySensors library again, just to be sure. The only thing I have done to the code is enable soft SPI, commented out IP to activate DHCP and also entered my MQTT IP adress.
This i what my serial port says..
0;255;3;0;9;Starting gateway (RNNGA-, 2.0.0) 0;255;3;0;9;TSM:INIT 0;255;3;0;9;!TSM:RADIO:FAIL 0;255;3;0;9;!TSM:FAILURE 0;255;3;0;9;TSM:PDT 0;255;3;0;9;TSM:INIT 0;255;3;0;9;!TSM:RADIO:FAIL 0;255;3;0;9;!TSM:FAILURE 0;255;3;0;9;TSM:PDT
I first bought all my parts from China, but after I got this message I ordered some radios, with and without antenna, from Sweden but still no luck. I have one arduino Uno and W5100 ethernet shield.
Is there a possibility that my Uno or W5100 is the problem?
/Fredrik
-
RE: [SOLVED] MQTT Ethernet shield gateway
@Thomas-Augustinus - Thanks
It sounds like it's exactly as my gateway.
I'm going to work now but the first thing tomorrow morning I will check on mine and come back to you if it works or not.
I really appreciate all your help
//Fredrik
-
RE: [SOLVED] MQTT Ethernet shield gateway
@Thomas-Augustinus Thanks for your help.
What hardware are you using? It kind of feels like something i troubling with mine. As I said before, I have to do a lot of modifications to make my radio pass the "check". Can you please describe you build of your gateway?
Thanks
-
RE: [SOLVED] MQTT Ethernet shield gateway
Anyone got a clue what can be the issue here? Would love someone to Point me in the right direction so I can continue with all my planed builds.
-
RE: [SOLVED] MQTT Ethernet shield gateway
Ah, okey. Then it is 2.0.0
Still don't have a clue about that error. Feels like I've tried it all but nothing works. Tried different radios, with and without antenna.
Is there a chance that it is some problem with my arduino uno or my ethernetshield? Both of them comes from China.
I feel lika I don't want to buy new things just to try if it is the hardware.
-
[SOLVED] MQTT Ethernet shield gateway
Hi guys,
I just downloaded the library, 1.5, from the download page and uploaded the sketch W5100MQTTClient to my Arduino uno. Now, the problem is I couldn't get the radio working so I checked the forum and after a while I made som changes.
Enabled SoftSPI
Changed datarate to 1Mbps
Disabled SanitycheckNow I get this message when I boot my device.
0;255;3;0;9;Starting gateway (RNNGA-, 2.0.0) 0;255;3;0;9;TSM:INIT 0;255;3;0;9;TSM:RADIO:OK 0;255;3;0;9;TSM:GW MODE 0;255;3;0;9;TSM:READY IP: 192.168.254.202 0;255;3;0;9;No registration required 0;255;3;0;9;Init complete, id=0, parent=0, distance=0, registration=1 IP: 192.168.254.202 0;255;3;0;9;Attempting MQTT connection... 0;255;3;0;9;MQTT connected 0;255;3;0;9;TSP:MSG:READ 0-0-0 s=0,c=0,t=0,pt=0,l=0,sg=0: 0;255;3;0;9;!TSP:MSG:PVER mismatch 0;255;3;0;9;TSP:MSG:READ 0-0-0 s=0,c=0,t=0,pt=0,l=0,sg=0: 0;255;3;0;9;!TSP:MSG:PVER mismatch
I can't figure out what the problem is, anyone can help me?
-
Ethernet shield + NRF24L01 radio init fail and MQTT server disconnects every 10 second
Hi guys,
I know this issue has been talked about a lot but I can't get it to work. I have a Arduino Uno with Ethernet Shield on top and attached to that is my NRF24L01 with antenna. On my Radio I have soldered on a capacitor between VCC and GND and I also connected the wires like this,
GND to GND
VCC to 3,3V
CE to pin 5
CSN to pin 6
SCK to pin A0
MOSI to pin A1
MISO to pin A2When I upload my sketch, MySensors/GatewayW5100MQTTClient, to my arduino I removed the comment before #define MY_SOFTSPI on line 443 in my myConfig.h file.
All I get when I try to run my gateway is that my Radio Init Failed and I just cant figure out what is going on.
I also installed MQTT server on my Rasp Pi to communicate whit my openhab controller, It worked fine. But after the first reboot of my Rasp Pi the MQTT server disconnects and connects every 10 second. I think this is a weird behavior.
Anyone got a clue for me?
Thanks guys