I just posted v.47 to the beta page (https://forums.homeseer.com/forum/li...33#post1008133) with changes to support HS4, specifically the ability to add new devices.
This version is compatible with both HS3 and HS4. It has only been tested under Windows 10 Pro.
** Ability to add new devices **
In HS4 you CANNOT currently add a new HS3 device using the Add Device "+" button on the HS4 Devices page like we used to do in HS3.
This version of the plugin adds a page to the 'Plugins' menu and you simply click 'Plugins' then 'X10' then 'Add a new X10 Device.' You will be presented with a new page to set the X10 parameters. Clicking the "Add Device' button will create the new device in HS and open the standard HS Device Configuration page so you can change the device name (the plugin names it with the device code and [*** NEW X10 DEVICE ***]), location, room, etc. If you click the Cancel button on the Add New X10 Device page then you will be returned to the previous page and no device is created.
** Updated Config Page **
In HS3, the Com Port for the plugin was set on the Manage Plugins page and the setting was stored in the HS settings.ini file. This setting has moved to the Config page and is now stored in the X10.ini file. At startup, this version of the plugin will check for the 'ComPort' setting in X10.ini and if it isn't found it will copy the existing setting from settings.ini to X10.ini. This version of the plugin no longer reports to HS that it supports Com Ports so the Com Port selector on the Manage Plugins page is no longer displayed.
When the Config page loads it checks for valid Com Ports on the system before displaying the page. If no ports are found it will indicate this and you will not be able to select a port, even if you had selected one in the past. If a Com Port is added while the Config page is displayed, it should detect the change, display all the ports and allow you to make a selection. This was added for systems with USB Com Ports where there is a possibility that the USB cable has become unplugged.
When you make a change to the interface, Com Port or Baud Rate (for Ti103) you must click the Update button in order for the changes to be saved and the new setting(s) applied. All other settings on the page will be automatically updated when clicked and you should not click the update button.
There is a new 'Debug Mode' checkbox that instantly enables or disable debug logging to the HS log. You no longer have to restart the plugin after changing this setting! Note that the 'Developer Mode' setting on the 'Manage Plugins' page in HS3 is no longer used and is ignored.
** Fix for X10 devices copied in HS not respecting the received X10 commands **
Previously, when an X10 device was copied in HS the device's reference was not properly updated in the device data maintained by the plugin. This resulted in the plugin not updating teh sataus of newly copied X10 devices when X10 commands were received. The plugin now updates this in 2 places: when the device's X10 settings are changed by the user (ie; editing the new device via the X10 tab) and when the plugin starts. These changes are logged to the HS log as 'info' and should not be considered as errors, unless you are seeing constantly them when you're not copying X10 devices.
Please post your issues, logs and comments below, but only if you are running v.47 & up. Also, please include the following info when reporting anything new:
1) Major and minor version of HomeSeer, for example: HS 4.0.0.22 or HS 3.0.0.99
2) Operating system and version, for example: Win 10 pro, Win 7 Home, R-Pi Stretch 9.6
3) What you were trying to do
3) Device code(s) (if applicable)
4) Page the error occurs on (if applicable)
5) Log entries (please don't post your entire log unless it's pertinent)
This version is compatible with both HS3 and HS4. It has only been tested under Windows 10 Pro.
** Ability to add new devices **
In HS4 you CANNOT currently add a new HS3 device using the Add Device "+" button on the HS4 Devices page like we used to do in HS3.
This version of the plugin adds a page to the 'Plugins' menu and you simply click 'Plugins' then 'X10' then 'Add a new X10 Device.' You will be presented with a new page to set the X10 parameters. Clicking the "Add Device' button will create the new device in HS and open the standard HS Device Configuration page so you can change the device name (the plugin names it with the device code and [*** NEW X10 DEVICE ***]), location, room, etc. If you click the Cancel button on the Add New X10 Device page then you will be returned to the previous page and no device is created.
** Updated Config Page **
In HS3, the Com Port for the plugin was set on the Manage Plugins page and the setting was stored in the HS settings.ini file. This setting has moved to the Config page and is now stored in the X10.ini file. At startup, this version of the plugin will check for the 'ComPort' setting in X10.ini and if it isn't found it will copy the existing setting from settings.ini to X10.ini. This version of the plugin no longer reports to HS that it supports Com Ports so the Com Port selector on the Manage Plugins page is no longer displayed.
When the Config page loads it checks for valid Com Ports on the system before displaying the page. If no ports are found it will indicate this and you will not be able to select a port, even if you had selected one in the past. If a Com Port is added while the Config page is displayed, it should detect the change, display all the ports and allow you to make a selection. This was added for systems with USB Com Ports where there is a possibility that the USB cable has become unplugged.
When you make a change to the interface, Com Port or Baud Rate (for Ti103) you must click the Update button in order for the changes to be saved and the new setting(s) applied. All other settings on the page will be automatically updated when clicked and you should not click the update button.
There is a new 'Debug Mode' checkbox that instantly enables or disable debug logging to the HS log. You no longer have to restart the plugin after changing this setting! Note that the 'Developer Mode' setting on the 'Manage Plugins' page in HS3 is no longer used and is ignored.
** Fix for X10 devices copied in HS not respecting the received X10 commands **
Previously, when an X10 device was copied in HS the device's reference was not properly updated in the device data maintained by the plugin. This resulted in the plugin not updating teh sataus of newly copied X10 devices when X10 commands were received. The plugin now updates this in 2 places: when the device's X10 settings are changed by the user (ie; editing the new device via the X10 tab) and when the plugin starts. These changes are logged to the HS log as 'info' and should not be considered as errors, unless you are seeing constantly them when you're not copying X10 devices.
Please post your issues, logs and comments below, but only if you are running v.47 & up. Also, please include the following info when reporting anything new:
1) Major and minor version of HomeSeer, for example: HS 4.0.0.22 or HS 3.0.0.99
2) Operating system and version, for example: Win 10 pro, Win 7 Home, R-Pi Stretch 9.6
3) What you were trying to do
3) Device code(s) (if applicable)
4) Page the error occurs on (if applicable)
5) Log entries (please don't post your entire log unless it's pertinent)
Comment