hass-ember-mug-component icon indicating copy to clipboard operation
hass-ember-mug-component copied to clipboard

Light entity Not Working

Open GitHubGoody opened this issue 6 months ago • 7 comments

  • 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.

GitHubGoody avatar Dec 17 '23 17:12 GitHubGoody

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.

sopelj avatar Dec 17 '23 18:12 sopelj

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.

GitHubGoody avatar Dec 17 '23 20:12 GitHubGoody

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 avatar Dec 17 '23 21:12 sopelj

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

sopelj avatar Jan 25 '24 01:01 sopelj

@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.

d-rez avatar Feb 02 '24 04:02 d-rez

@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.

GitHubGoody avatar Feb 04 '24 15:02 GitHubGoody

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!

sopelj avatar Feb 04 '24 17:02 sopelj