Skip to content

Commit

Permalink
Merge pull request #455 from TD22057/dev
Browse files Browse the repository at this point in the history
Release Version 1.1.0
  • Loading branch information
krkeegan committed Nov 8, 2021
2 parents 2ab12cd + 5816097 commit 18b5ec3
Show file tree
Hide file tree
Showing 24 changed files with 345 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 1.0.2
current_version = 1.1.0
commit = True
tag = False

Expand Down
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Revision Change History

## [1.1.0]

### Fixes

- Fixes a problem wherein the modem might not receive commands from secondary groups on multigroup controllers (keypadlincs, remotes, motion sensors).
If you are having an issue like this. After updating, run `pair` on the affected multigroup controller. (#453)

### Additions

- Adds an availability topic to the topics published on MQTT. It will publish `online` when InsteonMQTT comes online and `offline` whenever InsteonMQTT goes offline
even if as a result of a crash. This has been added into the default discovery templates for HomeAssistant. So you should now see your devices as `unavailable` if
InsteonMQTT is offline. (#448)
- If a level is now sent as part of the `scene` command, the device state will now properly report that level. (#449)

## [1.0.2]

### Fixes
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ integrated into and controlled from anything that can use MQTT.

This package works well with HomeAssistant and can be easily [installed as an addon](docs/HA_Addon_Instructions.md) using the HomeAssistant Supervisor.

Version: 1.0.2 ([History](CHANGELOG.md))
Version: 1.1.0 ([History](CHANGELOG.md))

### Recent Breaking Changes

Expand Down
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Insteon MQTT",
"description": "Creates an MQTT interface to the Insteon protocol.",
"slug": "insteon-mqtt",
"version": "1.0.2",
"version": "1.1.0",
"startup": "services",
"arch": ["amd64","armhf","aarch64","i386"],
"boot": "auto",
Expand Down
1 change: 1 addition & 0 deletions docs/discovery.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ the user
- `modem_addr` = (str) hexadecimal address of modem as a string
- `device_info_template` = (jinja template) a template defined in
config.yaml. _See below_
- `availability_topic` = The _availabiltiy_topic_ string as defied in the config.yaml file under the _mqtt_ key.
- `<<topics>>` = (str) topic keys as defined in the config.yaml
file under the _default class_ for this device are available as variables.

Expand Down
12 changes: 9 additions & 3 deletions insteon_mqtt/Modem.py
Original file line number Diff line number Diff line change
Expand Up @@ -1305,9 +1305,15 @@ def _db_update(self, local_group, is_controller, remote_addr, remote_group,
seq = CommandSeq(self, "Device db update complete", on_done,
name="ModemDBUpd")

# Group number in the db is the group number of the controller since
# that's the group number in the broadcast message we'll receive.
db_group = local_group
if not is_controller:
db_group = remote_group

# Create a new database entry for the modem and send it to the modem
# for updating.
entry = db.ModemEntry(remote_addr, local_group, is_controller,
entry = db.ModemEntry(remote_addr, db_group, is_controller,
local_data)
seq.add(self.db.add_on_device, entry)

Expand All @@ -1319,10 +1325,10 @@ def _db_update(self, local_group, is_controller, remote_addr, remote_group,
on_done = None
if is_controller:
seq.add(remote.db_add_resp_of, remote_group, self.addr,
local_group, two_way, refresh, remote_data=remote_data)
local_group, two_way, refresh, local_data=remote_data)
else:
seq.add(remote.db_add_ctrl_of, remote_group, self.addr,
local_group, two_way, refresh, remote_data=remote_data)
local_group, two_way, refresh, local_data=remote_data)

# Start the command sequence.
seq.run()
Expand Down
1 change: 1 addition & 0 deletions insteon_mqtt/cmd_line/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
except AttributeError:
pass


#===========================================================================
def send(config, topic, payload, quiet=False):
"""Send a message and get the replies from the server.
Expand Down
2 changes: 1 addition & 1 deletion insteon_mqtt/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
variable throughout the code without causing a cyclic import
"""

__version__ = "1.0.2"
__version__ = "1.1.0"

#===========================================================================
Loading

0 comments on commit 18b5ec3

Please sign in to comment.