Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No sensor found, and no errors in logs #21

Closed
shadyabhi opened this issue Jun 28, 2022 · 1 comment
Closed

No sensor found, and no errors in logs #21

shadyabhi opened this issue Jun 28, 2022 · 1 comment

Comments

@shadyabhi
Copy link

shadyabhi commented Jun 28, 2022

Log:-

$ klogs home | grep ynab
2022-06-28 15:57:24 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration ynab which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-06-28 15:57:25 INFO (MainThread) [custom_components.ynab]
ynab
https://github.com/wxt9861/ynab/issues
2022-06-28 15:57:28 DEBUG (MainThread) [custom_components.ynab] Connection with YNAB established
2022-06-28 15:57:28 DEBUG (MainThread) [custom_components.ynab] YAML configured budget - ef98fccb-e212-43ea-99c5-6ec5f00b130d
2022-06-28 15:57:28 DEBUG (MainThread) [custom_components.ynab] Monitoring categories - ['Groceries']
2022-06-28 15:57:28 DEBUG (MainThread) [custom_components.ynab] Monitoring accounts - ['Savings', 'Checking', 'Chase Travel', 'Amazon CC']
2022-06-28 15:57:29 DEBUG (MainThread) [custom_components.ynab] Found 1 budgets
2022-06-28 15:57:29 DEBUG (MainThread) [custom_components.ynab] Budget name: My Budget - id: ef98fccb-e212-43ea-99c5-6ec5f00b130d
2022-06-28 15:57:29 DEBUG (MainThread) [custom_components.ynab] Retrieving data from budget id: ef98fccb-e212-43ea-99c5-6ec5f00b130d
2022-06-28 15:57:29 DEBUG (MainThread) [custom_components.ynab] Received data for: to be budgeted: 1887.77
2022-06-28 15:57:29 DEBUG (MainThread) [custom_components.ynab] Received data for: unapproved transactions: 0
2022-06-28 15:57:29 DEBUG (MainThread) [custom_components.ynab] Received data for: uncleared transactions: 0
2022-06-28 15:57:29 DEBUG (MainThread) [custom_components.ynab] Received data for: total balance: 1737.37
2022-06-28 15:57:29 DEBUG (MainThread) [custom_components.ynab] Received data for account: ['Amazon CC', -1]
2022-06-28 15:57:29 DEBUG (MainThread) [custom_components.ynab] Received data for account: ['Chase Travel', -14]
2022-06-28 15:57:29 DEBUG (MainThread) [custom_components.ynab] Received data for account: ['Checking', 2]
2022-06-28 15:57:29 DEBUG (MainThread) [custom_components.ynab] Received data for account: ['Savings', 5]
2022-06-28 15:57:29 DEBUG (MainThread) [custom_components.ynab] Received data for: budgeted this month: 1
2022-06-28 15:57:29 DEBUG (MainThread) [custom_components.ynab] Received data for: activity this month: -12
2022-06-28 15:57:29 DEBUG (MainThread) [custom_components.ynab] Received data for: age of money: 1
2022-06-28 15:57:29 DEBUG (MainThread) [custom_components.ynab] Received data for: overspent categories: 0
2022-06-28 15:57:29 DEBUG (MainThread) [custom_components.ynab] Received data for categories: ['Groceries', 0.0]

image

I changed values from logs, but that's about it. As I can see, there are no errors, however, there is no sensor.ynab created in the Home Assistant page.

Could you give clues on how I debug this? Thanks!

@shadyabhi
Copy link
Author

Never mind, this is just my stupidity.

I checked the code, and the name of sensor that's created is here: https://github.com/wxt9861/ynab/blob/master/custom_components/ynab/sensor.py#L25

It comes from the config, and I had it named something other than ynab. /facepalm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant