Are you seeing the correct values in your sensors? I simply ran the script and printed bg.value to see if it’s working. My sensors still show as unavailable. Confirm that pydexcon is 0.2.1 now.
generic
December 3, 2021, 3:42am
23
You’d need to replicate the changes included in the PR that I linked above.
For the details, here’s why simply installing pydexcom 0.2.1 wont just work in HA Core: Bump pydexcom version to 0.2.1 by gagebenne · Pull Request #60812 · home-assistant/core · GitHub
I’m just planning on waiting for the next prod release of HA Core which I’m betting is soon for their December release.
You could also run the latest dev build of HA Core with the fixes.
1 Like
ski_maniac
(Bruno Grenier)
December 3, 2021, 5:38pm
24
missing x in Dexcom ?
pip3 install pydexcom==0.2.1
generic
December 3, 2021, 11:59pm
25
Yes there was a “c” instead of “x”. He edited his original post now. It is “pydexcom”.
1 Like
eldeboero
(eldeboero)
December 9, 2021, 2:19am
26
This started impacting us in the US today. Thank you so much for having the fix already, works like a charm!
2 Likes
wseltzer
(Wayne Seltzer)
December 9, 2021, 3:23am
27
Confirmed the fix is working on my HA instance in the US.
ssh
sudo docker exec -it $(docker ps -f name=homeassistant -q) bash
pip3 install pydexcom==0.2.1
edited the versions in the various files (referenced in a previous post: Bump pydexcom version to 0.2.1…)
2 Likes
julian1059
(Julian Maze)
December 9, 2021, 7:45am
28
If anyone needs to deploy the quick fix before the 2021.12 release drops on 12/11/21 and is using a supervised/hassos standup, here are some helpful tips.
Use the login command in the hassos vm to pop a root shell.
Then use docker exec -it homeassistant /bin/bash to pop into the core container
Then run pip3 install pydexcom==0.2.1
Edit the following files in the components folder: Bump pydexcom version to 0.2.1 by gagebenne · Pull Request #60812 · home-assistant/core · GitHub
My components folder was in /usr/src/homeassistant/homeassistant/components
Use this command to find the directory if the components folder is not in the above location: find / -name “manifest.json” | grep dexcom
2 Likes
Lewis
December 10, 2021, 2:34pm
29
Thank you for this!
I was struggling with how and where, using the hassos managed.
Lewis
December 10, 2021, 8:16pm
30
Q: what u&p are used for the login command?
generic
December 11, 2021, 11:55pm
32
The December release is out! The Dexcom integration is back to working!
Great work everyone!
1 Like
zivgin
(Ziv)
December 12, 2021, 10:11pm
33
Is there something i need to do to get it back working?
generic
December 13, 2021, 12:53am
34
I just re-enabled the integration and it worked perfect. I had also been testing out the latest version of pydexcom with no problems.
Just update to 2021-12 or higher and it gets fixed. It just started working immediately after the reboot.
It appears that Dexcom is offline for me again today. Anyone else? Different error though:
Logger: pydexcom
Source: /usr/local/lib/python3.9/site-packages/pydexcom/init .py:121
First occurred: 9:02:01 AM (1 occurrences)
Last logged: 9:02:01 AM
Session ID null
Edit: Maybe it was just me. Removing and re-adding the integration fixed it.
There were some authentication changes with the endpoints, I should have a fix for pydexcom
later today, and a Home Assistant version bump promptly.
opened 04:11AM - 09 Dec 21 UTC
bug
The new endpoints are tweaked slightly in terms of responses for bad authenticat… ion, and those tests are failing. The tests need to be modified to match the new responses.
1 Like
Okay, it’s fixed. Feel free to manually change pydexcom
to 0.2.2
in your Home Assistant to get things back up, otherwise follow the PR here:
home-assistant:dev
← gagebenne:dev
opened 02:35PM - 17 Dec 21 UTC
## Proposed change
<!--
Describe the big picture of your changes here to com… municate to the
maintainers why we should accept this pull request. If it fixes a bug
or resolves a feature request, be sure to link to that issue in the
additional information section.
-->
Due to more API endpoint changes, authentication was broken. The underlying Python package was updated to reflect this changes.
gagebenne/pydexcom/issues/18
[gagebenne/pydexcom@`0.2.1...0.2.2`](https://github.com/gagebenne/pydexcom/compare/0.2.1...0.2.2)
## Type of change
<!--
What type of change does your PR introduce to Home Assistant?
NOTE: Please, check only 1! box!
If your PR requires multiple boxes to be checked, you'll most likely need to
split it into multiple PRs. This makes things easier and faster to code review.
-->
- [x] Dependency upgrade
- [x] Bugfix (non-breaking change which fixes an issue)
- [ ] New integration (thank you!)
- [ ] New feature (which adds functionality to an existing integration)
- [ ] Breaking change (fix/feature causing existing functionality to break)
- [ ] Code quality improvements to existing code or addition of tests
## Additional information
<!--
Details are important, and help maintainers processing your PR.
Please be sure to fill out additional details, if applicable.
-->
- This PR fixes or closes issue: fixes #61729
- This PR is related to issue:
- Link to documentation pull request:
## Checklist
<!--
Put an `x` in the boxes that apply. You can also fill these out after
creating the PR. If you're unsure about any of them, don't hesitate to ask.
We're here to help! This is simply a reminder of what we are going to look
for before merging your code.
-->
- [ ] The code change is tested and works locally.
- [ ] Local tests pass. **Your PR cannot be merged unless tests pass**
- [ ] There is no commented out code in this PR.
- [ ] I have followed the [development checklist][dev-checklist]
- [ ] The code has been formatted using Black (`black --fast homeassistant tests`)
- [ ] Tests have been added to verify that the new code works.
If user exposed functionality or configuration variables are added/changed:
- [ ] Documentation added/updated for [www.home-assistant.io][docs-repository]
If the code communicates with devices, web services, or third-party tools:
- [x] The [manifest file][manifest-docs] has all fields filled out correctly.
Updated and included derived files by running: `python3 -m script.hassfest`.
- [x] New or updated dependencies have been added to `requirements_all.txt`.
Updated by running `python3 -m script.gen_requirements_all`.
- [x] For the updated dependencies - a link to the changelog, or at minimum a diff between library versions is added to the PR description.
- [x] Untested files have been added to `.coveragerc`.
The integration reached or maintains the following [Integration Quality Scale][quality-scale]:
<!--
The Integration Quality Scale scores an integration on the code quality
and user experience. Each level of the quality scale consists of a list
of requirements. We highly recommend getting your integration scored!
-->
- [ ] No score or internal
- [ ] 🥈 Silver
- [ ] 🥇 Gold
- [ ] 🏆 Platinum
<!--
This project is very active and we have a high turnover of pull requests.
Unfortunately, the number of incoming pull requests is higher than what our
reviewers can review and merge so there is a long backlog of pull requests
waiting for review. You can help here!
By reviewing another pull request, you will help raise the code quality of
that pull request and the final review will be faster. This way the general
pace of pull request reviews will go up and your wait time will go down.
When picking a pull request to review, try to choose one that hasn't yet
been reviewed.
Thanks for helping out!
-->
To help with the load of incoming pull requests:
- [ ] I have reviewed two other [open pull requests][prs] in this repository.
[prs]: https://github.com/home-assistant/core/pulls?q=is%3Aopen+is%3Apr+-author%3A%40me+-draft%3Atrue+-label%3Awaiting-for-upstream+sort%3Acreated-desc+review%3Anone
<!--
Thank you for contributing <3
Below, some useful links you could explore:
-->
[dev-checklist]: https://developers.home-assistant.io/docs/en/development_checklist.html
[manifest-docs]: https://developers.home-assistant.io/docs/en/creating_integration_manifest.html
[quality-scale]: https://developers.home-assistant.io/docs/en/next/integration_quality_scale_index.html
[docs-repository]: https://github.com/home-assistant/home-assistant.io
zivgin
(Ziv)
December 18, 2021, 3:54pm
39
Am i the only person who gets false numbers and state?
I feel like there’s a a delay between the dexcom and the HA that wasn’t there before.
It’s like there’s an added delay now.
generic
December 22, 2021, 9:03am
40
Mine has been perfect since the pydexcom update.
wseltzer
(Wayne Seltzer)
December 23, 2021, 9:47pm
41
Looks like Dexcom’s U.S. server is having problems again today. My Dexcom integration isn’t getting data.
https://status.dexcom.com/