Coder Social home page Coder Social logo

Comments (2)

prbtt avatar prbtt commented on August 14, 2024

Is your feature request related to a problem? Please describe. Have other entity types, such as covers, media, etc., so everything isn't treated as a Hue light.

Describe the solution you'd like Per the above.

Describe alternatives you've considered Not sure of others, beyond some of the other alexa node-red integrations that exist. But this one is very stable & reliable.

Additional context Thank you!

That i'll be very helpfull. For now, i'm using the function node to get covers and ac units working with alexa. All lights were moved inside a group in the alexa app and covers+ac outside, so when i ask alexa to turn the lights off, it doesn't mess them.

How i did the AC:
Used the brightness percentage payload to control the target temp. If it's above 28C it sends 28 and if its below 18, it sends 18.

let bri = msg.percentage
if (bri > 28) bri = 28
if (bri < 18) bri = 18
if (msg.payload === "on") msg.payload =
{
    "service": "set_temperature",
    data:
        { "hvac_mode": "cool", "temperature": bri }
};

if (msg.payload === "off") msg.payload = {"service":"turn_off"};

return msg;

How i did the Cover:
Same thing as AC, using the brightness percentage as cover position. If yout cover entity doesn't support cover position, you can make a routine in the alexa app that toggles the cover up and down or just on = open and off = close.

let pos = msg.percentage

if (msg.payload === "on") msg.payload =
{
    "service": "set_cover_position",
    data:
        { "position": pos }
};

if (msg.payload === "off") msg.payload = {"service":"close_cover"};

return msg;

Is your feature request related to a problem? Please describe. Have other entity types, such as covers, media, etc., so everything isn't treated as a Hue light.

Describe the solution you'd like Per the above.

Describe alternatives you've considered Not sure of others, beyond some of the other alexa node-red integrations that exist. But this one is very stable & reliable.

Additional context Thank you!

from node-red-contrib-amazon-echo.

datech avatar datech commented on August 14, 2024

This module will support only lights. You may use Alexa routines to simulate a different types of devices and commands. To support a broader range of devices, an Alexa Skill will be needed. More information can be found here #196

from node-red-contrib-amazon-echo.

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.