yo-han / Home-Assistant-Carelink

Unofficial Home Assistant Carelink Component
MIT License
19 stars 8 forks source link

Wrong values since last upate #67

Closed nightfever77 closed 2 months ago

nightfever77 commented 2 months ago

Updated to the latest version and re-integrated:

These are some of those I monitor. There are more that shows 0.

This might be due to an update issue. I did not receive any update since I re-integrated an hour ago. Re-loading the integration does not update the sensor values.

Restarting now for debug.

nightfever77 commented 2 months ago

Debug output:

2024-02-20 10:52:13.011 DEBUG (MainThread) [custom_components.carelink.api] Carelink API: get_connect_display_message() 2024-02-20 10:52:13.011 DEBUG (MainThread) [custom_components.carelink.api] Carelink API: get_data() 2024-02-20 10:52:13.215 DEBUG (MainThread) [custom_components.carelink] Using timezone Europe/Vienna 2024-02-20 10:52:13.217 DEBUG (MainThread) [custom_components.carelink] the marker with type 'AUTO_MODE_STATUS' could not be tracked correctly. Check if your Carelink data contains a key with the name list index out of range, it seems to be missing. 2024-02-20 10:52:13.217 DEBUG (MainThread) [custom_components.carelink] the marker with type 'LOW_GLUCOSE_SUSPENDED' could not be tracked correctly. Check if your Carelink data contains a key with the name list index out of range, it seems to be missing. 2024-02-20 10:52:13.217 DEBUG (MainThread) [custom_components.carelink] _async_update_data: {'client_timezone': 'Central European Standard Time', 'last_update_timestamp': datetime.datetime(2024, 2, 20, 10, 34, tzinfo=zoneinfo.ZoneInfo(key='Europe/Warsaw')), 'last_sg_timestamp': datetime.datetime(2024, 2, 20, 8, 54, tzinfo=zoneinfo.ZoneInfo(key='Europe/Warsaw')), 'last_sg_mmol': 11.16, 'last_sg_mgdl': 201, 'last_sg_delta': 3.0, 'pump_battery_level': 0, 'conduit_battery_status': 0, 'sensor_battery_level': 59, 'sensor_duration_hours': 0, 'sensor_duration_minutes': 0, 'reservoir_level': 0, 'reservoir_amount': 0, 'reservoir_remaining_units': 0.0, 'last_sg_trend': 'NONE', 'time_to_next_calib_hours': 0, 'active_insulin': -1.0, 'last_alarm': datetime.datetime(2024, 2, 20, 0, 18, 52, tzinfo=zoneinfo.ZoneInfo(key='Europe/Warsaw')), 'last_alarm_attributes': {'code': 836, 'datetime': '2024-02-20T00:18:52.000-00:00', 'type': 'ALERT', 'flash': False, 'instanceId': 2109, 'messageId': 'BC_SID_GLUCOSE_WAS_HIGHER_THREE_HOURS', 'pumpDeliverySuspendState': False, 'referenceGUID': '7e5b832a-522d-3d98-83fb-ddc01b46af5e', 'relativeOffset': -31204, 'alertSilenced': False, 'kind': 'ALERT', 'version': 1}, 'active_basal_pattern': None, 'average_glucose_level_mmol': 10.16, 'average_glucose_level_mgdl': 183, 'below_hypo_limit': 0, 'above_hyper_limit': 34, 'time_in_range': 0, 'max_auto_basal_rate': 1.0221, 'sg_below_limit': 50, 'last_marker_meal': datetime.datetime(2024, 2, 20, 0, 20, 45, tzinfo=zoneinfo.ZoneInfo(key='Europe/Warsaw')), 'last_marker_meal_attributes': {'type': 'MEAL', 'index': 164, 'kind': 'Marker', 'version': 1, 'dateTime': '2024-02-20T00:20:45.000-00:00', 'relativeOffset': -31091, 'amount': 26}, 'last_marker_insulin': datetime.datetime(2024, 2, 20, 8, 53, 41, tzinfo=zoneinfo.ZoneInfo(key='Europe/Warsaw')), 'last_marker_insulin_attributes': {'type': 'INSULIN', 'index': 266, 'kind': 'Marker', 'version': 1, 'dateTime': '2024-02-20T08:53:41.000-00:00', 'relativeOffset': -315, 'programmedExtendedAmount': 0.0, 'activationType': 'AUTOCORRECTION', 'deliveredExtendedAmount': 0.0, 'programmedFastAmount': 0.2, 'programmedDuration': 0, 'deliveredFastAmount': 0.2, 'id': 40, 'effectiveDuration': 0, 'completed': True, 'bolusType': 'FAST'}, 'last_marker_auto_basal_delivery': datetime.datetime(2024, 2, 20, 8, 58, 47, tzinfo=zoneinfo.ZoneInfo(key='Europe/Warsaw')), 'last_marker_auto_basal_delivery_attributes': {'type': 'AUTO_BASAL_DELIVERY', 'index': 267, 'kind': 'Marker', 'version': 1, 'dateTime': '2024-02-20T08:58:47.000-00:00', 'relativeOffset': -9, 'id': 41, 'bolusAmount': 0.075}, 'last_marker_auto_mode_status': None, 'last_marker_low_glucose_suspend': None, 'binary_sensor_pump_comm_state': False, 'binary_sensor_sensor_comm_state': False, 'binary_sensor_conduit_in_range': False, 'binary_sensor_conduit_pump_in_range': False, 'binary_sensor_conduit_sensor_in_range': False, 'pump serial': 'NG3403131H', 'pump name': 'Alexander', 'pump model': 'MMT-1886', 'app_model_type': 'BLE_20_COMM', 'medical_device_manufacturer': 'Medtronic', 'medical_device_model_number': 'MMT-1886', 'medical_device_hardware_revision': 'A2.01', 'medical_device_firmware_revision': '8.13.2', 'medical_device_system_id': '40003403131 9207'} 2024-02-20 10:52:13.217 DEBUG (MainThread) [custom_components.carelink] Finished fetching carelink data in 0.206 seconds (success: True)

nightfever77 commented 2 months ago

My god... My pump lost connection to mobile app at that time. Please close the thread, sorry.