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

Light entity Not Working #42

Open
GitHubGoody opened this issue Dec 17, 2023 · 7 comments
Open

Light entity Not Working #42

GitHubGoody opened this issue Dec 17, 2023 · 7 comments

Comments

@GitHubGoody
Copy link

  • Home Assistant Version (eg. 2023.11): 2023.12.3
  • Ember Mug Component Version (eg. 0.8.0): 0.8.0
  • Which device(s) are you using for Bluetooth (e.g. Bluetooth Dongle / ESPHome Proxy): RPi 3B+

Description

I just successfully connected to my new Ember Mug 2. I started trying the different entities provided by this integration. For the light, I’m able to change its color, but as soon as I close the light card, the light on the mug reverts back to the default color. Also, the on/off commands do not affect the light on the mug.

What I Did

See above

Logs / Errors

Let me know what you need.

@sopelj
Copy link
Owner

sopelj commented Dec 17, 2023

Hey! I'm glad you got it setup. So the entity displays the correct colour, but you are unable to change it?
Did you also setup the Mug in the app on your phone? Sometimes you need to connect it at least once to make the attributes writable. I have not yet figured out how to reproduce that via this integration.

@GitHubGoody
Copy link
Author

Hello. Not quite, it changes via HA while the light more info card is open, but reverts to the default color when I close it. Yes, I connected to it via the app first.

@sopelj
Copy link
Owner

sopelj commented Dec 17, 2023

I understand that changing it in the more info does not take effect.
But, the Light entity does not display the current colour of the Mug LED?

That's very strange. Setting it up via the app should allow you to change the colour. You did not reset the mug in between using the app and using Home Assistant?

Do you have any errors in your logs for this integration? When it was not configured with the app it usually raises a permission error.

If you do not see any errors, would it be possible to try enabling debug logging (this can be done via the button in the device page or via your config file) and trying to change the colour to see what output is generated? Thanks!

@sopelj
Copy link
Owner

sopelj commented Jan 25, 2024

@GitHubGoody Any luck with this or more details on your problems so I can help debug?

@d-rez
Copy link

d-rez commented Feb 2, 2024

@GitHubGoody are you sure it's not just the mug defaulting to the white heating indicator that's just coinciding with you closing the light card?
If it goes back to white it just means that it's heating, the chosen colour only shows up when lifting the cup with no liquid inside or pressing the power button

https://support.ember.com/hc/en-us/articles/360019824192-Ember-Mug-Color-Light-Index

Your personalized LED color will only show up when pressing the power button or if the mug is empty - giving the mug a little shake will illuminate your color as well!

If you've already ruled that out that's fair but figured I'd mention it.

@GitHubGoody
Copy link
Author

@GitHubGoody Any luck with this or more details on your problems so I can help debug?

Sorry, I haven't been able to troubleshoot because this. To get your integration to initially work when I first posted this issue, I had to disable Passive scanning (when the Bluetooth integration would load with Passive scanning deselected). So, until either of these issues are fixed, I cannot connect to my Ember mug with your integration.

@sopelj
Copy link
Owner

sopelj commented Feb 4, 2024

Oh interesting. I hope that gets resolved. I don't think you should need to disable pasive scanning, but the adaptor does need to support active scanning in order to work with the mug as it does not broadcast any messages except for a basic message during the initial pairing. Please let me know, once that is resolved, if you are able to reproduce your issue or if you find it no longer happens so I can fix or close this issue. Thanks!

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

3 participants