Announcement

Collapse
No announcement yet.

Here is my beta script to support Insteon Thermostat Adapters

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

    Well after clicking some buttons on the device page, I have most of them showing up now. The only button I can't seem to get to work properly is the Heat1 setting. It is showing 0. I just want to make sure I understand this, if I poll the stat should the devices update automatically when they change? (I would assume they would.)

    Thanks,
    Steve
    Attached Files

    Comment


      Tom, is there a way to put a drop down list next to the Cool and Heat row with temperatures from 50 to 100, this way instead of clicking + or - you can click the exact temperature that you want? Just an idea. They have that working on the Doostat plugin, and it works great if you are out of the house and want to change the temperature quickly to a new setting.

      Thanks,
      Steve

      Comment


        Yes, it believe that it should be possible to put the drop-down there. Personally, I use the up/down buttons on the hstouch as shown above -- Just like I would at the real thermostat. I also have those few buttons to go to one of my program modes. This runs a script to set the setpoints directly. I will take a look at adding this when I get an chance.

        As for your heat setpoint not updating.... Was your stat in the auto mode when you did the poll? That is the only way it will update both. It is not right that the log ends on the that last ACK. I don't think that it is hanging. I am kind of thinking that maybe it is just the log buffering or it is just later in the log and you didn't think it was part of the poll. Can you check the log for a previous poll just to see if some of these log messages might be in there.
        - Tom

        HSPro/Insteon
        Web Site
        YouTube Channel

        Comment


          Oh, I think I understand. So it has to be in Auto mode for both the settings to show up. I only had it set to Cool mode, that is why it shows up as 1 or 2. Just tested it out, and now it is working fine. As for using it with HStouch, I don't have that program and for what I use Homeseer for, the web page is all I need it for, that is why it would be a great feature for me if you were able to put the dropdown list on it.

          Thank you.

          Comment


            Need some basic help

            I'm stuggling to get my thermostat working properly. I have copied the two script files to the Scripts folder and the INI file to the Config folder. I modified the INI file to have the correct Insteon Address and remove the 2nd and 3rd entries (I only have 1 thermostat installed so far). The 6 devices appear to have been created properly.

            I am unsure if I am supposed to tap or manually add the thermostat. If I don't add it, I can set some values in the t-stat correctly, but the status is always unknown and I get the following error (see full log below):

            Error in TStatRcv: Insteon Address 14.08.6E does not match a known Thermostat

            However, adding the Insteon device deos not seem to make things work either. The plug-in reports an unknown device type.

            - Am I supposed to add the Insteon device of does the script do everything automatically?

            I am also curious about the .vben script. It appears to be Homeseer encrypted VB.NET. I was curious to see what the script looked like under the hood.

            Thanks,
            Chris

            8/21/2010 6:13:44 PM Web Server Web Server authorized local login successful from: 192.168.102.148 User: default
            8/21/2010 6:11:27 PM Insteon_ExtDevSupport_TStat.vben Error in TStatRcv: Insteon Address 14.08.6E does not match a known Thermostat
            8/21/2010 6:11:27 PM Insteon_ExtDevSupport_TStat.vben(1.10) ACK Command Received
            8/21/2010 6:11:27 PM Insteon_ExtDevSupport_TStat.vben(1.10) Received Insteon Data: ACK 6A 20 01 14 08 6E 13 AE 63 2B 6A 98
            8/21/2010 6:11:27 PM Insteon_ExtDevSupport_TStat.vben(1.10) Received Insteon Data: 01 14 08 6E 13 AE 63 2B 6A 98
            8/21/2010 6:11:25 PM Insteon_ExtDevSupport_TStat.vben(1.10) Send poll request for setpoints
            8/21/2010 6:11:25 PM Insteon_ExtDevSupport_TStat.vben(1.10) Send poll request for temperature
            8/21/2010 6:11:25 PM Insteon_ExtDevSupport_TStat.vben(1.10) Send poll request for humidity
            8/21/2010 6:11:25 PM Insteon_ExtDevSupport_TStat.vben(1.10) Send poll request for mode
            8/21/2010 6:11:25 PM Insteon_ExtDevSupport_TStat.vben(1.10) Polling all thermostats
            8/21/2010 6:01:27 PM Insteon_ExtDevSupport_TStat.vben Error in TStatRcv: Insteon Address 14.08.6E does not match a known Thermostat
            8/21/2010 6:01:27 PM Insteon_ExtDevSupport_TStat.vben(1.10) ACK Command Received
            8/21/2010 6:01:27 PM Insteon_ExtDevSupport_TStat.vben(1.10) Received Insteon Data: ACK 6A 20 01 14 08 6E 13 AE 63 27 6A 98
            8/21/2010 6:01:27 PM Insteon_ExtDevSupport_TStat.vben(1.10) Received Insteon Data: 01 14 08 6E 13 AE 63 27 6A 98
            8/21/2010 6:01:25 PM Insteon_ExtDevSupport_TStat.vben(1.10) Send poll request for setpoints
            8/21/2010 6:01:25 PM Insteon_ExtDevSupport_TStat.vben(1.10) Send poll request for temperature
            8/21/2010 6:01:25 PM Insteon_ExtDevSupport_TStat.vben(1.10) Send poll request for humidity
            8/21/2010 6:01:25 PM Insteon_ExtDevSupport_TStat.vben(1.10) Send poll request for mode
            8/21/2010 6:01:25 PM Insteon_ExtDevSupport_TStat.vben(1.10) Polling all thermostats
            8/21/2010 6:00:52 PM Insteon_ExtDevSupport_TStat.vben Error in TStatRcv: Insteon Address 14.08.6E does not match a known Thermostat
            8/21/2010 6:00:52 PM Insteon_ExtDevSupport_TStat.vben(1.10) ACK Command Received
            8/21/2010 6:00:52 PM Insteon_ExtDevSupport_TStat.vben(1.10) Received Insteon Data: ACK 6A 20 01 14 08 6E 13 AE 63 2B 6A 98
            8/21/2010 6:00:52 PM Insteon_ExtDevSupport_TStat.vben(1.10) Received Insteon Data: 01 14 08 6E 13 AE 63 2B 6A 98
            8/21/2010 6:00:51 PM Speaker Speaker host added, Name: REVO IP address: 127.0.0.1
            8/21/2010 6:00:51 PM Network Speaker client connected from: 127.0.0.1
            8/21/2010 6:00:50 PM Insteon_ExtDevSupport_TStat.vben(1.10) Send poll request for setpoints
            8/21/2010 6:00:50 PM Insteon_ExtDevSupport_TStat.vben(1.10) Send poll request for temperature
            8/21/2010 6:00:50 PM Insteon_ExtDevSupport_TStat.vben(1.10) Send poll request for humidity
            8/21/2010 6:00:50 PM Insteon_ExtDevSupport_TStat.vben(1.10) Send poll request for mode
            8/21/2010 6:00:50 PM Insteon_ExtDevSupport_TStat.vben(1.10) Polling all thermostats
            8/21/2010 6:00:49 PM Insteon External device name TStat1 (Address:14.08.6E) has registered with callback to Insteon_ExtDevSupport_TStat.vben using method TStatRcv as external device #1

            Comment


              Do not add the device to the insteon plug-in. This is noted in the documentation. If it is still not working, please post or mail what your ini file looks like as well as updated log of your polling.
              - Tom

              HSPro/Insteon
              Web Site
              YouTube Channel

              Comment


                I do see the note in the install file now; sorry about missing that. The tstat was not registered with the Insteon plug-in at the time I posted the log file. My INI file is below...

                Thanks,
                Chris

                [Settings]
                enable=1
                num_tstats=1
                addresses="14.08.6e"
                device_prefix="TStat"
                locations="Master"
                housecode="E"
                devicecode_start=40
                enable_polling=1
                polling_event_name = "Poll Thermostats"
                polling_frequency=10
                create_example_setpoint=1
                debug_level=9
                low_heat_setpoint=50
                high_heat_setpoint=90
                low_cool_setpoint=50
                high_cool_setpoint=90
                low_temp=40
                high_temp=110
                low_humid=30
                high_humid=100
                poll_temp=1
                poll_setpoints=1
                poll_mode=1
                poll_humid=1

                Comment


                  I believe that this is a case-sensitivity issue. Change the "e" in your insteon address in your ini file to an "E". In the future, I will change this so it doesn't care.
                  - Tom

                  HSPro/Insteon
                  Web Site
                  YouTube Channel

                  Comment


                    The capital E did the trick. I still haven't gotten all of the values to sync up, but am definitely communicating with the thermostat. I'll save that excerise for another day. For now, just being to set to a specified value when I leave the house is a great start.

                    Thanks for your help and for your effort on the script!

                    Chris

                    Comment


                      When you get back to this, take a look over the posts from the last 2-3 pages. The capabilities for polling this thermostat are quite adequate, but not perfect. You may need to click on a few of the buttons to get things to a known state, but it should keep in sync after that.
                      - Tom

                      HSPro/Insteon
                      Web Site
                      YouTube Channel

                      Comment


                        Having a slight problem. On .10 and added a second thermostat today. Modified the config with a space between them, deleted devices, restarted, and it recreates the devices for therm 1, but only creates a temp device for therm 2 (and it doesnt put it in the right location, it leaves that blank). In the log I can see it is trying to update a heat and cool temp for therm two, but the devices dont exist so keeps updating 0. Additionally, because the therm 2 device is only temp, there are no controls for it.

                        I deleted devices again, copied all new config and scripts (including insteon_ext_dev files just to make sure. Still problems exists. Tried restarting hs a few times and letting it go through polls, but difference. Also, just to confirm both therms are set to auto mode locally at the therm.

                        Any ideas?
                        HS 3.0.0.199 Pro/Insteon 3.0.5.20/3 Venstar Insteon Therms / Insteon Thermostat 3.0.2.2 / DirecTV 3.0.0.14 / OpenSprinkler 2.0.5.21 / ITunes DAAP 3.0.0.23/ UltraM1G3 3.0.5437.37424/ UltraWeatherbug3 /HSTouch Svr 3.0.0.68/Zwave 3.0.1.25/Ultramon3/Global Cache 5.0.0.17/Various BLXXX Plugins.

                        Comment


                          I only have one stat, but I think that Lee has multiple and it has been working OK. Can you post a part of your log that include initialization at startup as well as a polling. You can strip out just the thermostat stuff so it isn't too big. It may not be a bad idea to post the ini file too just in case.
                          - Tom

                          HSPro/Insteon
                          Web Site
                          YouTube Channel

                          Comment


                            Originally posted by tpchristian View Post
                            I only have one stat, but I think that Lee has multiple and it has been working OK. Can you post a part of your log that include initialization at startup as well as a polling. You can strip out just the thermostat stuff so it isn't too big. It may not be a bad idea to post the ini file too just in case.
                            I deleted the therms, changed to E housecode in the ini, turned logging to 2, restarted hs, and here is what I got when it tried to create the devices... Ill attach config and log.

                            <TABLE border=0 cellSpacing=2 cellPadding=0 width="100%"><TBODY><TR><TD class=LOGDateTime0 noWrap align=left>8/26/2010 2:30:31 PM </TD><TD class=LOGType0 colSpan=3 align=left>Insteon_ExtDevSupport_TStat.vben </TD><TD class=LOGEntry0 colSpan=8 align=left>Error in CreateTStatDevices System.IndexOutOfRangeException: Index was outside the bounds of the array. at scriptcode1.scriptcode1.CreateTStatDevices()</TD></TR><TR><TD class=LOGDateTime1 noWrap align=left>8/26/2010 2:30:31 PM </TD><TD class=LOGType1 colSpan=3 align=left>Insteon </TD><TD class=LOGEntry1 colSpan=8 align=left>External device name ThermoStat1 (Address:14.13.FF) has registered with callback to Insteon_ExtDevSupport_TStat.vben using method TStatRcv as external device #1</TD></TR><TR><TD class=LOGDateTime0 noWrap align=left>8/26/2010 2:30:31 PM </TD><TD class=LOGType0 colSpan=3 align=left>Insteon </TD><TD class=LOGEntry0 colSpan=8 align=left>External device name ThermoStat2 (Address:14.13.CE) has registered with callback to Insteon_ExtDevSupport_TStat.vben using method TStatRcv as external device #2</TD></TR><TR><TD class=LOGDateTime1 noWrap align=left>8/26/2010 2:30:31 PM </TD><TD class=LOGType1 colSpan=3 align=left>Insteon_ExtDevSupport_TStat.vben(1.10) </TD><TD class=LOGEntry1 colSpan=8 align=left>Polling all thermostats</TD></TR><TR><TD class=LOGDateTime0 noWrap align=left>8/26/2010 2:30:31 PM </TD><TD class=LOGType0 colSpan=3 align=left>Insteon_ExtDevSupport_TStat.vben(1.10) </TD><TD class=LOGEntry0 colSpan=8 align=left>Send poll request for mode</TD></TR><TR><TD class=LOGDateTime1 noWrap align=left>8/26/2010 2:30:31 PM </TD><TD class=LOGType1 colSpan=3 align=left>Insteon_ExtDevSupport_TStat.vben(1.10) </TD><TD class=LOGEntry1 colSpan=8 align=left>Send poll request for temperature</TD></TR><TR><TD class=LOGDateTime0 noWrap align=left>8/26/2010 2:30:31 PM </TD><TD class=LOGType0 colSpan=3 align=left>Insteon_ExtDevSupport_TStat.vben(1.10) </TD><TD class=LOGEntry0 colSpan=8 align=left>Send poll request for setpoints</TD></TR><TR><TD class=LOGDateTime1 noWrap align=left>8/26/2010 2:30:33 PM </TD><TD class=LOGType1 colSpan=3 align=left>Insteon_ExtDevSupport_TStat.vben(1.10) </TD><TD class=LOGEntry1 colSpan=8 align=left>Send poll request for mode</TD></TR><TR><TD class=LOGDateTime0 noWrap align=left>8/26/2010 2:30:33 PM </TD><TD class=LOGType0 colSpan=3 align=left>Insteon_ExtDevSupport_TStat.vben(1.10) </TD><TD class=LOGEntry0 colSpan=8 align=left>Send poll request for temperature</TD></TR><TR><TD class=LOGDateTime1 noWrap align=left>8/26/2010 2:30:33 PM </TD><TD class=LOGType1 colSpan=3 align=left>Insteon_ExtDevSupport_TStat.vben(1.10) </TD><TD class=LOGEntry1 colSpan=8 align=left>Send poll request for setpoints</TD></TR></TBODY></TABLE>
                            Attached Files
                            HS 3.0.0.199 Pro/Insteon 3.0.5.20/3 Venstar Insteon Therms / Insteon Thermostat 3.0.2.2 / DirecTV 3.0.0.14 / OpenSprinkler 2.0.5.21 / ITunes DAAP 3.0.0.23/ UltraM1G3 3.0.5437.37424/ UltraWeatherbug3 /HSTouch Svr 3.0.0.68/Zwave 3.0.1.25/Ultramon3/Global Cache 5.0.0.17/Various BLXXX Plugins.

                            Comment


                              Additionally, attached is a screenshot of the devices. Notice the thermostat 2 devices are not fully created, and the house/room code isnt set like the thermostat 1 devices. Additionally, they are not communicating with the script (likely due to the error in the log posted above???)

                              I am stumped as to what may be going on. The first one was working fine until I installed version .10 of the script and added the second thermostat. Neither of these were tap added into the insteon plugin, and I am running a PLC with the latest PLC plugin (I think its 1.31 or something).
                              Attached Files
                              HS 3.0.0.199 Pro/Insteon 3.0.5.20/3 Venstar Insteon Therms / Insteon Thermostat 3.0.2.2 / DirecTV 3.0.0.14 / OpenSprinkler 2.0.5.21 / ITunes DAAP 3.0.0.23/ UltraM1G3 3.0.5437.37424/ UltraWeatherbug3 /HSTouch Svr 3.0.0.68/Zwave 3.0.1.25/Ultramon3/Global Cache 5.0.0.17/Various BLXXX Plugins.

                              Comment


                                Originally posted by kuntakintay View Post
                                Having a slight problem. On .10 and added a second thermostat today...
                                The locations config parameter is also a list. You will need to create a space-separated list. If you want the same location, just repeat the same location. I will double-check to the docs to make sure this is clear for the future.
                                - Tom

                                HSPro/Insteon
                                Web Site
                                YouTube Channel

                                Comment

                                Working...
                                X