-
Notifications
You must be signed in to change notification settings - Fork 131
External control of MisterHouse
=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:
- Click on the gear icon in the upper right corner.
- In the "Mr. House Options" popup, click "Log in".
- In the "Authorize" popup, enter the password that you have set for the admin user in the text field
- Click "Logon". This should return you to the main MisterHouse web page.
- Click "Mr. House Home".
- Click "Setup MrHouse".
- Click "Common Code Activation".
- Search on this page for "telnet.pl".
- Select the radio box next to "telnet.pl".
- 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.
- Restart MisterHouse.
To change it in the code_select.txt file, perform the following steps:
- Edit local/data/code_select.txt
- Add the line "telnet.pl" to the file.
- 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==