diff --git a/homeassistant/components/influxdb.py b/homeassistant/components/influxdb.py index 167767bc00e0e5ff460a86333c4067547f5d6192..08296ad65c7ec182f41de909222e6a4643f82c76 100644 --- a/homeassistant/components/influxdb.py +++ b/homeassistant/components/influxdb.py @@ -120,7 +120,8 @@ def setup(hass, config): for key, value in state.attributes.items(): if key != 'unit_of_measurement': - if isinstance(value, (str, float, bool)): + if isinstance(value, (str, float, bool)) or \ + key.endswith('_id'): json_body[0]['fields'][key] = value elif isinstance(value, int): # Prevent column data errors in influxDB.