Could you share your flow?
I’ve got my node red done great with Alexa announcing highs and lows… but I don’t need her doing this every 5 minutes!
I’ve just run out of ideas for noding a delay and re-check.
Could you share your flow?
I’ve got my node red done great with Alexa announcing highs and lows… but I don’t need her doing this every 5 minutes!
I’ve just run out of ideas for noding a delay and re-check.
Does this tomato app work? I am trying to add my libre 2 to the app but it keeps asking me to download the patched librelink app which I have but just can’t get it working.
I don’t use libre any more. I have a tandem pump that links to dexcom so I switched to dexcom. I can’t remember the tomato details, but it worked at the time.
I’ve also got Nightscout in Ha but finding it very restricted in what we can do with it, I came over to Ha due to Google removing API to allow us voice prompts on what Nightscout and AAPS inputs to then be telling me more details on how many days the sensor has been on me and carbs on board and insulin on board.
I’m like this somehow back in Ha and on display when it is triggered.
I also like lights to change colors to warn us when Low or High but on my attempts with Scenes in it but again I stopped doing it due to it needing constant attention due to something to do with snapshots also does not survive a restart of Home Assistant, so this needs a fix too for me to be able to use it in piece!
Basically, it does what you want but if you need to turn off the Ha system in my case a Ikool core it will need to be done. I have not figured out how to re get it started yet!
But if we can find ways so it can survive these restarts that setup is great.
I’m not fully sure how you have got nightscout into Ha as I think I got my in with a simple Url card.
But if we can all help on these things in this community will be great! I think we are on a vote too to have a Health’ category in the forum but I also feel we need a Type 1 Tag or group too as there are so many varying ways we have to deal with and a lot of categories to deal with!
But we have to start somewhere
I will share this too what Nickrout wants too!
It Might of already been posted but I’m just sharing!
This is a little of my setup so far and want it to get better in HA now!
I also love xdrip to be in here too.
But Nightscout is getting Xdrips readings anyway
Nightscout in HA with Auto detection
I do not have it like that not I reduced the size of it due to a new Dashboard.
It can be a bit laggy getting reading on at times not sure why but I think its down to using the URL in HA
Also, the lock on it keeps requesting your secret to get into the setting which I have been told is a bug within Nightscout.
I’m setup with Heroku and do it in there, not sure on your setup.
@Thediabeticway getting your nightscout web page into HA doesn’t give you sensors. If you want to analyze your data and display it in your own graphs and get it announced you need sensors.
My nightscout is integrated via rest, like this
rest:
- resource: https://SECRET-upload-0-guest.t1pal.com/api/v1/entries/current.json
scan_interval: 150
sensor:
- name: Blood Sugar
value_template: '{{ (value_json[0].sgv/18)|round(1)}}'
unit_of_measurement: mmol/L
icon: mdi:diabetes
- name: "Blood Sugar Delta"
value_template: '{{ (value_json[0].delta/18)|round(2)}}'
unit_of_measurement: mmol/L
- name: Blood Sugar Trend
value_template: '{{ value_json[0].direction}}'
Notes: the nightscout api returns mg/dL, divide by 18 to get mmol/L
The api address will be the address you use in nightscout in your browser
Update interval 2.5 mins (150s) - dexcom reads every 5 minutes. Seems to be often enough for me.
Thanks Nick for this! way.
what do you mean by Sensors? Dexcom Sensors? or another sensor type
Or are you meaning this one I already have in HA!
Nightscout Intergration
I mean a sensor on home assistant terms. See Sensor - Home Assistant
The code I posted provides the sensors in home assistant “sensor.blood_sugar”, “sensor.blood_sugar_delta” and “sensor.blood_sugar_trend”
Once you have these sensors you can further process them, graph them, create a notification for high and low blood sugar, etc.
Ok brilliant thank you will have to try to get this fully setup now!
So can we add Sensor age onto it, then be able to get voice prompts?
or maybe at least reminders daily would be good.
Where is this information your code added in HA?
In configuration.yaml
could it not be possible to use en-us.json code and then some how get this in HA?! { "name": { "value": "cgm tx age", "synonyms": [ "tx age", "transmitter age", "cgm transmitter age" ] } },
Thanks for this !
I see your using T1PAL whereas I’m using Heroku what do I add for my URL or the one you add your API code and link to it?
Seems a lot different to adding it into this setup! Has it also as a current,json at the end of it !
Sorry for my silly questions I’m usless on code
Is the code like
YOURSITENAME https://[email protected]/api/v1/
this and then add this bit to the end of my code?
entries/current.json
scan_interval: 150
Hopfuly somthing like this?
How will I know if the code as worked ok?
Do I need to do anything else?
As I said, whatever you put into your web browser to get nightscout, so if you put https://[email protected]/
into your browser, your setup is correct.
You will know it has worked when you get entities for the setup in developer-tools/states
I don’t know what en-us.json means.
a) don’t SHOUT
b) reminders of what? or voice prompts for what?
c) sensor age can be obtained from the current.json endpoint. Here is the complete endpoint. You’ll see it has unix style date and a dateString.
[
{"_id":"6606209acd16eb6fabe12e17",
"device":"xDrip-DexcomG5",
"date":1711677590402,
"dateString":"2024-03-29T01:59:50.402Z",
"sgv":145,
"delta":-3.5,
"direction":"Flat",
"type":"sgv",
"filtered":0,
"unfiltered":0,
"rssi":100,
"noise":1,
"sysTime":"2024-03-29T01:59:50.402Z",
"utcOffset":780}
]
You could add another sensor, or an attribute to the existing sensor.
do you mind sharing all the code and details how to get this setup please?
I di done with Senes but it tends to fail i fyou have had to restart the HA system which is very annoying to have to keep finding out how to reset it.
In my case was 3 weeks ago and I sti;; not got around to reseting it!
Its good when it was doing it apart from light being stil on and I want sleep
Could you please check your spelling. Some of your posts are unreadable.
for it to do somthing like this to happen in HA. Ok Google Nightscout Status
The sensor was inserted a day ago
which has come from where I enter details into AAPS
the day I put my sensor onto me.
So then we can have this daily to remind us when we need to change the sensor!
Sorry was my mistake me pressing caps on keyboard I changed it now to lower case for you!
Like this you mean?
Not fully understanding what you mean by this? But I’m meaaning to some how get this code from a Template into HA not at all sure how but this is what I’m meaning. I can give you the link to the Template if that make it easier for you to understand what I’m meaning?
Are you refering to me on this? If so then can we please have a spell checking in these replies as I have Dyslexia and I do my best!
This thread does that for a sensor Frontend Panel for Diabetics using a Dexcom CGM
Also, if the info is available in Nightscout, you know how to get it. For other endpoints you can look at your Nightscout website, the SWAGGER documentation is at http://nightscouturl/api-docs. Read up on swagger if you are not familiar, it lets you try an API interactively. You’re going to learn a bit about json
As for the type of display you showed with a text of what your stats are, I knocked up a quick Markdown Card.
The config is
type: markdown
content: >+
Nick's Blood Sugar is {{states('sensor.blood_sugar')}} mmol/L. It changed by
{{states('sensor.blood_sugar_delta')}}.
title: Nick's Levels
Displays this
Of course you can get far more complex.
If you want a device to speak this, use one of the tts services. If you want it notified to your phone or some other service, use a notification integration.
Sorry, wasn’t trying to embarrass you.
Thanks
I’m not sure if I can use Dexcom as I have no receiver to get my reading into their clarity, when I did use my G6 receiver then I was able too! I liked using Tidepool rather than Clarity but that was not right up to date from getting your reading there was a few hour’s delay on the display of your readings! But handy to know this when I do have a receiver. Unless I can get it in with Nightscout?
I will see if I can get thing working now, How do I get a display in Ha like Xdrips
The Markdown is good! thank you! It still shows up in mg rather than mmols though it says it in the code mmols so not sure why mines showing mg though it can be handy to have it Id still prefer mmols
Will it be possible then to have notifications coming from within a Markdown?
The swagger.yaml does not seem to be working on that page! But you can find it Here:
So I have gone here: Not sure if the correct place but seems it?:
I have already got Care Portal setup in Nightscout but totaly lost on this what too do its too complicated to understand it properly for me to do, would be helpful it being broken down more so it will be eaasier to understand it!
These links are also not working!
The swagger.yaml does not seem to be working on that page! But you can find it Here:
Having a little play around with trying to figure the code I got this out from my browser, not totaly sure what information its given me as Its suppose to give me (BGs between 2 days:) But I not got that many in my broswer and not sure if svg means mg in the output?
Nothing embarrasses me just frustrates me I get it wrong!
Well maybe some thing embarres me with hypos but thats another 10000 stories
Thanks at least I got somthing in HA now
I’ve improved it a little but not at all sure how I got mmols into my Ha think its been more luck than knowing how I did it!
And yes I’ve eaten an Apple, just takes 20mins to raise! but in this case might not have Stay safe and don’t be me