Skip to content

External control of MisterHouse

biffhero edited this page Apr 26, 2018 · 15 revisions

=External control of MisterHouse=


Misterhouse (MH) provides multiple ways to remotely access it. Of course there is the web interface and TK but MH also allows to telnet access to commands (describe here the way to setup MH for telnet access and how the commands work).

==Telnet access==


By default, the telnet module is not enabled. There are two ways to enable it, via the Web UI or via code_select.txt.

To change it in the web UI (ia7) perform the following steps:

  1. Click on the gear icon in the upper right corner.
  2. In the "Mr. House Options" popup, click "Log in".
  3. In the "Authorize" popup, enter the password that you have set for the admin user in the text field
  4. Click "Logon". This should return you to the main MisterHouse web page.
  5. Click "Mr. House Home".
  6. Click "Setup MrHouse".
  7. Click "Common Code Activation".
  8. Search on this page for "telnet.pl".
  9. Select the radio box next to "telnet.pl".
  10. Scroll up to the top of this section, and click "Process selected files". As soon as you click "Process selected files", the file local/data/code_select.txt will be saved.
  11. Restart MisterHouse.

To change it in the code_select.txt file, perform the following steps:

  1. Edit local/data/code_select.txt
  2. Add the line "telnet.pl" to the file.
  3. Restart MisterHouse.

If you are able to log in to the computer where MisterHouse is running, you can connect with "telnet localhost 1234". This will give you a "mh> " prompt. One nice feature of this interface is that it tries to help you out when you make a mistake. For instance, my front door light is called "ft_lt" in my insteon.mht file. Here is some actual output.

mh> ft light off

ft light off

Searching for cmd: ft light off.

mh> [response] Matches for ft light off:

1: ft lt off

mh> ft lt off

ft lt off

Command executed: "ft lt off"

mh> ft lt off

ft lt off

Command executed: "ft lt off"

mh>

==CLI==

(I'm not sure what we are talking about here. Are we talking about using "mhsend", or something else?)

Clone this wiki locally