mapper_parsing_exception, failed to parse field [hass.value] of type [long] in document with id 'gHZGyWkBVxYPvKEP6fdQ' caused_by illegal_argument_exception, For input string: "zoning".
Error publishing documents to Elasticsearch: ('5 document(s) failed to index.', [{'index': {'_index': 'hass-events-v2-000001', '_type': 'doc', '_id': 'gHZGyWkBVxYPvKEP6fdQ', 'status': 400, 'error': {'type': 'mapper_parsing_exception', 'reason': "failed to parse field [hass.value] of type [long] in document with id 'gHZGyWkBVxYPvKEP6fdQ'", 'caused_by': {'type': 'illegal_argument_exception', 'reason': 'For input string: "zoning"'}}, 'data': {'hass.domain': 'zone', 'hass.object_id': 'home', 'hass.entity_id': 'zone.home', 'hass.attributes': {'hidden': True, 'latitude': 50.8823, 'longitude': 4.7028, 'radius': 100, 'friendly_name': 'Statik', 'icon': 'mdi:home'}, 'hass.value': 'zoning', '@timestamp': datetime.datetime(2019, 3, 29, 12, 47, 40, 729443), 'agent.name': 'My Home Assistant', 'agent.type': 'hass', 'agent.version': '0.90.2', 'ecs.version': '1.0.0', 'host.geo.location': {'lat': 50.8823, 'lon': 4.7028}, 'host.architecture': 'armv7l', 'host.os.name': 'Linux', 'host.hostname': 'homeassistant', 'tags': ['hass'], 'hass.geo.location': {'lat': 50.8823, 'lon': 4.7028}}}}, {'index': {'_index': 'hass-events-v2-000001', '_type': 'doc', '_id': 'gnZGyWkBVxYPvKEP6fdQ', 'status': 400, 'error': {'type': 'mapper_parsing_exception', 'reason': "failed to parse field [hass.value] of type [long] in document with id 'gnZGyWkBVxYPvKEP6fdQ'", 'caused_by': {'type': 'illegal_argument_exception', 'reason': 'For input string: "sunny"'}}, 'data': {'hass.domain': 'weather', 'hass.object_id': 'leuven', 'hass.entity_id': 'weather.leuven', 'hass.attributes': {'temperature': 15.4, 'humidity': 52, 'pressure': 1030.2, 'wind_bearing': 75, 'wind_speed': 1.8, 'visibility': 21100, 'attribution': 'Data provided by buienradar.nl', 'forecast': [{'datetime': datetime.datetime(2019, 3, 30, 12, 0, tzinfo=<DstTzInfo 'Europe/Amsterdam' CET+1:00:00 STD>), 'condition': 'partlycloudy', 'templow': 5.0, 'temperature': 18.0}, {'datetime': datetime.datetime(2019, 3, 31, 12, 0, tzinfo=<DstTzInfo 'Europe/Amsterdam' CET+1:00:00 STD>), 'condition': 'partlycloudy', 'templow': 5.0, 'temperature': 9.0}, {'datetime': datetime.datetime(2019, 4, 1, 12, 0, tzinfo=<DstTzInfo 'Europe/Amsterdam' CET+1:00:00 STD>), 'condition': 'partlycloudy', 'templow': -1.0, 'temperature': 10.0}, {'datetime': datetime.datetime(2019, 4, 2, 12, 0, tzinfo=<DstTzInfo 'Europe/Amsterdam' CET+1:00:00 STD>), 'condition': 'pouring', 'templow': 1.0, 'temperature': 9.0}, {'datetime': datetime.datetime(2019, 4, 3, 12, 0, tzinfo=<DstTzInfo 'Europe/Amsterdam' CET+1:00:00 STD>), 'condition': 'rainy', 'templow': 2.0, 'temperature': 7.0}], 'friendly_name': 'Leuven'}, 'hass.value': 'sunny', '@timestamp': datetime.datetime(2019, 3, 29, 12, 47, 40, 729443), 'agent.name': 'My Home Assistant', 'agent.type': 'hass', 'agent.version': '0.90.2', 'ecs.version': '1.0.0', 'host.geo.location': {'lat': 50.8823, 'lon': 4.7028}, 'host.architecture': 'armv7l', 'host.os.name': 'Linux', 'host.hostname': 'homeassistant', 'tags': ['hass']}}}, {'index': {'_index': 'hass-events-v2-000001', '_type': 'doc', '_id': 'hnZGyWkBVxYPvKEP6fdQ', 'status': 400, 'error': {'type': 'mapper_parsing_exception', 'reason': "failed to parse field [hass.value] of type [long] in document with id 'hnZGyWkBVxYPvKEP6fdQ'", 'caused_by': {'type': 'illegal_argument_exception', 'reason': 'For input string: "paused"'}}, 'data': {'hass.domain': 'media_player', 'hass.object_id': 'octopus', 'hass.entity_id': 'media_player.octopus', 'hass.attributes': {'volume_level': 0.14, 'is_volume_muted': False, 'media_content_type': 'music', 'media_duration': 0, 'media_position': 0, 'media_position_updated_at': datetime.datetime(2019, 3, 29, 11, 17, 34, 376826, tzinfo=<UTC>), 'media_title': '', 'media_artist': '', 'media_album_name': '', 'source_list': ['C-Dance', 'dorst', 'dorst.m4a', 'FM Brussel', 'Gozadera Fm', 'RGR FM 106.5 (Electronic and Dance)', 'RTBF Pure FM 88.8 (Top-40-Pop)', 'VRT Radio 1', 'VRT Studio Brussel', 'Where Does The Good Go'], 'shuffle': False, 'sonos_group': ['media_player.octopus'], 'friendly_name': 'Octopus', 'supported_features': 64063}, 'hass.value': 'paused', '@timestamp': datetime.datetime(2019, 3, 29, 12, 47, 40, 729443), 'agent.name': 'My Home Assistant', 'agent.type': 'hass', 'agent.version': '0.90.2', 'ecs.version': '1.0.0', 'host.geo.location': {'lat': 50.8823, 'lon': 4.7028}, 'host.architecture': 'armv7l', 'host.os.name': 'Linux', 'host.hostname': 'homeassistant', 'tags': ['hass']}}}, {'index': {'_index': 'hass-events-v2-000001', '_type': 'doc', '_id': 'h3ZGyWkBVxYPvKEP6fdQ', 'status': 400, 'error': {'type': 'mapper_parsing_exception', 'reason': "failed to parse field [hass.value] of type [long] in document with id 'h3ZGyWkBVxYPvKEP6fdQ'", 'caused_by': {'type': 'illegal_argument_exception', 'reason': 'For input string: "paused"'}}, 'data': {'hass.domain': 'media_player', 'hass.object_id': 'rokkie_rollie', 'hass.entity_id': 'media_player.rokkie_rollie', 'hass.attributes': {'volume_level': 0.52, 'is_volume_muted': False, 'media_content_type': 'music', 'media_duration': 71, 'media_position': 0, 'media_position_updated_at': datetime.datetime(2019, 3, 29, 11, 17, 34, 502238, tzinfo=<UTC>), 'media_title': 'Happy Birthday to You - Piano Version', 'media_artist': 'Happy Birthday', 'media_album_name': 'Happy Birthday to You', 'source_list': ['C-Dance', 'dorst', 'dorst.m4a', 'FM Brussel', 'Gozadera Fm', 'RGR FM 106.5 (Electronic and Dance)', 'RTBF Pure FM 88.8 (Top-40-Pop)', 'VRT Radio 1', 'VRT Studio Brussel', 'Where Does The Good Go'], 'shuffle': False, 'sonos_group': ['media_player.rokkie_rollie'], 'friendly_name': 'Rokkie&Rollie', 'entity_picture': '/api/media_player_proxy/media_player.rokkie_rollie?token=8a7ae8a81b0889a2833cfeeca63dd98210dbcebae9f3a728b1e3d9dbeb20d40b&cache=355c957f9c61d46b', 'supported_features': 64063}, 'hass.value': 'paused', '@timestamp': datetime.datetime(2019, 3, 29, 12, 47, 40, 729443), 'agent.name': 'My Home Assistant', 'agent.type': 'hass', 'agent.version': '0.90.2', 'ecs.version': '1.0.0', 'host.geo.location': {'lat': 50.8823, 'lon': 4.7028}, 'host.architecture': 'armv7l', 'host.os.name': 'Linux', 'host.hostname': 'homeassistant', 'tags': ['hass']}}}, {'index': {'_index': 'hass-events-v2-000001', '_type': 'doc', '_id': 'iXZGyWkBVxYPvKEP6fdQ', 'status': 400, 'error': {'type': 'mapper_parsing_exception', 'reason': "failed to parse field [hass.value] of type [long] in document with id 'iXZGyWkBVxYPvKEP6fdQ'", 'caused_by': {'type': 'illegal_argument_exception', 'reason': 'For input string: "yellow"'}}, 'data': {'hass.domain': 'sensor', 'hass.object_id': 'es_cluster_health', 'hass.entity_id': 'sensor.es_cluster_health', 'hass.attributes': {'cluster_name': 'docker-cluster', 'status': 'yellow', 'timed_out': False, 'number_of_nodes': 1, 'number_of_data_nodes': 1, 'active_primary_shards': 4, 'active_shards': 4, 'relocating_shards': 0, 'initializing_shards': 0, 'unassigned_shards': 2, 'delayed_unassigned_shards': 0, 'number_of_pending_tasks': 0, 'number_of_in_flight_fetch': 0, 'task_max_waiting_in_queue_millis': 0, 'active_shards_percent_as_number': 66.66666666666666}, 'hass.value': 'yellow', '@timestamp': datetime.datetime(2019, 3, 29, 12, 47, 40, 729443), 'agent.name': 'My Home Assistant', 'agent.type': 'hass', 'agent.version': '0.90.2', 'ecs.version': '1.0.0', 'host.geo.location': {'lat': 50.8823, 'lon': 4.7028}, 'host.architecture': 'armv7l', 'host.os.name': 'Linux', 'host.hostname': 'homeassistant', 'tags': ['hass']}}}])
Traceback (most recent call last):
File "/config/custom_components/elastic/__init__.py", line 309, in do_publish
bulk_response = bulk(self._gateway.get_client(), actions)
File "/config/deps/lib/python3.7/site-packages/elasticsearch/helpers/__init__.py", line 257, in bulk
for ok, item in streaming_bulk(client, actions, *args, **kwargs):
File "/config/deps/lib/python3.7/site-packages/elasticsearch/helpers/__init__.py", line 192, in streaming_bulk
raise_on_error, *args, **kwargs)
File "/config/deps/lib/python3.7/site-packages/elasticsearch/helpers/__init__.py", line 137, in _process_bulk_chunk
raise BulkIndexError('%i document(s) failed to index.' % len(errors), errors)
elasticsearch.helpers.BulkIndexError: ('5 document(s) failed to index.', [{'index': {'_index': 'hass-events-v2-000001', '_type': 'doc', '_id': 'gHZGyWkBVxYPvKEP6fdQ', 'status': 400, 'error': {'type': 'mapper_parsing_exception', 'reason': "failed to parse field [hass.value] of type [long] in document with id 'gHZGyWkBVxYPvKEP6fdQ'", 'caused_by': {'type': 'illegal_argument_exception', 'reason': 'For input string: "zoning"'}}, 'data': {'hass.domain': 'zone', 'hass.object_id': 'home', 'hass.entity_id': 'zone.home', 'hass.attributes': {'hidden': True, 'latitude': 50.8823, 'longitude': 4.7028, 'radius': 100, 'friendly_name': 'Statik', 'icon': 'mdi:home'}, 'hass.value': 'zoning', '@timestamp': datetime.datetime(2019, 3, 29, 12, 47, 40, 729443), 'agent.name': 'My Home Assistant', 'agent.type': 'hass', 'agent.version': '0.90.2', 'ecs.version': '1.0.0', 'host.geo.location': {'lat': 50.8823, 'lon': 4.7028}, 'host.architecture': 'armv7l', 'host.os.name': 'Linux', 'host.hostname': 'homeassistant', 'tags': ['hass'], 'hass.geo.location': {'lat': 50.8823, 'lon': 4.7028}}}}, {'index': {'_index': 'hass-events-v2-000001', '_type': 'doc', '_id': 'gnZGyWkBVxYPvKEP6fdQ', 'status': 400, 'error': {'type': 'mapper_parsing_exception', 'reason': "failed to parse field [hass.value] of type [long] in document with id 'gnZGyWkBVxYPvKEP6fdQ'", 'caused_by': {'type': 'illegal_argument_exception', 'reason': 'For input string: "sunny"'}}, 'data': {'hass.domain': 'weather', 'hass.object_id': 'leuven', 'hass.entity_id': 'weather.leuven', 'hass.attributes': {'temperature': 15.4, 'humidity': 52, 'pressure': 1030.2, 'wind_bearing': 75, 'wind_speed': 1.8, 'visibility': 21100, 'attribution': 'Data provided by buienradar.nl', 'forecast': [{'datetime': datetime.datetime(2019, 3, 30, 12, 0, tzinfo=<DstTzInfo 'Europe/Amsterdam' CET+1:00:00 STD>), 'condition': 'partlycloudy', 'templow': 5.0, 'temperature': 18.0}, {'datetime': datetime.datetime(2019, 3, 31, 12, 0, tzinfo=<DstTzInfo 'Europe/Amsterdam' CET+1:00:00 STD>), 'condition': 'partlycloudy', 'templow': 5.0, 'temperature': 9.0}, {'datetime': datetime.datetime(2019, 4, 1, 12, 0, tzinfo=<DstTzInfo 'Europe/Amsterdam' CET+1:00:00 STD>), 'condition': 'partlycloudy', 'templow': -1.0, 'temperature': 10.0}, {'datetime': datetime.datetime(2019, 4, 2, 12, 0, tzinfo=<DstTzInfo 'Europe/Amsterdam' CET+1:00:00 STD>), 'condition': 'pouring', 'templow': 1.0, 'temperature': 9.0}, {'datetime': datetime.datetime(2019, 4, 3, 12, 0, tzinfo=<DstTzInfo 'Europe/Amsterdam' CET+1:00:00 STD>), 'condition': 'rainy', 'templow': 2.0, 'temperature': 7.0}], 'friendly_name': 'Leuven'}, 'hass.value': 'sunny', '@timestamp': datetime.datetime(2019, 3, 29, 12, 47, 40, 729443), 'agent.name': 'My Home Assistant', 'agent.type': 'hass', 'agent.version': '0.90.2', 'ecs.version': '1.0.0', 'host.geo.location': {'lat': 50.8823, 'lon': 4.7028}, 'host.architecture': 'armv7l', 'host.os.name': 'Linux', 'host.hostname': 'homeassistant', 'tags': ['hass']}}}, {'index': {'_index': 'hass-events-v2-000001', '_type': 'doc', '_id': 'hnZGyWkBVxYPvKEP6fdQ', 'status': 400, 'error': {'type': 'mapper_parsing_exception', 'reason': "failed to parse field [hass.value] of type [long] in document with id 'hnZGyWkBVxYPvKEP6fdQ'", 'caused_by': {'type': 'illegal_argument_exception', 'reason': 'For input string: "paused"'}}, 'data': {'hass.domain': 'media_player', 'hass.object_id': 'octopus', 'hass.entity_id': 'media_player.octopus', 'hass.attributes': {'volume_level': 0.14, 'is_volume_muted': False, 'media_content_type': 'music', 'media_duration': 0, 'media_position': 0, 'media_position_updated_at': datetime.datetime(2019, 3, 29, 11, 17, 34, 376826, tzinfo=<UTC>), 'media_title': '', 'media_artist': '', 'media_album_name': '', 'source_list': ['C-Dance', 'dorst', 'dorst.m4a', 'FM Brussel', 'Gozadera Fm', 'RGR FM 106.5 (Electronic and Dance)', 'RTBF Pure FM 88.8 (Top-40-Pop)', 'VRT Radio 1', 'VRT Studio Brussel', 'Where Does The Good Go'], 'shuffle': False, 'sonos_group': ['media_player.octopus'], 'friendly_name': 'Octopus', 'supported_features': 64063}, 'hass.value': 'paused', '@timestamp': datetime.datetime(2019, 3, 29, 12, 47, 40, 729443), 'agent.name': 'My Home Assistant', 'agent.type': 'hass', 'agent.version': '0.90.2', 'ecs.version': '1.0.0', 'host.geo.location': {'lat': 50.8823, 'lon': 4.7028}, 'host.architecture': 'armv7l', 'host.os.name': 'Linux', 'host.hostname': 'homeassistant', 'tags': ['hass']}}}, {'index': {'_index': 'hass-events-v2-000001', '_type': 'doc', '_id': 'h3ZGyWkBVxYPvKEP6fdQ', 'status': 400, 'error': {'type': 'mapper_parsing_exception', 'reason': "failed to parse field [hass.value] of type [long] in document with id 'h3ZGyWkBVxYPvKEP6fdQ'", 'caused_by': {'type': 'illegal_argument_exception', 'reason': 'For input string: "paused"'}}, 'data': {'hass.domain': 'media_player', 'hass.object_id': 'rokkie_rollie', 'hass.entity_id': 'media_player.rokkie_rollie', 'hass.attributes': {'volume_level': 0.52, 'is_volume_muted': False, 'media_content_type': 'music', 'media_duration': 71, 'media_position': 0, 'media_position_updated_at': datetime.datetime(2019, 3, 29, 11, 17, 34, 502238, tzinfo=<UTC>), 'media_title': 'Happy Birthday to You - Piano Version', 'media_artist': 'Happy Birthday', 'media_album_name': 'Happy Birthday to You', 'source_list': ['C-Dance', 'dorst', 'dorst.m4a', 'FM Brussel', 'Gozadera Fm', 'RGR FM 106.5 (Electronic and Dance)', 'RTBF Pure FM 88.8 (Top-40-Pop)', 'VRT Radio 1', 'VRT Studio Brussel', 'Where Does The Good Go'], 'shuffle': False, 'sonos_group': ['media_player.rokkie_rollie'], 'friendly_name': 'Rokkie&Rollie', 'entity_picture': '/api/media_player_proxy/media_player.rokkie_rollie?token=8a7ae8a81b0889a2833cfeeca63dd98210dbcebae9f3a728b1e3d9dbeb20d40b&cache=355c957f9c61d46b', 'supported_features': 64063}, 'hass.value': 'paused', '@timestamp': datetime.datetime(2019, 3, 29, 12, 47, 40, 729443), 'agent.name': 'My Home Assistant', 'agent.type': 'hass', 'agent.version': '0.90.2', 'ecs.version': '1.0.0', 'host.geo.location': {'lat': 50.8823, 'lon': 4.7028}, 'host.architecture': 'armv7l', 'host.os.name': 'Linux', 'host.hostname': 'homeassistant', 'tags': ['hass']}}}, {'index': {'_index': 'hass-events-v2-000001', '_type': 'doc', '_id': 'iXZGyWkBVxYPvKEP6fdQ', 'status': 400, 'error': {'type': 'mapper_parsing_exception', 'reason': "failed to parse field [hass.value] of type [long] in document with id 'iXZGyWkBVxYPvKEP6fdQ'", 'caused_by': {'type': 'illegal_argument_exception', 'reason': 'For input string: "yellow"'}}, 'data': {'hass.domain': 'sensor', 'hass.object_id': 'es_cluster_health', 'hass.entity_id': 'sensor.es_cluster_health', 'hass.attributes': {'cluster_name': 'docker-cluster', 'status': 'yellow', 'timed_out': False, 'number_of_nodes': 1, 'number_of_data_nodes': 1, 'active_primary_shards': 4, 'active_shards': 4, 'relocating_shards': 0, 'initializing_shards': 0, 'unassigned_shards': 2, 'delayed_unassigned_shards': 0, 'number_of_pending_tasks': 0, 'number_of_in_flight_fetch': 0, 'task_max_waiting_in_queue_millis': 0, 'active_shards_percent_as_number': 66.66666666666666}, 'hass.value': 'yellow', '@timestamp': datetime.datetime(2019, 3, 29, 12, 47, 40, 729443), 'agent.name': 'My Home Assistant', 'agent.type': 'hass', 'agent.version': '0.90.2', 'ecs.version': '1.0.0', 'host.geo.location': {'lat': 50.8823, 'lon': 4.7028}, 'host.architecture': 'armv7l', 'host.os.name': 'Linux', 'host.hostname': 'homeassistant', 'tags': ['hass']}}}])