home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.88k stars 30.96k forks source link

Coinbase - AUD wallet amount displayed incorrectly #130579

Open Xatinni opened 1 week ago

Xatinni commented 1 week ago

The problem

AUD Wallet amount is displayed incorrectly, The value is being multiplied by 10 eg. I had 400AUD in my Coinbase AUD Wallet displayed 4,000 AUD, If I buy crypto the the amount is updated but always multiplied by 10,

Sensors AUD Exchange Rate 1.0 AUD BTC Exchange Rate 138,434.78 AUD Coinbase AUD Wallet 1,000 AUD - Incorrect should be 100 AUD Coinbase BTC Wallet 0.002123020 BTC Coinbase DOGE Wallet 154.774668350 DOGE DOGE Exchange Rate 0.6 AUD ETH Exchange Rate 4,908.3 AUD

What version of Home Assistant Core has the issue?

core-2024.11.1

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Coinbase

Link to integration documentation on our website

https://www.home-assistant.io/integrations/coinbase/

Diagnostics information

config_entry-coinbase-01JCKX1DX7QFY2V3Y6MYY90JRB (4).json

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 1 week ago

Hey there @tombrien, mind taking a look at this issue as it has been labeled with an integration (coinbase) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `coinbase` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign coinbase` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


coinbase documentation coinbase source (message by IssueLinks)

TomBrien commented 1 week ago

Is this a new problem you're seeing? I can't recreate this with GBP and there is no special handling for different currencies in the integration. I suspect that this is a case of the Coinbase API doing something weird. If you've had the integration set up for a while and are still using a V2 API (where the API key does not start with organizations). You could try adding an instance of the integration using a new V3 key (follow the instruction here).

Xatinni commented 1 day ago

unfortunately, this is a new setup, so already used the link you attached to setup eg has organizations in the API key , so yes with redacted values, makes it very hard to know if it's the coinbase api, (would be nice if it was the real AUD balance) , suspect you are correct, you haven't by any chance got a link to a nice node.js script or node red V3 api example so I can test. I'm not a real coder, and only know enough to be very very dangerous. so, any help to get me started would save me a load of time. any help would be greatly appreciated