Coder Social home page Coder Social logo

ckhmer1 / node-red-contrib-alexa-virtual-smarthome Goto Github PK

View Code? Open in Web Editor NEW
10.0 3.0 4.0 1.16 MB

Alexa Smart Home Node Red module to control your smart home devices via Alexa

License: GNU General Public License v3.0

HTML 41.38% JavaScript 58.28% Python 0.35%

node-red-contrib-alexa-virtual-smarthome's Issues

Communicating with Alexa node device

OK, so I have the devices and now I am authenticated. Now my biggest thing that I am attempting to do is to communicate with the virtual device.

Here is what i am wanting to do. I want to create a custom command that will get the voltage of a device from Node Red

  1. Say "Alexa, get the voltage of the battery"
  2. This information is sent to the lambda server
  3. Lambda server processes the command and sends something to the Node red server virtual device called battery (most likely a json object with what is being asked but can be anything)
  4. Through a series of nodes, node red grabs the voltage reading and sends it back to the lambda server.
  5. Lambda server processes the data and sends it back to the Alexa service
  6. Alexa says "The voltage of the battery is 12 V"

I am getting hung up on steps 3 and 5. How do I send data (be it json object or request or something else) from the Lambda server to the Virtual device? Is there some sort of API that I can use? Or do I need to send a HTTPS request?

Get device name

I am using a virtual device node as a BLIND to set the Alexa device volume as a percentage in combination with node-red-contrib-alexa-remote2 node.

Here is the output of the Virtual Device node
percentage: 12
source: "alexa"
mode: "Position.Down"
directive: "SetRangeValue"
name: "hautparleur"
type: "BLINDS"

The problem is that the Virtual Device node is not providing the device name I am speaking to. Is there a way to get it?

Continueing issue 5 becuase it closed

Just opening up a new one because the old one was closed.

I am not getting the granted success. I am getting the access and refresh tokens though

#5

(907e9b1f-45de-4ce1-8da8-a1c97dce05db) Method response body after transformations: 
{
    "access_token": "Atza|B4oLmAn5xWoBFS3CBtHEchhLgkj4Ejg7e7SGxt3aUfjW",
    "token_type": "bearer",
    "expires_in": 3600,
    "refresh_token": "Atzr|BMUKqxYJtEyrNRz6zETTZfs8fmD68qZTHHQku8Fey6EU"
}

brightness command when lamp is off

Hi there,
I'm back :)
I updated to version 0.0.28
I have the problem with the light controller with brightness and powerstate
when I turn on the lamp then give the brightness command everything works ...
but when the lamp is off and i directly give the command set lamp to xx brightness, on Nodered I get the brightness value but with powerstate off but in the alexa app the power button is changed to on

Contact Sensor

hello many thanks for the great job works very well
except for the contact sensor. we generated and appears in the alexa app but does not work alex app shows the message "a problem has occurred"
sorry for my bad english, i use google to translate

Config error (red triangle) on new nodes

Hi. I have the PRO subscription. Lately, when I add a node, it shows up with a red triangle (see below). I have tried updating the Amazon account but no help. Originally, I think it was due to duplicate names but that has been eliminated. Thanks.
Capture
Capture2

Discovering Devices

Hello
As I am testing my back end and learning some new things, I deleted the device from my Alexa profile.

To add it back in, do I need to ask Alexa to "Discover new devices?" I did that and it was unable to find the node red device

Authication server

Hello,
Very good tutorial. Although there are some parts that need to be updated since Amazon changed a few things.

One quick question, there is no guide or pre-req stating that you need an authentication server for the Oauth or how to setup the directories on the Node red installation.

Would you be able to tell me how to set these up?

For the authenticating, I have been using this guide:
https://coderedirect.com/questions/512574/whats-an-easy-way-to-setup-oauth-for-an-amazon-alexa-connected-home-skill

But, if I use this method, there is an issue with the Lambda function script where the BASE_URL does not point to the node red. Is there a way to make the script compatible with the above link and without having the authentication server on the node red installation (Just fyi, I am running this on the Pi)

Unathorized client sercet

When I go to perform the LWA with my account, I get this error:

Unauthorized client_secret

Now, I triple checked the values that I was placing in. I checked to make sure that I placed in the correct "Your Client ID" and "Your Secret" values in the correct boxes in the config and in the endpoint. But when I do the LWA, the result in unable to link Smart Home

Do you know what might also be causing this error?

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.