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. General Discussion
  3. Question on Mysensors Network with Protected Domoticz Device

Question on Mysensors Network with Protected Domoticz Device

Scheduled Pinned Locked Moved General Discussion
12 Posts 4 Posters 1.8k 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.
  • alowhumA Offline
    alowhumA Offline
    alowhum
    Plugin Developer
    wrote on last edited by
    #2

    What do you mean with 'projected device'. In Domoticz' interface? Or do you mean encryption/signing?

    sghazaghS 1 Reply Last reply
    0
    • AnticimexA Offline
      AnticimexA Offline
      Anticimex
      Contest Winner
      wrote on last edited by
      #3

      If you mean signing and/or encryption, it is supported for all controllers as it is independent of the controller. However, some controllers (like domoticz) may have an ack timeout that fires before it is received when signing is used. Some year ago, domoticz made that timeout configurable so it should not be a problem anymore.

      Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

      sghazaghS 1 Reply Last reply
      0
      • alowhumA alowhum

        What do you mean with 'projected device'. In Domoticz' interface? Or do you mean encryption/signing?

        sghazaghS Offline
        sghazaghS Offline
        sghazagh
        wrote on last edited by sghazagh
        #4

        @alowhum PROTECTED device a Switch in Domoticz that only can operate if you use a right pass code.

        1 Reply Last reply
        0
        • AnticimexA Anticimex

          If you mean signing and/or encryption, it is supported for all controllers as it is independent of the controller. However, some controllers (like domoticz) may have an ack timeout that fires before it is received when signing is used. Some year ago, domoticz made that timeout configurable so it should not be a problem anymore.

          sghazaghS Offline
          sghazaghS Offline
          sghazagh
          wrote on last edited by
          #5

          @anticimex Perhaps I should explain more...

          As you guys know, in Domoticz you can protect a device and set the passcode in setting and use that for devices (Lights, Switches...) to operate if you only provide a correct passcode:
          0_1537421491898_1.png

          If you use Domoticz API to turn the light On or Off, and device is protected, you need to pass a extra parameter in your HTTP request and send the pass code to be able to operate that protected light or switch:
          Something like this:

          /json.htm?type=command&param=switchlight&idx=99&switchcmd=Off&passcode=YOUR_SWITCH_PASSWORD_AS_SET_IN_SETTINGS
          

          Now my question is: how we should send the message from Mysensors device/sensor to Domoticz controller to turn it On or Off if the switch/light is protected?

          AnticimexA 1 Reply Last reply
          0
          • sghazaghS sghazagh

            @anticimex Perhaps I should explain more...

            As you guys know, in Domoticz you can protect a device and set the passcode in setting and use that for devices (Lights, Switches...) to operate if you only provide a correct passcode:
            0_1537421491898_1.png

            If you use Domoticz API to turn the light On or Off, and device is protected, you need to pass a extra parameter in your HTTP request and send the pass code to be able to operate that protected light or switch:
            Something like this:

            /json.htm?type=command&param=switchlight&idx=99&switchcmd=Off&passcode=YOUR_SWITCH_PASSWORD_AS_SET_IN_SETTINGS
            

            Now my question is: how we should send the message from Mysensors device/sensor to Domoticz controller to turn it On or Off if the switch/light is protected?

            AnticimexA Offline
            AnticimexA Offline
            Anticimex
            Contest Winner
            wrote on last edited by
            #6

            @sghazagh ok, that I do not know since the MySensors security is independent (and will remain so) from the controller(s).

            Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

            sghazaghS 1 Reply Last reply
            0
            • AnticimexA Anticimex

              @sghazagh ok, that I do not know since the MySensors security is independent (and will remain so) from the controller(s).

              sghazaghS Offline
              sghazaghS Offline
              sghazagh
              wrote on last edited by
              #7

              @anticimex At the moment, I have a workaround and doing the logic through the LUA script.
              In LUA, I can send the request to the switch with passcode as I explained above.

              That works fine but that would be great if Mysensor can have an option to send the message directly to controller for particular IDX (like what it does now) plus an option to pass the passcode to controller for protected devices.

              Perhaps, if it's not in the features, that would be good to have it in future releases....

              AnticimexA 1 Reply Last reply
              0
              • sghazaghS sghazagh

                @anticimex At the moment, I have a workaround and doing the logic through the LUA script.
                In LUA, I can send the request to the switch with passcode as I explained above.

                That works fine but that would be great if Mysensor can have an option to send the message directly to controller for particular IDX (like what it does now) plus an option to pass the passcode to controller for protected devices.

                Perhaps, if it's not in the features, that would be good to have it in future releases....

                AnticimexA Offline
                AnticimexA Offline
                Anticimex
                Contest Winner
                wrote on last edited by
                #8

                @sghazagh personally, I think it is a really bad idea to code controller specific logic into the MySensors library.
                If MySensors specific things are needed for a specific controller, the changes should be done in the MySensors plugin for that controller. So I think this is a question for the MySensors part of the domoticz forum.

                Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

                bjacobseB 1 Reply Last reply
                1
                • sghazaghS Offline
                  sghazaghS Offline
                  sghazagh
                  wrote on last edited by
                  #9

                  :o silly me :D
                  It seems that it even doesn't care the device is protected or not! it just could change the status of the device even if it is protected...

                  bjacobseB 1 Reply Last reply
                  0
                  • AnticimexA Anticimex

                    @sghazagh personally, I think it is a really bad idea to code controller specific logic into the MySensors library.
                    If MySensors specific things are needed for a specific controller, the changes should be done in the MySensors plugin for that controller. So I think this is a question for the MySensors part of the domoticz forum.

                    bjacobseB Offline
                    bjacobseB Offline
                    bjacobse
                    wrote on last edited by
                    #10

                    @anticimex said in Question on Mysensors Network with Protected Domoticz Device:

                    @sghazagh personally, I think it is a really bad idea to code controller specific logic into the MySensors library.
                    If MySensors specific things are needed for a specific controller, the changes should be done in the MySensors plugin for that controller. So I think this is a question for the MySensors part of the domoticz forum.

                    I agree there should not be controller depend stuff in the mysensors

                    1 Reply Last reply
                    0
                    • sghazaghS sghazagh

                      :o silly me :D
                      It seems that it even doesn't care the device is protected or not! it just could change the status of the device even if it is protected...

                      bjacobseB Offline
                      bjacobseB Offline
                      bjacobse
                      wrote on last edited by
                      #11

                      @sghazagh said in Question on Mysensors Network with Protected Domoticz Device:

                      :o silly me :D
                      It seems that it even doesn't care the device is protected or not! it just could change the status of the device even if it is protected...

                      What do you mean, you have writte in your LUA script that you also provide the password?!?

                      Light/Switch Protection

                      If you want that an On/Off device be "protected", you can create a password that will be required by the system before executing commands, provided that you have ticked the "protected" box during the device editing phase.
                      From here: https://www.domoticz.com/wiki/Application_Settings

                      sghazaghS 1 Reply Last reply
                      0
                      • bjacobseB bjacobse

                        @sghazagh said in Question on Mysensors Network with Protected Domoticz Device:

                        :o silly me :D
                        It seems that it even doesn't care the device is protected or not! it just could change the status of the device even if it is protected...

                        What do you mean, you have writte in your LUA script that you also provide the password?!?

                        Light/Switch Protection

                        If you want that an On/Off device be "protected", you can create a password that will be required by the system before executing commands, provided that you have ticked the "protected" box during the device editing phase.
                        From here: https://www.domoticz.com/wiki/Application_Settings

                        sghazaghS Offline
                        sghazaghS Offline
                        sghazagh
                        wrote on last edited by
                        #12

                        @bjacobse Yes, you are absolutely right, and that password only is required when you trig the device inside controller.
                        I mean, if you click the icon in controller for that device and device is protected, it asks for password.
                        And if you also use HTTP API, you need to provide password as well.

                        So if you want to trig the device from other Mysensor node (my case), it does not know about the protection and you can directly send the message to trig the device on or off.

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


                        15

                        Online

                        11.7k

                        Users

                        11.2k

                        Topics

                        113.0k

                        Posts


                        Copyright 2019 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