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. Controllers
  3. Home Assistant
  4. mysensors.json file structure

mysensors.json file structure

Scheduled Pinned Locked Moved Home Assistant
18 Posts 7 Posters 4.8k Views 8 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.
  • Richard van der PlasR Offline
    Richard van der PlasR Offline
    Richard van der Plas
    wrote on last edited by Richard van der Plas
    #9

    @maghac problem is my limited editor / shell on chrome os makes it a tediuos job on selecting the line :(
    can you paste the formatted data back to the file? (with enters etc?). i thought the first round mysensors edits the file its a flat file again ?.

    1 Reply Last reply
    0
    • martinhjelmareM Offline
      martinhjelmareM Offline
      martinhjelmare
      Plugin Developer
      wrote on last edited by martinhjelmare
      #10

      I use atom editor where there's a plugin that can automatically format the json prettily. But we can add formatting to the dump, I don't see anything hindering that.

      I'll happily except a PR that adds indentation to the json dump. Otherwise I can do it when I find some time.

      M 1 Reply Last reply
      1
      • archiijsA Offline
        archiijsA Offline
        archiijs
        wrote on last edited by archiijs
        #11

        Hi all.
        @maghac Can you please share what plugin do You use? I already use np++ but have not thought of that, thanks.

        @martinhjelmare Can atom editor can connect to my home assistant files through ssh without using samba shares as np++ can with plugins? If so, I should check that.

        Otherwise, no worries about rushing this implementation and thanks for your work.

        martinhjelmareM maghacM 2 Replies Last reply
        0
        • archiijsA archiijs

          Hi all.
          @maghac Can you please share what plugin do You use? I already use np++ but have not thought of that, thanks.

          @martinhjelmare Can atom editor can connect to my home assistant files through ssh without using samba shares as np++ can with plugins? If so, I should check that.

          Otherwise, no worries about rushing this implementation and thanks for your work.

          martinhjelmareM Offline
          martinhjelmareM Offline
          martinhjelmare
          Plugin Developer
          wrote on last edited by
          #12

          @archiijs

          I don't think atom can connect via ssh.

          1 Reply Last reply
          0
          • archiijsA Offline
            archiijsA Offline
            archiijs
            wrote on last edited by
            #13

            Sorry, I meant to say ftp/sftp... Its early morning for me :confused:
            I will definitely check atom after work, seems to be an answer to a lot of my problems, thanks for mentioning it.

            1 Reply Last reply
            0
            • martinhjelmareM Offline
              martinhjelmareM Offline
              martinhjelmare
              Plugin Developer
              wrote on last edited by
              #14

              I think this plugin does what you want:
              https://atom.io/packages/remote-ftp

              1 Reply Last reply
              1
              • archiijsA Offline
                archiijsA Offline
                archiijs
                wrote on last edited by
                #15

                Thanks for your help, could not wait and already downloaded portabble verssion on my work pc to test this thing out, seems to work as expected, thanks again for your recomendation.
                0_1510905202811_atom.PNG

                1 Reply Last reply
                1
                • maghacM maghac

                  @sindrome73 It's not used unless you use Home Assistant as a controller for mysensors.

                  @Richard-van-der-Plas It's a JSON file, so you can use any editor that understands json to edit it. No need to use nano or vi.

                  I personally use notepad++ to remote edit files on my server, it has a nice json plugin to pretty print json files. You could also use an online editor, e.g https://jsonformatter.org/ or something.

                  IrisPanabakerI Offline
                  IrisPanabakerI Offline
                  IrisPanabaker
                  wrote on last edited by
                  #16

                  @maghac I loved https://jsonformatter.org and also uses https://codebeautify.org/jsonviewer

                  1 Reply Last reply
                  0
                  • archiijsA archiijs

                    Hi all.
                    @maghac Can you please share what plugin do You use? I already use np++ but have not thought of that, thanks.

                    @martinhjelmare Can atom editor can connect to my home assistant files through ssh without using samba shares as np++ can with plugins? If so, I should check that.

                    Otherwise, no worries about rushing this implementation and thanks for your work.

                    maghacM Offline
                    maghacM Offline
                    maghac
                    wrote on last edited by
                    #17

                    @archiijs I use the NppFTP plugin, it supports both ftp and sftp.

                    1 Reply Last reply
                    0
                    • martinhjelmareM martinhjelmare

                      I use atom editor where there's a plugin that can automatically format the json prettily. But we can add formatting to the dump, I don't see anything hindering that.

                      I'll happily except a PR that adds indentation to the json dump. Otherwise I can do it when I find some time.

                      M Offline
                      M Offline
                      mirodin
                      wrote on last edited by
                      #18

                      I made a pull request over on github, if @martinhjelmare accepts it we should be good to go.

                      1 Reply Last reply
                      2
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      18

                      Online

                      11.7k

                      Users

                      11.2k

                      Topics

                      113.1k

                      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