Using Assist to record blood glucose and pressure readings?

I am in the process of turning my house into a smart house. I am a diabetic with severe hypertension. I am hoping to be able to achieve simply saying “Hey Nabu, log my blood sugar as 150” or “Hey Nabu, log my blood pressure as 100 over 80” etc and then be able to print off a list of the various records and input times as at a later date.

Does anybody have any ideas on how too achieve this?

Thank you so much for your help.

Personally, I’d use the File integration to create a text file which could be opened in Excel, a word processor, text editor or any other handy app, from which you could format and print it however you want. If desired, you could also do some analysis or calculations using the data in that file.

But this is HA. No doubt there are other ways.

2 Likes

Ive tried to figure out how to do this and cant seem to figure it out, any way you could come up with an example yaml code for me? ide be very grateful.

I can give you a working example that I use. It’s not exactly what you want, but it demonstrates how to add a line to a text file.

- id: id_boiler_zone2
  alias: Boiler zone2
  trigger:
  - platform: state
    entity_id: binary_sensor.heat_zone_2
  condition:
  - "{{ trigger.from_state.state not in ['unknown', 'unavailable'] }}"
  - "{{ trigger.to_state.state not in ['unknown', 'unavailable'] }}"
  action:
  - service: notify.send_message
    data:
      entity_id: notify.zone2log
      message: "{{ now().strftime('%x') }} {{ now().strftime('%X') }}\tzone2 {{ trigger.to_state.state\
        \ }}\t{{ ((trigger.to_state.last_changed|as_timestamp) - (trigger.from_state.last_changed|as_timestamp))\
        \ | timestamp_custom('%H:%M:%S',0) }}"

To summarize, when the state of the entity which monitors Zone 2 of my heating system changes, a line is written to the file defined in the file integration as “zone2log.” That line has the date and time (in a format I prefer,) the current state, and how long it’s been in the previous state.

1 Like