Navigation

    • Register
    • Login
    • Search
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. P72endragon
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    P72endragon

    @P72endragon

    4
    Reputation
    9
    Posts
    2
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    P72endragon Follow

    Best posts made by P72endragon

    • RE: Delivery from PCBWay?

      Just to close the loop on this, I received them on 7th August (sorry, meant to post this sooner)

      posted in Hardware
      P72endragon
      P72endragon
    • RE: MySensors --> MQTT --> OpenHab 2.5

      That's great, thank you, I'll have a play and see how far I can get... (yeah, I've already been using MQTT Explorer to understand the message structure)

      posted in OpenHAB
      P72endragon
      P72endragon

    Latest posts made by P72endragon

    • RE: MySensors --> MQTT --> OpenHab 2.5

      Hi, sorry for the delay in replying, I got caught up on other things...

      I (think?) I'm using the MQTT2 binding in OH. In the PaperUI --> Add-ons --> Bindings, the only one showing as installed is "MQTT Binding (binding-mqtt - 2.5.4)".

      I'm running separate Docker containers for MySensors Gateway, Mosquitto and OpenHab.

      Since people seem to be using text files for configuration successfully, I'm going that route too (version control, scripted/automated builds, etc). These are the configuration files I've got so far (sanitised as appropriate):

      $ cat openhab/conf/things/mysensors.things
      Bridge mqtt:broker:Mosquitto "Mosquitto"
      [
          host="192.168.10.114",
          port="1883",
          secure=false,
          clientID="OpenHAB",
          username="mqtt_user",
          password="mqtt_password"
      ]
      {
          Thing topic nodePrototype1 "Prototype Node" @ "Portable" {
              Channels:
                  Type number : temp "Temperature" [ stateTopic="mysensors-out/1/0/1/0/0", unit="°C" ]
          }
      }
      
      $ cat openhab/conf/items/mysensors.items
      Number Prototype_Temp "Temperature" <temperature> {channel="mqtt:topic:Mosquitto:nodePrototype1:temp"}
      

      OH is successfully displaying the temperature in PaperUI, but I haven't tried to do anything with it yet...

      posted in OpenHAB
      P72endragon
      P72endragon
    • RE: Delivery from PCBWay?

      Just to close the loop on this, I received them on 7th August (sorry, meant to post this sooner)

      posted in Hardware
      P72endragon
      P72endragon
    • RE: Delivery from PCBWay?

      After emailing PCBWay (twice), they emailed me today with a tracking link. It shows as "in transit" (shipped 15th June and there have been a number of events), so I guess it's on it's way 🙂

      Thanks

      posted in Hardware
      P72endragon
      P72endragon
    • Delivery from PCBWay?

      I ordered some of the Easy/Newbie PCB for MySensors from PCBWay on 4th June. Apart from the order confirmation, I haven't heard anything since. This is the first time I've ordered from them - is this normal?

      posted in Hardware
      P72endragon
      P72endragon
    • RE: MySensors --> MQTT --> OpenHab 2.5

      @TRS-80 said in MySensors --> MQTT --> OpenHab 2.5:

      Not sure how you are making out @P72endragon

      I got as far as making my proof-of-concept work. I've put the software side of things on hold for the time being while I do some hardware work. Once I get back to the software, I'll take another look at the binding version.

      Thanks for the additional information 🙂

      posted in OpenHAB
      P72endragon
      P72endragon
    • RE: MySensors --> MQTT --> OpenHab 2.5

      That's great, thank you, I'll have a play and see how far I can get... (yeah, I've already been using MQTT Explorer to understand the message structure)

      posted in OpenHAB
      P72endragon
      P72endragon
    • RE: MySensors --> MQTT --> OpenHab 2.5

      Thank you for your comments, it sounds like it's worth trying to get the native OH MQTT working (I don't mind not having auto-discovery - I won't be adding things so regular, once I get it figured out I'm OK with adding things manually).

      I've managed to setup PaperUI sufficiently to get the temperature from my sensor to display on PaperUI's control screen (although I'm not sure I understand quite how it works yet, still a little unclear on Items, Channels, etc)

      @CrankyCoder : I don't suppose you'd mind sharing some snippets of your config files (or point me at some good examples) to get me started - maybe showing a broker and something like a temperature sensor?

      posted in OpenHAB
      P72endragon
      P72endragon
    • RE: MySensors --> MQTT --> OpenHab 2.5

      Hi TimO,

      To be honest, I don't really mind which way I do it (PaperUI/text files). I have noted warnings about not mixing both together though! ;). A lot of the examples and forum posts I've seen use text files, so I'm tempted to go that route

      I've been having a play with it and I seem to have got OpenHAB to auto-discover my temperature sensor (it's displaying it in the inbox) and in the OpenHab log I can see the temperature readings:

      22:13:38.837 [DEBUG] [protocol.mqtt.MySensorsMqttConnection] - Message topic part: 1/0/1/0/0
      22:13:38.843 [DEBUG] [protocol.mqtt.MySensorsMqttConnection] - Converted MQTT message to MySensors Serial format. Sending on to bridge: 1;0;1;0;0;16.1
      22:13:38.858 [DEBUG] [orsAbstractConnection$MySensorsReader] - Message from gateway received: 1;0;1;0;0;16.1
      22:13:38.863 [DEBUG] [ors.internal.gateway.MySensorsGateway] - Node 1 found in gateway
      22:13:38.867 [DEBUG] [ors.internal.gateway.MySensorsGateway] - Child 0 found in node 1
      22:13:38.872 [DEBUG] [sensors.handler.MySensorsThingHandler] - Updating channel: temp(V_TEMP) value to: 16.1
      22:13:38.880 [DEBUG] [sensors.handler.MySensorsThingHandler] - Setting last update for node/child 1/0 to 2020-04-28T22:13:38.000+0100
      

      I'm still trying to get my head around Things, Items and Channels to get OpenHab to actually display this information, so I don't think I'm far away.

      Having said that, like I say, I'm always tempted with text file configs...
      If I go that route, do you happen to have any links to point me in the right direction?
      Where do I set the static node ID's - do they need to go in the sketches for each sensor node, or just in the .things/.items files?
      I think I need to find a good example of how to write the .things/.items files etc...

      posted in OpenHAB
      P72endragon
      P72endragon
    • MySensors --> MQTT --> OpenHab 2.5

      I'm in the process of setting up my first install, so please bear with me, I'm strill trying to get my head around all this!

      I've got my first sensor node and an MQTT gateway, successfully publishing messages to Mosquitto. Now I need to setup OpenHAB to subscribe to those messages. From what I've read, I get the impression there are two options:

      • The MySensors binding
      • OpenHAB's built-in MQTT binding

      I gather there have been efforts to get the MySensors binding officially incorporated into OpenHAB, but it looks like this hasn't been completed yet, so it seems that the MySensors binding is a much more "manual" to set up.

      Would both options work? What are the advantages/disadvantages of choosing one method versus the other?

      Any thoughts/recommendations?

      posted in OpenHAB
      P72endragon
      P72endragon