[RELEASE] TESmart Controller 1.8.0 - KVM/HDMI Switch Manager APP + mDNS Mesh support

Hi All,

If you have a networked HDMI or KVM Switch from TESmart like one of these 8/16 Port KVM Switch - 8 Port HDMI KVM Switch for IT Management | TESmart You may have discovered that their control software only runs on windows and it is not really Hubitat friendly.

I have created a Python package that front ends the HDMI switches via a simple REST API and allows you to now control it via CLI, REST, In-built web application and now Hubitat via a companion Application. Or via a combination of methods.

Feel free to check out the github repo here if you want to look at the code.

Or take it a spin with a direct install with pip install tesmartctl

The associated hubitat package can then be installed via the Hubitat Package Manager, simply search for KVM or TESmart and it should pop up.

During install ensure that the TESmartctl server is running and that it is on a system that can be reached from the Hubitat system. After the various files have been downloaded you will need to provide the host and port to connect your hubitat with the TESmartctl server.

Click on server and port and set the appropriate values

Click on run connection test now and if successful you should see the following. This will also perform a compatibility check as well with the version of TESmartctl that you are running

You may need to click the connection button twice for it to connect.

You can then if you want update the input names on the device by clicking here

Any updates to names will be reflected back on the TESmart server. Next you may update the Device name. It is recommended to then keep all other options checked.

At this point you should have a device and 8 or 16 child devices that represent each of the individual inputs that you can select on the device. Only one device can be active at a time.

Known Issues

  • Switching a child off may result in an error being logged and no input modification will occur.

TESmart Controller 1.6.0 (requires tesmartctl 0.0.7.10+)

Update via Hubitat Package Manager, then make sure the TESmartCtl listener is current:

pip install -U tesmartctl
tesmartctl listen --http 0.0.0.0:8080 --panel

What’s new

  • Notify / deviceNotification on the controller — send text to the floating kit LCD from Rule Machine, Notify, etc. Or send from API, CLI direct to hubitat as well
  • New HDMI floating kit with a variety of options enabling you to see the condition of the KVM/HDMI switch and surfaces any notifications sent by Hubitat
  • LCD Banner commands — timed (Show for N seconds) or sticky messages (Show until, dismiss/cleared
  • Last 10 banner messages are kept on the TESmartCtl server
  • Input peek-follow (off / once / always) enabling you to peek at a new input and return
  • Snappier kit & panel — tesmartctl 0.0.7.10+ adds Server-Sent Events for the browser UIs (/api/events). Hubitat keeps using callbacks; browsers use SSE
  • Big refresh on Docs — tesmartctl — TESmart HDMI switch control (also linked from the HPM package documentation)

Links

TESmart Controller 1.7.0

Summary

You can now peek, enable, or disable an input from the child device or from the controller. The Manager (Parent device) shows which inputs are enabled and which are disabled, and it can change that itself. The controller now tells shutdown of teh TESmart Controller server apart from a lost connection, and it comes back online when the listener starts immediately.

This package needs tesmartctl 0.0.7.17 or newer. Update with Hubitat Package Manager, then open TESmart Manager.

How to Updated tesmartctl

On the computer that runs the listener:

python3 -m pip install --upgrade tesmartctl

Stop the listener with Ctrl-C, then start it again with tesmartctl quickstart. Leave that process running. On Windows, use python -m pip install --upgrade tesmartctl. Then update this Hubitat package and open TESmart Manager.

Status should show tesmartctl 0.0.7.17 or newer.

New features

  • Peek on an input. Each TESmart Input child has peek. It looks at that input, then returns. Seconds are optional.
  • Enable and disable an input. enableInput and disableInput are on the child and on the controller. On the controller you can pass 2 or 2 - Office, the same way as setInputSource. Preferences has Enable input and Disable input. The Manager main screen has the same control for one input. At least one input must stay enabled. The switch is not told. The listener stores it.
  • Enabled or disabled on the device. Each child has inputEnabled (enabled or disabled). The switch still means that input is selected. The controller shows enabledInputs and disabledInputs. The Manager keeps the same two lists, and they update from the enabled_changed callback.
  • Status. Status on the Manager reads the listener and shows the server version and the active input. It also refreshes those lists and marks the controller online.

Updates

Stopping the listener with Ctrl-C sets healthStatus to shutdown. Starting it again sends an online notice with the current input, the names, and which inputs are enabled or disabled, so Hubitat returns to online without waiting for the next change. A crash or a lost connection sets healthStatus to offline.

A disabled input is not selected and is not peeked. The selected input stays selected until you choose another one.

Docs

TESmart Controller Install Docs

TESmart Controller 1.7.1

Summary

You can now set an optional From label on LCD banners from Hubitat. That label shows on the kit status line. The controller stores it as bannerFrom. When you leave From blank, Hubitat sends HUBITAT.

This package needs tesmartctl 0.0.7.18 or newer. Update with Hubitat Package Manager, then open TESmart Manager.

How to Updated tesmartctl

On the computer that runs the listener:

python3 -m pip install --upgrade tesmartctl

Stop the listener with Ctrl-C, then start it again with tesmartctl quickstart. Leave that process running. On Windows, use python -m pip install --upgrade tesmartctl. Then update this Hubitat package and open TESmart Manager.

Status should show tesmartctl 0.0.7.18 or newer.

New features

Banner From. showBanner and showStickyBanner take an optional From string. It appears on the kit status line. Blank From becomes HUBITAT. The controller has a bannerFrom attribute, and banner callbacks and status refresh keep it in sync.

Updates

Banner state from the listener now includes from. Clearing a banner resets bannerFrom to MESSAGE on the device.

TESmart Controller 1.8.0

Summary

You can now choose how Hubitat finds the listener: fixed IP, mDNS plus a mesh failover name (…-mesh), or mDNS plus a specific instance. Follow listener endpoint from callbacks appears only when mesh failover is on. Mesh on the server stays opt-in (--mesh only).

This package needs tesmartctl 0.0.7.20 or newer. Update with Hubitat Package Manager, then open TESmart Manager.

How to Updated tesmartctl

On the computer that runs the listener:

python3 -m pip install --upgrade tesmartctl

Stop the listener with Ctrl-C, then start it again with tesmartctl quickstart (add --mesh only if you want mesh). Leave that process running. On Windows, use python -m pip install --upgrade tesmartctl. Then update this Hubitat package and open TESmart Manager. Status should show tesmartctl 0.0.7.20 or newer.

New features

Guided connection. Use mDNS discovery (default off for existing IP installs). Discover listeners, then either Use mesh failover and pick …-mesh, or pick a specific mDNS name. While mDNS is on, host and port are not typed; Discover fills Active.

Follow listener endpoint. Shown only when mesh failover is on. When the proxy POSTs listener.base_url after promote, Manager can update host and port to maintain active connections following a fail over between TESmart listener servers.

Docs

TESmart Controller Install Docs