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
  1. Home
  2. Development
  3. Can a Node Send json?

Can a Node Send json?

Scheduled Pinned Locked Moved Development
7 Posts 4 Posters 2.0k Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • dpcrD Offline
    dpcrD Offline
    dpcr
    wrote on last edited by dpcr
    #1

    Please forgive my ignorance but I have searched and searched and not found what I was looking for. Please help.

    I am making an RFID garage door opener (another) using the MIFARE Classic tags and a MySensors Node. It differs in that I am using the tags to store the tag holder name and encryption keys A & B (I know the generic MIFARE classic encryption has been hacked). What I am trying to do is send the card holders name, time scanned, time access granted or denied to Domoticz. I initially tried a text sensor (V_TEXT) but it only held 16 characters. However using json I can enter up to 40 easily. I can't use the Domoticz logs because from what I have found they only hold their log for several days at the max. I would rather have a dedicated log just for the garage door RFID system.

    My question is, is there a way to send a json command through the mysensors network to my Ethernet gateway then onto Domoticz which is on a Pi on the same network.

    Here is a the json format that Domoticz accepts:

    http://"Domoticz_IP":8080/json.htm?type=command&param=udevice&idx="IDX_of_TextSensor"&nvalue=0&svalue=Hello World
    
    A 1 Reply Last reply
    0
    • gohanG Offline
      gohanG Offline
      gohan
      Mod
      wrote on last edited by
      #2

      I don't think it will be possible, because it is the gateway that handles the communication with the controller. Have you tried with V_CUSTOM type?

      dpcrD 1 Reply Last reply
      0
      • gohanG gohan

        I don't think it will be possible, because it is the gateway that handles the communication with the controller. Have you tried with V_CUSTOM type?

        dpcrD Offline
        dpcrD Offline
        dpcr
        wrote on last edited by
        #3

        @gohan No I haven't, I'll give it a try. Thanks.

        gohanG 1 Reply Last reply
        0
        • dpcrD dpcr

          @gohan No I haven't, I'll give it a try. Thanks.

          gohanG Offline
          gohanG Offline
          gohan
          Mod
          wrote on last edited by
          #4

          @dpcr Remember the API page, you have plenty to play with :D
          https://www.mysensors.org/download/serial_api_20#variable-types

          1 Reply Last reply
          0
          • K Offline
            K Offline
            kontrollable
            wrote on last edited by
            #5

            The maximum payload size is 25 bytes!
            So there are some limitations.

            1 Reply Last reply
            0
            • dpcrD dpcr

              Please forgive my ignorance but I have searched and searched and not found what I was looking for. Please help.

              I am making an RFID garage door opener (another) using the MIFARE Classic tags and a MySensors Node. It differs in that I am using the tags to store the tag holder name and encryption keys A & B (I know the generic MIFARE classic encryption has been hacked). What I am trying to do is send the card holders name, time scanned, time access granted or denied to Domoticz. I initially tried a text sensor (V_TEXT) but it only held 16 characters. However using json I can enter up to 40 easily. I can't use the Domoticz logs because from what I have found they only hold their log for several days at the max. I would rather have a dedicated log just for the garage door RFID system.

              My question is, is there a way to send a json command through the mysensors network to my Ethernet gateway then onto Domoticz which is on a Pi on the same network.

              Here is a the json format that Domoticz accepts:

              http://"Domoticz_IP":8080/json.htm?type=command&param=udevice&idx="IDX_of_TextSensor"&nvalue=0&svalue=Hello World
              
              A Offline
              A Offline
              AWI
              Hero Member
              wrote on last edited by
              #6

              @dpcr You cannot ignore the character limit in MySensors by using a different V_ type. You either have to split the information in pieces that can be handled or have the controller do the handling for you.
              Also Domoticz uses the S_CUSTOM type in a very specific way.

              scripting in Domoticz is easy in Lua. What I would suggest is to build your tag 'database' in Domoticz (eg. a sensor for each tag) and handle logging from LUA.

              dpcrD 1 Reply Last reply
              0
              • A AWI

                @dpcr You cannot ignore the character limit in MySensors by using a different V_ type. You either have to split the information in pieces that can be handled or have the controller do the handling for you.
                Also Domoticz uses the S_CUSTOM type in a very specific way.

                scripting in Domoticz is easy in Lua. What I would suggest is to build your tag 'database' in Domoticz (eg. a sensor for each tag) and handle logging from LUA.

                dpcrD Offline
                dpcrD Offline
                dpcr
                wrote on last edited by
                #7

                @AWI Thanks for all your information, it gives me some direction. So from what I have read it sounds like MySensors can't send a json command to Domoticz.

                1 Reply Last reply
                0

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                14

                Online

                12.0k

                Users

                11.2k

                Topics

                113.4k

                Posts


                Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                • Login

                • Don't have an account? Register

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