diff --git a/homeassistant/components/light/rfxtrx.py b/homeassistant/components/light/rfxtrx.py index 5d6f41fe509..d9b32bd2faf 100644 --- a/homeassistant/components/light/rfxtrx.py +++ b/homeassistant/components/light/rfxtrx.py @@ -59,6 +59,11 @@ def setup_platform(hass, config, add_devices_callback, discovery_info=None): # Check if entity exists or previously added automatically if entity_id in rfxtrx.RFX_DEVICES: + _LOGGER.debug( + "EntityID: %s light_update. Command: %s", + entity_id, + event.values['Command'] + ) if event.values['Command'] == 'On'\ or event.values['Command'] == 'Off': if event.values['Command'] == 'On': diff --git a/homeassistant/components/logger.py b/homeassistant/components/logger.py index 019102fa6f4..ea12cc0c58b 100644 --- a/homeassistant/components/logger.py +++ b/homeassistant/components/logger.py @@ -8,13 +8,23 @@ https://home-assistant.io/components/logger.html Sample configuration +# By default log all messages and ignore log event lowest than critical +# for custom omponents logger: - default: critical + default: info logs: - homeassistant.components: debug homeassistant.components.device_tracker: critical homeassistant.components.camera: critical +# By default ignore all messages lowest than critical and log event +# for custom components +logger: + default: critical + logs: + homeassistant.components: info + homeassistant.components.rfxtrx: debug + homeassistant.components.device_tracker: critical + homeassistant.components.camera: critical """ import logging from collections import OrderedDict diff --git a/homeassistant/components/sensor/rfxtrx.py b/homeassistant/components/sensor/rfxtrx.py index 220d4ddbca7..b33206faa29 100644 --- a/homeassistant/components/sensor/rfxtrx.py +++ b/homeassistant/components/sensor/rfxtrx.py @@ -43,6 +43,10 @@ def setup_platform(hass, config, add_devices_callback, discovery_info=None): rfxtrx.RFX_DEVICES[entity_id] = new_sensor add_devices_callback([new_sensor]) else: + _LOGGER.debug( + "EntityID: %s sensor_update", + entity_id, + ) rfxtrx.RFX_DEVICES[entity_id].event = event if sensor_update not in rfxtrx.RECEIVED_EVT_SUBSCRIBERS: diff --git a/homeassistant/components/switch/rfxtrx.py b/homeassistant/components/switch/rfxtrx.py index 49a788d0d04..5654725e6b0 100644 --- a/homeassistant/components/switch/rfxtrx.py +++ b/homeassistant/components/switch/rfxtrx.py @@ -61,6 +61,11 @@ def setup_platform(hass, config, add_devices_callback, discovery_info=None): # Check if entity exists or previously added automatically if entity_id in rfxtrx.RFX_DEVICES: + _LOGGER.debug( + "EntityID: %s switch_update. Command: %s", + entity_id, + event.values['Command'] + ) if event.values['Command'] == 'On'\ or event.values['Command'] == 'Off': if event.values['Command'] == 'On':