User Tools

Site Tools


supported_hardware:controlbywebout

This is an old revision of the document!


Control By Web: Outgoing

This plugin is functionally similar to the original Control By Web plugin but instead of using the inter device communications protocol and waiting for the device to make a connection to XTension, XTension will make an outgoing connection to the device. This can be useful if you are already using the inter device channel to talk to another device or if the network parameter is easier managed by having an outgoing connection rather than passing through an incoming one.

Please see the original Control By Web Plugin page for more info on the proper setup of the units, this article will discuss only the differences between that plugin and this one.

With the original plugin only a single instance of the plugin was needed to receive a connection from any number of CBW devices. In the case of the outgoing connection plugin a separate instance of this plugin must be created and setup for each individual device you wish to connect to.

Note that this plugin may not work with the original oldest web relay devices as they may not support sending the data in json format as opposed to XML. In that case please use the original plugin.

Plugin Settings:

Enter the IP Address or local dns name of the device and the Port the web interface is running on. If you have authentication set on the device check the Use Authentication checkbox and fill in the User ID and Password fields.

Choosing a Polling Interval: The devices do not support an incoming persistent connection so we must poll for changes and updates. Most devices recommend a 3 second polling interval, but for digital inputs this may be too slow to catch a quick event. It does not appear to cause my test devices any problem to set this as low as every second but you will need to experiment with your own setup and make sure this is not causing any other performance issues with the control by web devices. Set the polling interval to whatever value makes sense for your use case.

The Log Next Polling Result button is a debugging or development tool. Clicking this button will cause the next polling result to be written to the XTension log. This can be helpful if I need to see different device types that I do not have for testing and will make it easier to support new devices in the future. This button will be greyed out unless the interface is actually running. The log output might be long if you have a lot of devices configured. Copy and paste the output out of the log and send it to me if there are issues with reading the values I need to sort out.

Unit Settings:

Like the original plugin a Unit will be created for each endpoint that is described in the data received. There are a wide variety of device types that may be included and they add more regularly so the plugin may not know what the proper unit suffix or dimmable or receive only settings are for a particular device. Once the unit is created in XTension please go through the units and make sure that discrete units are not marked as dimmable and that the proper units and receive only settings are setup for the units to avoid confusion later.

By default the Units are created with a name that is the name of the plugin interface instance followed by the endpoint name as sent from the device. This is not the descriptive name you may have already given it in the devices own interface. Once the units are created you can rename them in XTension to be more descriptive or to make better sense inside your own system. Do not change the Address of the Unit as that is how the data to the unit and control from the unit is sent to the right place.

History:

  • This plugin was added to XTension in version 9.5 in december of 2022 in order to better support newer devices with a different inter application protocol that may not work with the original plugin,
supported_hardware/controlbywebout.1671815162.txt.gz · Last modified: 2023/02/13 14:51 (external edit)