Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
G

George Whitehouse

@George Whitehouse
About
Posts
26
Topics
6
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Relay connection with MQTT?
    G George Whitehouse

    @mbj Thanks, I will give the MQTT Client sketch a go soon.

    Cheers,

    OpenHAB

  • Relay connection with MQTT?
    G George Whitehouse

    Matt,

    No worries, this is what I am using. It plugs into a rule that energises the relay for 3 seconds and then turns off to open/close the garage door.

    Currently I am using the MQTT Broker sketch from main branch along with the standard relay sketch.

    Config file,

    mqtt:mysensors.url=tcp://192.168.0.50:1883
    mqtt:mysensors.clientId=openHAB
    

    Items file,

    Switch GD					"Garage Door"	{mqtt=">[mysensors:MyMQTT/23/1/V_LIGHT:command:ON:0],>[mysensors:MyMQTT/23/1/V_LIGHT:command:OFF:1]"}
    
    

    I will give the MQTT Client sketch a go again soon however last time I tried it, it locked up on me every day or so and I had to restart it. Reliability is important and for the last few weeks my set up has been working perfectly.

    Cheers,
    George

    OpenHAB

  • Relay connection with MQTT?
    G George Whitehouse

    Thanks, I reloaded the nano with the sketch and it is working ok.

    Regards
    George

    OpenHAB

  • Relay connection with MQTT?
    G George Whitehouse

    Gday,

    Does anyone have a relay node connected to openHab via the MQTT Broker gateway?

    Could you point me in the right direction with the code to send to turn it on/off.

    • My MQTT broker gateway is working, I have a couple of PIRs & a Distance node working.
    • openHab is working
    • Node ID is 52
    • Sketch is the current latest 1.5 versions for both relay node and gateway

    But I can't seem to understand what to send to turn the relay node on or off.

    I have this but it is not working,

    Switch TestGD				"Test GD"			{mqtt=">[mysensors:MyMQTT/52/1/V_LIGHT:command:ON:1],>[mysensors:MyMQTT/52/1/V_LIGHT:command:OFF:0]"}
    

    This is from the serial monitor,
    send: 52-52-0-0 s=255,c=3,t=15,pt=2,l=2,sg=0,st=ok:0
    send: 52-52-0-0 s=255,c=0,t=18,pt=0,l=5,sg=0,st=ok:1.5.4
    send: 52-52-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,st=ok:0
    read: 0-0-52 s=255,c=3,t=6,pt=0,l=1,sg=0:M
    repeater started, id=52, parent=0, distance=1
    send: 52-52-0-0 s=255,c=3,t=15,pt=2,l=2,sg=0,st=ok:0
    send: 52-52-0-0 s=255,c=0,t=17,pt=0,l=5,sg=0,st=ok:1.5.4
    send: 52-52-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,st=ok:0
    read: 0-0-52 s=255,c=3,t=6,pt=0,l=1,sg=0:M
    sensor started, id=52, parent=0, distance=1
    send: 52-52-0-0 s=255,c=3,t=11,pt=0,l=5,sg=0,st=ok:Relay
    send: 52-52-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,st=ok:1.0
    send: 52-52-0-0 s=1,c=0,t=3,pt=0,l=0,sg=0,st=ok:

    Regards,
    George

    OpenHAB

  • Relay connection with MQTT?
    G George Whitehouse

    @hek
    Thanks for that.
    I switched back to the MQTT Broker Gateway as the client gateway seemed to lock up every no and then.

    Could you let me know the command for the broker gateway?

    Thanks again

    Regards
    George

    OpenHAB

  • Relay connection with MQTT?
    G George Whitehouse

    Gday,

    I hope someone can help, I am trying to get a relay node working.

    Gateway: MQTT Broker Gateway
    Relay Node sketch is: 0_1456304097597_RelayActuator.ino

    The only thing I changed was a fixed Node ID of 52.

    Could someone let me know what is the correct MQTT message is to send to turn it on and off?

    Regards,
    George

    OpenHAB

  • Relay connection with MQTT?
    G George Whitehouse

    Greg,

    I have loaded the current 1.5 Latest Release sketch and just added a static Node ID.

    Regards
    George

    OpenHAB

  • Relay connection with MQTT?
    G George Whitehouse

    Gday,

    I have been trying to connect to a new relay node via openhab.

    The relay node is set to Node 52 and seems to be connected to the gateway ok. (MQTT Client gateway)
    0_1456103563035_MQQTlensgrab.JPG

    I have a Switch item,

    Switch TestGD				"Test GD"		{mqtt=">[mosquitto:mygateway1-in/52/255/3/0/6:command:ON:1],>[mosquitto:mygateway1-in/52/255/3/0/6:command:OFF:0]"} 
    

    When I hit the switch in openHab it does send the MQTT message,

    0_1456103900175_MQQTlensgrab1.JPG

    The relay does not switch on or off from the MQTT message.

    Could someone point me in the right direction?

    Regards,
    George

    OpenHAB

  • How to assign static node ID?
    G George Whitehouse

    @sundberg84 Fantastic thanks for that it worked perfectly.

    Cheers,
    George

    Development

  • How to assign static node ID?
    G George Whitehouse

    I am looking at the development version of the MotionSensor sketch and can not seem to find a gw.begin

    Regards,
    George

    Development

  • How to assign static node ID?
    G George Whitehouse

    Ok thanks for that.

    Where should I put that code in the sketch?

    Cheers,

    Development

  • How to assign static node ID?
    G George Whitehouse

    Gday,

    I have the MQTT Client gateway running and the existing nodes are ok however a new motion sensor node I just built does not seem to be working.

    Could someone let me know how you set a static node ID.

    Regards,
    George

    Development

  • MQTT Client Gateway with Uno?
    G George Whitehouse

    Fantastic thanks for the tips and direction.

    While it may not look look like much... It works!
    0_1455787316215_FullSizeRender.jpg

    And after a quick update to the openHAB items file they update just the same as the MQTT broker gateway.

    Now time to build it into a nice plastic box and figure out how to send it data for a relay.

    Thanks again.

    Cheers,
    George

    OpenHAB

  • MQTT Client Gateway with Uno?
    G George Whitehouse

    Great thanks for the pointers.

    Samuel, it would be great to double check your pin outs.

    Thanks again.
    Cheers,

    OpenHAB

  • MQTT Client Gateway with Uno?
    G George Whitehouse

    Great thanks for that guys.

    I have got the MQTT gateway working well, it was dropping out every two minutes in openHAB however I noticed that only occurred when I had MQTTlens connected. So solved that small problem.

    I am keen to give the MQTT Client gateway a go. I just wanted to double check the wiring connections.

    So basically just wire it up as per the Ethernet gateway and load the dev MQTT Client sketch on?

    Regards,
    George

    OpenHAB

  • MQTT Client Gateway with Uno?
    G George Whitehouse

    Gday,

    I am going to have a go at the MQTT Client gateway. Does it only work with the esp8266? The sketch seems to point to the esp8266.

    I would like to use a Arduino UNO? (only because I have one here)
    How would this be wired up?

    Could someone point me in the right direction.

    Cheers,

    OpenHAB

  • MQTT gateway works great but drops the connection every 2 mins?
    G George Whitehouse

    @DerPest great thanks for that.

    Yes I will give the MQTT client gateway a try tomorrow.

    Thanks.

    Regards,
    George

    OpenHAB

  • Help with MQTT gateway
    G George Whitehouse

    @gregl thanks for that I will give the MQTT client gateway a try.

    Yes it makes sense now why I can't see the MQTT gateway in the router, quite new to this so it a bit of a learning curve.

    Thanks again.

    Regards,
    George

    Troubleshooting

  • MQTT gateway works great but drops the connection every 2 mins?
    G George Whitehouse

    @Yveaux Thanks for you help. I was just looking around and saw this article.

    I just cant seem to find any setting in openHAB that can be adjusted for testing.

    Does anyone else run the MQTT gateway with openHAB 1.x have any drop outs?

    Cheers,
    George

    OpenHAB

  • MQTT gateway works great but drops the connection every 2 mins?
    G George Whitehouse

    @Yveaux said:

    cting to Mosquitto passes a keep-alive time during the connec

    That sounds like it could be the problem, do you happen to know where that setting might be? I had a look in the config file but there does not seem to be a mention there.

    Regards,
    George

    OpenHAB
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular