Announcement

Collapse
No announcement yet.

X10 Plugin: using ExecX10() from a script

Collapse
This is a sticky topic.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #31
    Um ok, How would I do that?
    Scripting is still not one of my strong points.

    Thanks,
    Tim
    FB Page - https://www.facebook.com/pages/Capt-Tim/209398425902188

    HSTouch Layouts - https://www.facebook.com/media/set/?...5902188&type=3

    Comment


      #32
      I figured out a way to do it.

      Thanks,
      Tim
      FB Page - https://www.facebook.com/pages/Capt-Tim/209398425902188

      HSTouch Layouts - https://www.facebook.com/media/set/?...5902188&type=3

      Comment


        #33
        Well I spoke too soon.
        Weird - The dining room lights and the west wall in the living room are controlled by the same kind of light switch (ws467).
        The dining room lights behave as expected, but the west wall in the living room don't dim at all. They will if I use the slider on the HS3 device page. Of course then I get the "bright too 100% then dim to the level I set" which is what I am trying to avoid.
        Any ideas why?

        Thanks,
        Tim
        FB Page - https://www.facebook.com/pages/Capt-Tim/209398425902188

        HSTouch Layouts - https://www.facebook.com/media/set/?...5902188&type=3

        Comment


          #34
          bump
          FB Page - https://www.facebook.com/pages/Capt-Tim/209398425902188

          HSTouch Layouts - https://www.facebook.com/media/set/?...5902188&type=3

          Comment


            #35
            Sorry for the delay in getting back to you, been dealing with the wildfires and evacuations. Things are beginning to return to normal...

            Did you verify that the device type (on the X10 tab for the device) for the 'living room west wall' is set to "Standard" and not "Appliance", "PreSet" or "Extended"?
            Best regards,
            -Mark-

            If you're not out on the edge, you're taking up too much room!
            Interested in 3D maps? Check out my company site: Solid Terrain Modeling

            Comment


              #36
              Yes they are set to Standard.

              Glad to see all is returning to normal.

              Thanks,
              Tim
              FB Page - https://www.facebook.com/pages/Capt-Tim/209398425902188

              HSTouch Layouts - https://www.facebook.com/media/set/?...5902188&type=3

              Comment


                #37
                Are you using the current beta version of the plugin, v3.0.0.46? If not you can d/l it here: https://forums.homeseer.com/forum/li...-beta-releases

                Turn debug mode on: plugins page, enable developer mode, disable then re-enable the X10 plugin. Once enabled, send a dim command to your 'dining room' lights then send the same dim command to your 'living room' lights. Copy the section of your log file that details these 2 commands and post them here so I can see what is happening.
                Best regards,
                -Mark-

                If you're not out on the edge, you're taking up too much room!
                Interested in 3D maps? Check out my company site: Solid Terrain Modeling

                Comment


                  #38
                  Updating to 46 did it. All is good now.

                  Thanks,
                  Tim
                  FB Page - https://www.facebook.com/pages/Capt-Tim/209398425902188

                  HSTouch Layouts - https://www.facebook.com/media/set/?...5902188&type=3

                  Comment


                    #39
                    Hi Mark, All,

                    did you eventually hear back from HST regarding the CM15 and how to send power line commands?

                    I am currently transitioning from Promixis-Girder and was able to send commands via their plugin / Lua code (with the exact same hardware/setup)
                    It also seems to leverage the Activehome sdk

                    As an example, this script is working perfectly on my current Girder session::

                    ActiveHome:SendAction ("sendplc", "e8 extcode 31 ff ")

                    Any way I can accomplish this via HS3?


                    It is very useful, as I can leverage extended commands to set "scenes" and trigger them from a single command & all X10 units react at the same time.
                    It has been working flawlessly for several years (30 X10 modules programmed). (ref : http://forums.x10.com/index.php?topic=13144.15)

                    Also there seems to be an issue with using HStouch sliders, so I could probably use a script as a workaround (virtual device for level 0-100, event/script to send command)

                    (ref: https://forums.homeseer.com/forum/li...-highest-value)

                    As a last resort, I can use command line (ahcmd.exe) but would prefer to use HS3 scripting instead, especially for the latter issue.

                    Open to any ideas, advice,

                    Thank you!



                    Comment


                      #40
                      Some further info; I managed to set a virtual slider + CAPI command in order to resolve the HStouch dimmer issue and send levels from 0-100 (0-Off, 1-99 ramp up, 100 direct ON - Standard On can be used to restore previous dim level after OFF) All works well,

                      However, if I remember correctly, "level" (or "set to") commands also uses X10 "extended commands"; as per my previous Promixis-Girder install.
                      If you look a the below log, every time I successfully send a "level" command, I get back the same error message type from the CM15;
                      looks like the plugin simply doesn't interpret the "extended" PLC data correctly.
                      Let me know if this is something you could address in the plugin and also if it could help with sending other commands over PLC, like the one mentioned above.

                      Making progress. hopefully this will help other people;

                      FYI other than that, I can easily receive data from X10 motion sensors and control all X10 modules via HS3/CM15, including dimmers, switches, modules, etc. As already mentioned in multiple discussions, most issues are related to interference, just need to add filters to the usual suspects (Some TV's and DC supplies) and link the 2 phases in your electrical panel)

                      .... while if I slowly migrate to ESP8266 based devices+Tasmota+MQTT =)

                      Keep me posted
                      Thanks again

                      Click image for larger version  Name:	a.PNG Views:	0 Size:	94.6 KB ID:	1336313

                      Comment


                        #41
                        Originally posted by 123qweasd View Post
                        Some further info; I managed to set a virtual slider + CAPI command in order to resolve the HStouch dimmer issue and send levels from 0-100 (0-Off, 1-99 ramp up, 100 direct ON - Standard On can be used to restore previous dim level after OFF) All works well,

                        However, if I remember correctly, "level" (or "set to") commands also uses X10 "extended commands"; as per my previous Promixis-Girder install.
                        If you look a the below log, every time I successfully send a "level" command, I get back the same error message type from the CM15;
                        looks like the plugin simply doesn't interpret the "extended" PLC data correctly.
                        Let me know if this is something you could address in the plugin and also if it could help with sending other commands over PLC, like the one mentioned above.

                        Making progress. hopefully this will help other people;

                        FYI other than that, I can easily receive data from X10 motion sensors and control all X10 modules via HS3/CM15, including dimmers, switches, modules, etc. As already mentioned in multiple discussions, most issues are related to interference, just need to add filters to the usual suspects (Some TV's and DC supplies) and link the 2 phases in your electrical panel)

                        .... while if I slowly migrate to ESP8266 based devices+Tasmota+MQTT =)

                        Keep me posted
                        Thanks again

                        Click image for larger version Name:	a.PNG Views:	0 Size:	94.6 KB ID:	1336313
                        so out of curiosity... what, other than filters, do you have on your line to deal with X10?

                        You are in Canada, to which im not sure about your power in the house...
                        but at my house.. we have 2x 120v lines (a and b)…

                        Once I added an x10 coupler/repeater to my dryer line (240v)… and also added an x10 repeater at the electrical panel, my X10 became rock solid and I actually have zero filters in my house now!!!!! x10 just works for me...


                        I am hoping the X10 plugin gets moved into HS4... ill beta test if anyone needs. I am getting rid of my light switches (x10 togglelinc 2 way 23890w switches) for z-wave but still have some around to do.... x10 motions and lamp/appliance modules as well....
                        oh and Lutron double outlets with the blue feed line for down line....
                        HW - i5 4570T @2.9ghz runs @11w | 8gb ram | 128gb ssd OS - Win10 x64

                        HS - HS3 Pro Edition 3.0.0.435

                        Plugins - BLRF 2.0.94.0 | Concord 4 3.1.13.10 | HSBuddy 3.9.605.5 | HSTouch Server 3.0.0.68 | RFXCOM 30.0.0.36 | X10 3.0.0.36 | Z-Wave 3.0.1.190

                        Hardware - EdgePort/4 DB9 Serial | RFXCOM 433MHz USB Transceiver | Superbus 2000 for Concord 4 | TI103 X-10 Interface | WGL Designs W800 RF | Z-Net Z-Wave Interface

                        Comment


                          #42
                          Originally posted by TeleFragger View Post

                          You are in Canada, to which im not sure about your power in the house...
                          but at my house.. we have 2x 120v lines (a and b)…
                          FYI, the wiring,voltage levels and frequency in Canada is generally the same as in the US. Technically it's called a split-phase or single-phase three-wire 240V system.
                          HS 4.2.8.0: 2134 Devices 1252 Events
                          Z-Wave 3.0.10.0: 133 Nodes on one Z-Net

                          Comment


                            #43
                            Hi TeleFragger,

                            Same here, 2 x 120V + phase coupler ( https://www.ebay.com/itm/X10-Phase-C...item25b27e0cc2 )

                            But even with the phase coupler, some devices tend to create a lot of noise on the lines;
                            Once your system is stable, they are fairly easy to spot:
                            X10 signal starts to be spotty; locate the device at fault (breakers/plugs trial and error - usually something you just added), add the filter (XPPF), case closed.
                            I have maybe 4 or 5 installed mainly on TV's and some cheap chinese power supplies.
                            A repeater would probably do the job as well, but i'd rather isolate/identify the faulty devices. This way I know where the problem is.

                            Also, if you use CM15 + MS13/14 sensors, a must is to replace the antenna with a ground plane one + generic coax booster. cheap and efficient.


                            Also Hope X10 makes it to HS4, as I dont expect to transition everything short term,

                            Cheers,


                            Hi Mark, just wondering if you had a chance to check my previous posts? hoping I can get some help =)

                            Thx,

                            Comment


                              #44
                              Originally posted by 123qweasd View Post
                              Also Hope X10 makes it to HS4, as I dont expect to transition everything short term,
                              See this thread: https://forums.homeseer.com/forum/li...00-x10-and-hs4
                              HS 4.2.8.0: 2134 Devices 1252 Events
                              Z-Wave 3.0.10.0: 133 Nodes on one Z-Net

                              Comment


                                #45
                                Thank you Sparkman.

                                Comment

                                Working...
                                X