biddster / node-red-contrib-wemo-emulator

Why might you want to emulate Wemo? Well I wanted to be able to control my Node-RED Raspberry Pi using my Amazon Echo. The Echo has Wemo support built in so I thought I'd give it a try.
17 stars 9 forks source link

Use single node to handle multiple emulated devices #3

Open biddster opened 7 years ago

biddster commented 7 years ago

Should we make this node work like the switch node? I.e. we can add multiple devices in a single node and get an output exposed for each?

This might help with #1 so we can advertise multiple friendly names for the same physical device?

mikebiddell commented 7 years ago

Yup..... it's a good idea.

Toshibass commented 7 years ago

I like the idea of multiple friendly names for the same device but like you say having a couple of nodes with different friendly names controling the same device is a very easy work around.

But what would be even better would be multiple names for On / Off obviously the wemo socket (or in my case the sonoff sockets and stuff I'm controlling) can only switch On and Off but for example I have a sonoff controlling my blinds currently I have to say ... Alexa Blinds Off or On it would be far better to be able to say ... Alexa Blinds Close or Open also I have a projector screen again ... Alexa Screen On or Off doesn't make much sense, Alexa Screen Up or Down would be much better

So saying On or Open or Up would all mean On and saying Off or Close or Down would all mean Off. that would be cool.

biddster commented 7 years ago

@Toshibass As far as I know, there's nothing I can do to change the actuations from on and off to close or open.

This node wraps wemore, it might be possible in there to advertise other actuations. I'll have to read up on the way wemo works and the details of the protocol. But it might be worth asking the wemore folks.

biddster commented 6 years ago

This looks like a decent candidate https://github.com/dsandor/fauxmojs/issues