Giter Club home page Giter Club logo

Comments (3)

sopelj avatar sopelj commented on August 12, 2024 1

Oh that's a great idea! Thanks!
I don't think this would be too hard to add. Although, it would be nice if it were configurable. As these are great defaults, but it would be nice to be able to change them.
I'll do some digging and see if there is a way do make this customisable via config options, otherwise I'll add the static list as you suggested.

from hass-ember-mug-component.

sopelj avatar sopelj commented on August 12, 2024

As first draft, what do you think about this. I added a select entity that allow you to choose from preset target temperatures. Choosing a preset will change the target temperature and the preset will be inversly selected based on target temperature. So, for example, if your mug is set to 55⁰C and that is the temp for your "Latte" preset it will be selected. Choosing Cappuccino will change the target temp to 56⁰C.

image

I added the presets you suggested by default, but you can change them iby choosing "Configure" on the automation. I tried to find a prettier way to display this, but this was the best compromise I could find so far. I don't like having to specify the unit here, but it was that or forcing people to use celsius or some gymnastics to figure out if they've been changed by the user.

image

It's available in 1.0.0-beta-1 if you wish to try. However, it is a beta so, there still may be breaking changes.

from hass-ember-mug-component.

ArtBIT avatar ArtBIT commented on August 12, 2024

Omg, that's perfect. That's exactly what I was hoping for.
At first I was thinking that reverse selecting the preset when I change the temperature is not working, but it turns out there's is only a slight delay.

The mdi:tea makes more sense to me for the select.preset, so I've changed it in the card.

Thank you for this! Great work!

from hass-ember-mug-component.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.