Announcement

Collapse
No announcement yet.

Problem to send command to multiple devices [hs3]

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Problem to send command to multiple devices [hs3]

    Attached Files
    Please excuse any spelling and grammatical errors I may make.
    --
    Tasker Plugin / Speech Droid
    Tonlof | Sweden

    #2
    It looks like you have some kind of PlcBus collision problem, because the HS3 plugin is sending commands to switch off all your lights, but at the same time receives the same commands (B5 and B6 off) from something else.

    However, why don't you program a single PlcBus scene to switch all your devices off with a single PlcBus command ?
    --
    stipus

    Comment


      #3
      You have a 3-phase PlcBus setup with a phase coupler ?
      --
      stipus

      Comment


        #4
        Okey, thanks Stipus.

        I have to take a look how to program scenes. I did it for many years ago but don't remember how I did.
        Please excuse any spelling and grammatical errors I may make.
        --
        Tasker Plugin / Speech Droid
        Tonlof | Sweden

        Comment


          #5
          Ahh, I remeber wrong that I had to press learnbuttons etc but this was really easy with your plugin. I have now made made some test scenes

          Yes I have 3-phase...
          Please excuse any spelling and grammatical errors I may make.
          --
          Tasker Plugin / Speech Droid
          Tonlof | Sweden

          Comment


            #6
            --
            stipus

            Comment


              #7
              I can see there is a plugin crash if you try to send a command such as OFF to a PlcBus lamp device with no house code / device code set.

              That is why the process stopped.

              I'll fix this for next plugin version.

              Thank you for your report !
              --
              stipus

              Comment


                #8
                I fixed the problem.
                In the next version, the plugin will print an error message to the event log for a similar problem.

                From your log, I think the plugin should - in 3-phase mode - ignore all the echoes with the 3-phase bit not set.

                Can I ask you for more logs to better debug the 3-phase mode ?

                - Log of a device switch on on the same phase as the 1141
                - Log of a device switch on on another phase than the 1141

                - Log of a device poll on the same phase as the 1141
                - Log of a device poll on another phase than the 1141

                - Log of a house-code wide poll with devices on both phases

                Thanks,

                stipus
                --
                stipus

                Comment


                  #9
                  On command + Poll on same phase.
                  On command + Poll on other phase.
                  Please excuse any spelling and grammatical errors I may make.
                  --
                  Tasker Plugin / Speech Droid
                  Tonlof | Sweden

                  Comment


                    #10
                    Hello, and thank you for the logs.

                    When you POLL a module on the same phase, do you always get the too long wait for Ack response to command and "Unknown" module status ?


                    To " Log a house-code wide poll with devices on both phases":

                    If you have a letter code, such as H with modules on both phase (H1 on phase 1, H2 on phase 2),

                    - Create a HomeSeer PlcBus House device, with House Code H
                    - On the PlcBus House device, there is a POLL button that sends a Fast Poll command to all H devices. That's the log I need.

                    Regards,

                    stipus
                    --
                    stipus

                    Comment


                      #11
                      Hi, Yes I have "too long wait for Ack" in many request.
                      Here is the log with 2 phases.
                      Mar-26 18:19:49 PLCBUS Debug Received: (255) H1 ReportAllIdPulse3Phase Data1:0 Data2:15 Tx:False AckReq:False Ack:False IDreq:False Id:False 3PhReq:False RiscOK:True PlcBusOK:True
                      Mar-26 18:19:48 PLCBUS Debug Sent: (255) H1 GetOnlyOnIdPulse Data1:0 Data2:0 Tx:True AckReq:False Ack:False IDreq:True Id:False 3PhReq:True RiscOK:True PlcBusOK:True
                      Mar-26 18:19:48 PLCBUS Debug Sending: (255) H1 GetOnlyOnIdPulse Data1:0 Data2:0 Tx:False AckReq:False Ack:False IDreq:True Id:False 3PhReq:True RiscOK:False PlcBusOK:False
                      Mar-26 18:19:48 PLCBUS Debug SetIO[] name=[Poll] address=[255-H] type=[PlcBus House] controlValue=[303]
                      Mar-26 18:19:48 Device Control Device: Unknown Unknown Poll to Poll (303) by/from: CAPI Control Handler

                      H1 Signal Strength = 12 Device 1
                      H2 Signal Strength = 14 Device 1
                      H3 Signal Strength = 10 Device 2
                      H4 Signal Strength = 5 Device 2


                      Thanks
                      Please excuse any spelling and grammatical errors I may make.
                      --
                      Tasker Plugin / Speech Droid
                      Tonlof | Sweden

                      Comment


                        #12
                        Thank you.

                        I can see 3-Phase-House-Code-Wide-Fast-Polling is broken in the version you have. This will be fixed in the next version.

                        You said:
                        Yes I have "too long wait for Ack" in many request.

                        When you POLL B6, do you always get the Ack error, or sometimes you get the Ack ?

                        Did you try to reverse the polarity on B6 if it's a plugin module ?
                        --
                        stipus

                        Comment


                          #13
                          Originally posted by stipus View Post
                          Thank you.
                          When you POLL B6, do you always get the Ack error, or sometimes you get the Ack ?

                          Did you try to reverse the polarity on B6 if it's a plugin module ?
                          I found this is a bug in the plugin for 3-phase mode:

                          When PLCBUS-1141 sends a STATUS-REQUEST command, and waits for an ACK, the ACK never comes if the module is plugged to the same phase as the 1141.
                          Instead, the plugin gets a STATUS-ON or STATUS-OFF that has to be interpreted as a ACK.
                          This will be fixed in the next version.
                          --
                          stipus

                          Comment


                            #14
                            Originally posted by stipus View Post
                            I found this is a bug in the plugin for 3-phase mode:

                            When PLCBUS-1141 sends a STATUS-REQUEST command, and waits for an ACK, the ACK never comes if the module is plugged to the same phase as the 1141.
                            Instead, the plugin gets a STATUS-ON or STATUS-OFF that has to be interpreted as a ACK.
                            This will be fixed in the next version.
                            Great, I'm sorry that I did not find time to test and answer your last question.
                            Please excuse any spelling and grammatical errors I may make.
                            --
                            Tasker Plugin / Speech Droid
                            Tonlof | Sweden

                            Comment


                              #15
                              No problem. I will soon release a new beta version, with a few bug fixes for 3-phase-mode and scene programming.

                              Also a new scene button "Remove currently 'On' devices from scene" will be available.

                              Best regards,

                              stipus
                              --
                              stipus

                              Comment

                              Working...
                              X