Navigation

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

    zuolan

    @zuolan

    0
    Reputation
    14
    Posts
    433
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    zuolan Follow

    Best posts made by zuolan

    This user hasn't posted anything yet.

    Latest posts made by zuolan

    • RE: 💬 RFID Lock Sensor

      @hek
      Thanks for quick reply. Is your example Mifare One S51 readonly?

      posted in Announcements
      zuolan
      zuolan
    • RE: 💬 RFID Lock Sensor

      Hi Hek,
      Thanks for sharing. It looks like a useful addition to my openhab system.
      Can you tell me if it is possible to WRITE to the cards and tags? Some of them are being sold as 'white' cards. I am worried I have to program the tags myself.

      posted in Announcements
      zuolan
      zuolan
    • RE: My final setup to get MySensors and OpenHab communicating via MQTT

      Thanks.

      I now try to get MQTT to talk to openhab by following the RelayActuator example. I only have the openhab demo running.

      I am not sure I have enough information in the above instruction to comple the mqtt.items file. For the following MQTT topics setup of mine,

      0_1472974737805_upload-cf617565-c688-456b-b996-24ef8efdf40b

      I will try the following for the first line:
      String Garage_Door "Garage Door [%s]" (gGarage, Windows) {mqtt="<[broker:mygateway1-out/102/1/1/0/2:state:MAP(1closed0open.map)]"}

      For the second line I am really stuck about how the do the "/2/2/0/0/2/"part:
      Switch MQTTTestSwitch "MQTT Test Switch" (gBasement) {mqtt=">[broker:mygateway1-in/2/2/0/0/2:command:ON:1],>[broker:mygateway1-in/2/2/0/0/2:command:OFF:0]"}

      How should one figure out?
      OK. To answer my own question the information is clearly here:
      https://www.mysensors.org/download/serial_api_20#sensor-types

      I will be reading up.

      posted in OpenHAB
      zuolan
      zuolan
    • RE: My final setup to get MySensors and OpenHab communicating via MQTT

      On the topic of editing header files, I found (maybe this is obvious for other people) many including the #define MY_SOFTSPI should be done in the sketch (before the corresponding header file is included?). In this way you don't have to worry about changing it back or conflict.
      0_1472869645982_upload-baa7801e-73be-4043-939f-26d87b164866

      posted in OpenHAB
      zuolan
      zuolan
    • RE: My final setup to get MySensors and OpenHab communicating via MQTT

      @Martin-Tellblom
      Your advice of changing the MY_NODE_ID made the difference. I foolishly left it in the MyConfig.h file so it is conflicting with the gateway.

      0_1472868188693_upload-d04ad5d6-6464-4ea1-a04b-7041c0c69d11
      So on mqttspy I now get this!!!!!!!!!!!!!!!!!!!!!!!!!!!
      0_1472868619367_upload-c2f43e88-cef2-4e4d-ab66-4630557a3035

      Thanks so much for helping me.

      posted in OpenHAB
      zuolan
      zuolan
    • RE: My final setup to get MySensors and OpenHab communicating via MQTT

      @Martin-Tellblom

      I actually have the problem below solved. Since I already finished writing, so I am leaving this here for other people.

      More information on this.

      Although the Light Sensor data is not getting through, the Light Sensor node does cause all these MQTT messages to be sent.

      Before I turn on the Light Sensor node, there is no MQTT message on the mqttspy and on the GatewayW5100MQTTClient COM port it is very quiet and I got this:
      0_1472865801909_upload-09c39b2c-b30d-4e72-ad66-cfebf0e577f9

      After I turn on the Light Sensor node the MQTT messages started comming and on the GatewayW5100MQTTClient COM port:

      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.1.108
      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.1.108
      0;255;3;0;9;Attempting MQTT connection...
      0;255;3;0;9;MQTT connected
      0;255;3;0;9;TSP:SANCHK:OK
      0;255;3;0;9;TSP:SANCHK:OK
      0;255;3;0;9;TSP:SANCHK:OK
      0;255;3;0;9;TSP:SANCHK:OK

      <<Light Sensor Turned on>>

      0;255;3;0;9;TSP:MSG:READ 255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
      0;255;3;0;9;TSP:MSG:BC
      0;255;3;0;9;TSP:MSG:FPAR REQ (sender=255)
      0;255;3;0;9;TSP:CHKUPL:OK
      0;255;3;0;9;TSP:MSG:GWL OK
      0;255;3;0;9;TSP:MSG:SEND 0-0-255-255 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=bc:0
      0;255;3;0;9;TSP:MSG:READ 255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
      0;255;3;0;9;TSP:MSG:BC
      0;255;3;0;9;TSP:MSG:FPAR REQ (sender=255)
      0;255;3;0;9;TSP:CHKUPL:OK (FLDCTRL)
      0;255;3;0;9;TSP:MSG:GWL OK
      0;255;3;0;9;TSP:MSG:SEND 0-0-255-255 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=bc:0
      0;255;3;0;9;TSP:MSG:READ 255-255-0 s=255,c=3,t=3,pt=0,l=0,sg=0:
      0;255;3;0;9;Sending message on topic: mygateway1-out/255/255/3/0/3
      0;255;3;0;9;TSP:MSG:READ 255-255-0 s=255,c=3,t=3,pt=0,l=0,sg=0:
      0;255;3;0;9;Sending message on topic: mygateway1-out/255/255/3/0/3
      0;255;3;0;9;TSP:MSG:READ 255-255-0 s=255,c=3,t=3,pt=0,l=0,sg=0:
      0;255;3;0;9;Sending message on topic: mygateway1-out/255/255/3/0/3
      0;255;3;0;9;TSP:MSG:READ 255-255-0 s=255,c=3,t=3,pt=0,l=0,sg=0:
      0;255;3;0;9;Sending message on topic: mygateway1-out/255/255/3/0/3
      0;255;3;0;9;TSP:MSG:READ 255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
      0;255;3;0;9;TSP:MSG:BC
      0;255;3;0;9;TSP:MSG:FPAR REQ (sender=255)
      0;255;3;0;9;TSP:CHKUPL:OK
      0;255;3;0;9;TSP:MSG:GWL OK
      0;255;3;0;9;TSP:MSG:SEND 0-0-255-255 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=bc:0
      0;255;3;0;9;TSP:MSG:READ 255-255-0 s=255,c=3,t=3,pt=0,l=0,sg=0:
      0;255;3;0;9;Sending message on topic: mygateway1-out/255/255/3/0/3
      0;255;3;0;9;TSP:MSG:READ 255-255-0 s=255,c=3,t=3,pt=0,l=0,sg=0:
      0;255;3;0;9;Sending message on topic: mygateway1-out/255/255/3/0/3
      0;255;3;0;9;TSP:MSG:READ 255-255-0 s=255,c=3,t=3,pt=0,l=0,sg=0:
      0;255;3;0;9;Sending message on topic: mygateway1-out/255/255/3/0/3
      0;255;3;0;9;TSP:MSG:READ 255-255-0 s=255,c=3,t=3,pt=0,l=0,sg=0:
      .......

      So question is why the messages from Light Sensor do not get through (or I am still not capturing them) while causing messages being sent on mygateway1-out/255/255/3/0/3?

      See next post.

      posted in OpenHAB
      zuolan
      zuolan
    • RE: My final setup to get MySensors and OpenHab communicating via MQTT

      @Martin-Tellblom
      Thanks again.

      I installed mqttspy and changed #define MY_NODE_ID 100.

      I subscribe to the following topics:
      mygateway1-in
      /#

      I'm still not getting any messages in mygateway1-in.
      Especially not this one: "MySensors/100/255/3/0/6 Light Sensor" that you are getting.
      All the messages I can see still in mygateway1-out/255/255/3/0/3 topic.
      So I think data from my Light Sensor node is not getting through.

      Your thoughts? And how to debug this?

      On the COM port of the Light Sensor I got below. Do you see any indication showing it is sending data to mqtt? What about the !TSM:FALILURE?

      !TSM:CHKID:FAIL (ID=255)
      !TSM:FAILURE

      TSM:PDT
      TSM:INIT
      TSM:RADIO:OK
      TSM:FPAR
      TSP:MSG:SEND 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
      TSP:MSG:READ 0-0-255 s=255,c=3,t=8,pt=1,l=1,sg=0:0
      TSP:MSG:FPAR RES (ID=0, dist=0)
      TSP:MSG:PAR OK (ID=0, dist=1)
      TSM:FPAR:OK
      TSM:ID
      TSP:MSG:SEND 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=ok:
      TSM:ID
      TSP:MSG:SEND 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=ok:
      TSM:ID
      TSP:MSG:SEND 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=ok:
      TSM:ID
      TSP:MSG:SEND 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=ok:
      !TSM:CHKID:FAIL (ID=255)
      !TSM:FAILURE
      TSM:PDT
      TSM:INIT
      TSM:RADIO:OK
      TSM:FPAR

      posted in OpenHAB
      zuolan
      zuolan
    • RE: My final setup to get MySensors and OpenHab communicating via MQTT

      @Martin-Tellblom
      OK. I am not getting any from 'mygateway1-in/#'. Let me check.

      Just to be clear, in the above sketch

      sendSketchInfo("Light Sensor", "1.0",true);

      send(msg.set(lightLevel));

      should have caused messages in 'mygateway1-in/#'?

      Thanks,

      posted in OpenHAB
      zuolan
      zuolan
    • RE: My final setup to get MySensors and OpenHab communicating via MQTT

      @Martin-Tellblom
      OK. I will. Can you post an example of messages you are getting so I have a rough idea?

      Many thanks.

      posted in OpenHAB
      zuolan
      zuolan