originallyus / node-red-contrib-alexa-local

An easy-to-use NodeRED node for adding Alexa capability to NodeRED. NO Alexa Skills required.
108 stars 25 forks source link

Add swtich node type. #64

Closed deggle closed 6 years ago

deggle commented 6 years ago

Would it be possible to add a second node that implements the 'switch' type in Alexa?

Like the built in compatibility with Hue which you currently emulate the Alexa devices can also search the network for WeMo compatible switches/sockets which have only an on/off commands.

I appreciate this adds no direct advantage as the same can be achieved using the on/off values output by the Hue emulation, but it does keep things neater in Alexa and I believe this would be a relatively straightforward adjustment as the underlying implementations are very similar.

There are existing libraries that could be drawn on for the emulation, like Fauxmo (in python but which has been ported to many platforms). I would be willing to take a look myself if you're not able to (I'm not familiar with creating nodes or merging into GitHub, but I could take a look).

Cheers!

torinnguyen commented 6 years ago

There is a hardcoded limit of 16 maximum Wemo switch that Alexa can handle.

On Sun, 29 Jul 2018 at 18:36, Tim A notifications@github.com wrote:

Would it be possible to add a second node that implements the 'switch' type in Alexa?

Like the built in compatibility with Hue which you currently emulate the Alexa devices can also search the network for WeMo compatible switches/sockets which have only an on/off commands.

I appreciate this adds no direct advantage as the same can be achieved using the on/off values output by the Hue emulation, but it does keep things neater in Alexa and I believe this would be a relatively straightforward adjustment as the underlying implementations are very similar.

There are existing libraries that could be drawn on for the emulation, like Fauxmo https://github.com/n8henrie/fauxmo (in python but which has been ported to many platforms). I would be willing to take a look myself if you're not able to (I'm not familiar with creating nodes or merging into GitHub, but I could take a look).

Cheers!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/originallyus/node-red-contrib-alexa-local/issues/64, or mute the thread https://github.com/notifications/unsubscribe-auth/AAu1WC2cgIfd47XtPKwMTdAjtrSU7N_Jks5uLZ5VgaJpZM4VlY2L .

-- http://originally.us