Giter VIP home page Giter VIP logo

Comments (7)

trisk avatar trisk commented on August 28, 2024

This is vastly better for absolute values than the current percentage implementation, but a potential problem is that changing the Alexa imperial/metric unit preference can cause unwanted conversion of input and output values.

from haaska.

keatontaylor avatar keatontaylor commented on August 28, 2024

For those of us on imperial units, alexa provides celsius measurements for all requests and we specify the unit in the response. So I don't see this as an issue.

from haaska.

trisk avatar trisk commented on August 28, 2024

@keatontaylor the API works exclusively in Celsius, we don't get to choose the unit in the response.
Edit: Oh, looks like they updated the API to report units ("scale") since I did the implementation; don't think we can tell if there will be conversion performed, though.

from haaska.

keatontaylor avatar keatontaylor commented on August 28, 2024

We could provide a config variable for users to tell us which unit their alexa is set to.

from haaska.

trisk avatar trisk commented on August 28, 2024

That seems reasonable.

from haaska.

keatontaylor avatar keatontaylor commented on August 28, 2024

Hmm, I was hoping this could be expanded for numeric sensors too, but it seems that querying state requires saying:
"Alexa, what is the 'device name' temperature"

but this still works well for input_sliders because the interactions will be limited to:

"Alexa, what is the 'input slider name' set to" and "Alexa, set the 'input slider name' to xxx"

I'm surprised that amazon hasn't released a framework for querying sensors, and setting values for devices as the temperature control framework is already so compatible. So it seems that a lot of that code in their backend could likely be reused.

from haaska.

trisk avatar trisk commented on August 28, 2024

My guess for the sparse API is that they are only releasing features that partners already have skills written for right now.

from haaska.

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.