Add log info in the rfxtrx component

This commit is contained in:
badele committed 2015-11-08 11:15:03 +01:00
1 parent 0c97280479
commit ebc95aca51
3 files changed
+14

No files matched your search

+5
View File
@@ -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.info(
"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':