rfxtrx lib upgrade

This commit is contained in:
Daniel Hoyer Iversen 2016-12-19 09:21:40 +01:00
parent 00b80d4fe1
commit 2cb67eca46
2 changed files with 16 additions and 7 deletions

View File

@ -14,7 +14,7 @@ from homeassistant.const import EVENT_HOMEASSISTANT_STOP
from homeassistant.helpers.entity import Entity
from homeassistant.const import (ATTR_ENTITY_ID, TEMP_CELSIUS)
REQUIREMENTS = ['pyRFXtrx==0.13.0']
REQUIREMENTS = ['pyRFXtrx==0.14.0']
DOMAIN = "rfxtrx"
@ -132,11 +132,12 @@ def setup(hass, config):
# Log RFXCOM event
if not event.device.id_string:
return
_LOGGER.info("Receive RFXCOM event from "
"(Device_id: %s Class: %s Sub: %s)",
slugify(event.device.id_string.lower()),
event.device.__class__.__name__,
event.device.subtype)
_LOGGER.debug("Receive RFXCOM event from "
"(Device_id: %s Class: %s Sub: %s, Pkt_id: %s)",
slugify(event.device.id_string.lower()),
event.device.__class__.__name__,
event.device.subtype,
"".join("{0:02x}".format(x) for x in event.data))
# Callback to HA registered components.
for subscriber in RECEIVED_EVT_SUBSCRIBERS:
@ -274,6 +275,14 @@ def apply_received_command(event):
ATTR_STATE: event.values['Command'].lower()
}
)
_LOGGER.info(
"Rfxtrx fired event: (event_type: %s, %s: %s, %s: %s)",
EVENT_BUTTON_PRESSED,
ATTR_ENTITY_ID,
RFX_DEVICES[device_id].entity_id,
ATTR_STATE,
event.values['Command'].lower()
)
class RfxtrxDevice(Entity):

View File

@ -369,7 +369,7 @@ pwaqi==1.3
py-cpuinfo==0.2.3
# homeassistant.components.rfxtrx
pyRFXtrx==0.13.0
pyRFXtrx==0.14.0
# homeassistant.components.notify.xmpp
pyasn1-modules==0.0.8