sopelj / python-ember-mug Goto Github PK
View Code? Open in Web Editor NEWPython Library to Interact with Ember Mugs
License: MIT License
Python Library to Interact with Ember Mugs
License: MIT License
Could you add the new Ember Tumbler?
Python Ember Mug version: Unknown Apologies for my ignorance. I'm using your (sopelj's) ember mug integration for home assistant.
Python version: 3.9
Operating System: Raspberry Pi OS
I can only get readings for my mug (v1) when it's freshly paired.
I was expecting a "live" view in HA.
I've read the point about re-pairing in the integration's repo. I don't really want to do this all the time to use my mug in HA (however it is not unusual, the android app needs constant re-pairing)
I was hoping the integration would solve the connectivity issues these mugs have with the android app.
My log shows:
2023-01-08 20:23:00.218 ERROR (MainThread) [custom_components.ember_mug.coordinator] EMBER ([MyEmberMAC]) - [MyEmberMAC]: Failed to connect:
Followed the setup instructions on the repo:
The software stopped working, probably due to changed in the Bleak Library.
I have runned "ember-mug discover" and got an error.
ember-mug discover
Traceback (most recent call last):
File "/opt/homebrew/bin/ember-mug", line 8, in <module>
sys.exit(run_cli())
^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/ember_mug/cli/__init__.py", line 13, in run_cli
asyncio.run(cli.run())
File "/opt/homebrew/Cellar/[email protected]/3.11.6_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/asyncio/runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/[email protected]/3.11.6_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/[email protected]/3.11.6_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/ember_mug/cli/commands.py", line 257, in run
await self._commands[args.command](args)
File "/opt/homebrew/lib/python3.11/site-packages/ember_mug/cli/commands.py", line 64, in discover
mugs = await discover_mugs(mac=args.mac)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/ember_mug/scanner.py", line 47, in discover_mugs
return [
^
File "/opt/homebrew/lib/python3.11/site-packages/ember_mug/scanner.py", line 49, in <listcomp>
for (d, a) in scanner.discovered_devices_and_advertisement_data
^^^^^^
ValueError: too many values to unpack (expected 2)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.