yo-han / Home-Assistant-Carelink

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

Adding support for Banner Tag #42

Closed hhuitema closed 9 months ago

hhuitema commented 10 months ago

The Carelink JSON data has the support for Certain Banner Messages to be shown, when they are relevant. On the actual pump these are the semi permanent messages that require an action or display the special condition of the patient at that moment.

The request is if it would be possible to add the Banner Tag as a mapped sensor value. By default there is no value present, but in case of the below mentioned enumerations a human readable value can be shown.

The normal state of the pump in JSON data is like this: "pumpBannerState": [],

When in a special state is shows like this: "pumpBannerState": [ { "type": "SUSPENDED_BEFORE_LOW" } ],

In the Java Client there was an actual breakdown of all the known messages that could be present. I took the effort to translate to actual messages being used on the pump in english and dutch.

Type value is an enumeration of specific values (in english) Value;Nice Name;Nice Name Dutch DUAL_BOLUS;Dual Wave Bolus;Dual Wave Bolus SQUARE_BOLUS;Square Wave Bolus;Square Wave Bolus
LOAD_RESERVOIR;Load Reservoir;Reservoir Laden SUSPENDED_ON_LOW;Suspend on low;Stop bij laag SUSPENDED_BEFORE_LOW;Suspend before low;Stop voor laag DELIVERY_SUSPENDED;Delivery suspended;Basaal gestopt BG_REQUIRED;BG required;BG Benodigd PROCESSING_BG;Processing BG;Verwerken BG WAIT_TO_ENTER_BG;Wait to enter BG;Wacht invoeren BG TEMP_TARGET;Temporary Target;Tijdelijke streefwaarde TEMP_BASAL;Temporary Basal;Tijdelijke basaal NO_DELIVERY;No delivery;Geen basaal CALIBRATION_REQUIRED;Calibration required;Kalibratie vereist

github-actions[bot] commented 9 months ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 9 months ago

This issue was closed because it has been inactive for 14 days since being marked as stale.