diff --git a/homeassistant/components/rfxtrx.py b/homeassistant/components/rfxtrx.py index f8a4f29738f..56026168383 100644 --- a/homeassistant/components/rfxtrx.py +++ b/homeassistant/components/rfxtrx.py @@ -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): diff --git a/requirements_all.txt b/requirements_all.txt index 291ef4813a0..a4542aa5dcb 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -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