How to configure an outlet device?

76 views
Skip to first unread message

John Harrison

unread,
Dec 27, 2019, 4:27:32 AM12/27/19
to insteon-terminal
Hello,

I have a bunch on Insteon outlets. These are a pair of switched wall outlets in a single device. The two sides can be switched on/off indepedently. However, I can't work out how to use the second device with insteon-terminal. The only device type I can see that would match is Switch2477S but there is no way that I can see to specify which of the two switches that share the address.

If I query the database for the outlet, the two devices show up as button 1 and button 2. So if I could somehow specify the button number on the switch device, I'm guessing that would work just fine.

The database is:
0fff hub                39.B9.FF  RESP  10101010 group: 00 ON LVL: 255 RMPRT:  28 BUTTON:   1
0ff7 hub                39.B9.FF  CTRL  11101010 group: 01 ON LVL:   3 RMPRT:  28 BUTTON:   1
0fef hub                39.B9.FF  CTRL  11100010 group: 02 ON LVL:   3 RMPRT:  28 BUTTON:   2
0fe7 bathroom_keypad    16.75.19  RESP  10101010 group: 06 ON LVL: 255 RMPRT:  28 BUTTON:   2
0fdf office_keypad      4A.9A.FD  RESP  10101010 group: 06 ON LVL: 255 RMPRT:  28 BUTTON:   2
0fd7 bathroom_keypad    16.75.19  CTRL  11100010 group: 02 ON LVL:   3 RMPRT:  28 BUTTON:   2
0fcf office_keypad      4A.9A.FD  CTRL  11101010 group: 02 ON LVL:   3 RMPRT:  28 BUTTON:   2
0fc7 hub                39.B9.FF  RESP  10101010 group: 82 ON LVL: 255 RMPRT:  28 BUTTON:   2
0fbf 00.00.00           00.00.00 (STOP) 00000000 group: 00 ON LVL:   0 RMPRT:   0 BUTTON:   0

Thanks.

Daniel Pfrommer

unread,
Dec 29, 2019, 7:01:38 PM12/29/19
to insteon-terminal
I have never delt with insteon outlets, but IIRC there is no way to send a direct insteon message to the device to turn on/off something that is not button #1. I believe the right way to handle this is the same way as the insteon keypad, which also had multiple buttons, and first link the hub as a controller with the device on the second button (which I see you have done). Then you can send a "broadcast" message on the group under which the keypad was linked. See that section on the KeypadLinc in the main README.md at https://github.com/pfrommerd/insteon-terminal/tree/master and that should probably do what you want.

John Harrison

unread,
Dec 30, 2019, 4:06:07 AM12/30/19
to insteon-terminal
Hello,

Using groups should work for setting the state of the two outlets but how do I query the state? The two halves can be operated independently from a physical button on the outlet itself. I need to be able to query the state of both outlets. If I call 'getStatus()', it only reports the state of the first outlet. I have tried with the device defined as a Switch2477S and as a Keypad2487S.

It must be possible because the phone app can tell me the state of the two outlets as well as toggle each one on or off independently.

Thanks.

Ted Drain

unread,
Dec 30, 2019, 10:31:28 AM12/30/19
to insteon-terminal
For commanding, a direct 0x11 or 0x13 message will turn outlet 1 on or off.  For outlet 2, you have to use an extended message with the payload of 0x02.  To get status updates, a standard broadcast message is used (basically the same for every device) and the group will tell you which outlet was changed.

If you know how to read python, you can look at: https://github.com/TD22057/insteon-mqtt/blob/master/insteon_mqtt/device/Outlet.py  (see on(), off() and handle_broadcast()).

Ted Drain

unread,
Dec 30, 2019, 10:34:11 AM12/30/19
to insteon-terminal
ps: See the refresh() function in that class as well.  To get the state of both outlets, send a standard output command with cmd1=0x19 and cmd2=0x01.    Then look at handle_refresh(), the cmd2 response is a bit code of the two outlets state.  (cmd2 -> outlet1_on, outlet2_on)
0x00: [False, False],
0x01: [True, False],
0x02: [False, True],
0x03: [True, True]
Reply all
Reply to author
Forward
0 new messages