Skip to content

Commit

Permalink
Merge pull request #185 from krkeegan/1_Button_Remote
Browse files Browse the repository at this point in the history
Add Support for Single Button Remotes
  • Loading branch information
TD22057 authored Feb 15, 2020
2 parents 60745fb + c92f07c commit 59de096
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 @@ -85,9 +85,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 @@ -591,7 +593,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 @@ -16,7 +16,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 59de096

Please sign in to comment.