I’ve created a sensor for Monzo (a bank with an api…). Currently it’s just a sensor that tells you how much is in your account. Hopefully I’ll add more features that people want.
when I restart hass the configurator shows up in the ui asking to authorise the app, this then takes me to a webpage asking to authorise the app, then I receive an email with a link that downloads a file called ‘monzo’
When i then click “I authorized successfully” nothing happens
Do I need to put this file called ‘monzo’ somewhere?
2017-09-14 20:39:28 ERROR (MainThread) [homeassistant.helpers.entity] Update for sensor.monzo_hass_sensor fails
Traceback (most recent call last):
File "/usr/src/app/homeassistant/helpers/entity.py", line 225, in async_update_ha_state
yield from self.hass.async_add_job(self.update)
File "/usr/local/lib/python3.6/asyncio/futures.py", line 332, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/local/lib/python3.6/asyncio/tasks.py", line 250, in _wakeup
future.result()
File "/usr/local/lib/python3.6/asyncio/futures.py", line 245, in result
raise self._exception
File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/sensor/monzo.py", line 277, in update
self.refresh_monzo_instance()
File "/config/custom_components/sensor/monzo.py", line 232, in refresh_monzo_instance
import monzo.monzo # Import Monzo Class
ModuleNotFoundError: No module named 'monzo'
OK… to be honest you really shouldn’t need that command. You will however need your client_id and secret so put it back in (it uses it to refresh the authentication token).
Hello,
Looks great and I can’t wait to use it. In your readme file, at the bottom, you talk about the submit button issue. I don’t suppose you could elaborate please? I know I have signed into it once before but I have never been able to get back in!
exactly what I’m seeing. However, I have just returned to it today and its let me through to the developer console finally! I have made my OAuth client and added my config to home assistant. the configurator now won’t let me authenticate my new OAuth bit. its now saying ive had too many attempts. even though its my first try !
Failed to load resource: the server responded with a status of 429 (Too Many Requests)
I saw somebody else have this issue. They said after trying again a little later it just worked… monzo are quite clear that it’s not ready from prime time… a good example I suppose!
I’m having an issue with authentication? Probably me doing something stupid haha, however every time I try to “Link Monzo account” I link it and when I press “I AUTHORISED SUCCESSFULLY” I simply get a duplication of “Monzo Balance CONFIGURE”, Don’t suppose you could help haha?
I was going to ATTEMPT a component, but I’m glad to see you’ve already started haha, I’ll help where I can as it’s something I was willing to try myself.
I’m also glad to see someone else from Monzo in Home-Assistant
Here’s a redacted screenshot of the accounts I see
Nope, it doesn’t seem to be generating the cache file.
And yep, I clicked the link and it downloaded the file which I discarded and clicked AUTHORISED and it then duplicated the Configurator as shown above.
Not sure what i did, but I’m now seeing the sensor haha! My have been me removing the ’ ’ around the client ID and
sensor.monzo_transactions (latest 5 or something)
name: Merchant
State: Spent there
indead of mdi, you can get the PNG from the API as the icon.
I managed to get my current account balance showing simply by physically putting my current account ACCOUNT_ID
Could be easily modified to allow another config variable, unless you find a better way to get the current account ID, as when the prepaid cards go out it would essentially become account1 rather than currently account2
balance = self._client.get_balance('acc_0000000XXXXXXXXX00000000') # Get your balance object