Skip to content

Commit

Permalink
Add Support for Single Button Remotes
Browse files Browse the repository at this point in the history
  • Loading branch information
krkeegan committed Jan 29, 2020
1 parent 0b4f2d6 commit c92f07c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
8 changes: 5 additions & 3 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,11 @@ insteon:
- 21.d6.d9: 'door'

# Battery powered mini remotes.
mini_remote4:
mini_remote1: # Single Button Remotes

mini_remote8:
mini_remote4: # Remotes with 4 Buttons

mini_remote8: # Remotes with 8 Buttons
- 3f.07.d4: 'remote1'

# Smoke bridge module.
Expand Down Expand Up @@ -580,7 +582,7 @@ mqtt:
# whenever a button is pressed. Available variables for templating are:
# address = 'aa.bb.cc'
# name = 'device name'
# button = 1...n (button number 1-4 or 1-8)
# button = 1...n (button number 1-8 depending on configuration)
# on = 0/1
# on_str = 'off'/'on'
# mode = 'normal'/'fast'/'instant'
Expand Down
1 change: 1 addition & 0 deletions insteon_mqtt/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
'keypad_linc' : (device.KeypadLinc, {'dimmer' : True}),
'keypad_linc_sw' : (device.KeypadLinc, {'dimmer' : False}),
'leak' : (device.Leak, {}),
'mini_remote1' : (device.Remote, {'num_button' : 1}),
'mini_remote4' : (device.Remote, {'num_button' : 4}),
'mini_remote8' : (device.Remote, {'num_button' : 8}),
'motion' : (device.Motion, {}),
Expand Down
2 changes: 1 addition & 1 deletion insteon_mqtt/device/Remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
class Remote(Base):
"""Insteon multi-button battery powered mini-remote device.
This class can be used for 4, 6 or 8 (really any number) of battery
This class can be used for 1, 4, 6 or 8 (really any number) of battery
powered button remote controls.
The issue with a battery powered remotes is that we can't download the
Expand Down

0 comments on commit c92f07c

Please sign in to comment.