Open FourFoot opened 7 years ago
Probably could hook into the Controller/LightController.cs class and modify the PUT function. You'd want to read the IP Address/mac address off of the requestor, then modify the url passed to the MakeHttpRequest function (which is what calls Vera).
I take it you are aiming to be able to just say, Alexa, turn on the Lights, and then someone the system figures out which lights you are talking about.
Why not just name the kitchen lights as Kitchen Lights and lounge lights as Lounge Lights and then simply say, Alexa turn on Kitchen Lights? or Alexa, turn on the Lounge Lights? Not sure how passing the MAC address to Vera is going to select the right light (unless you have some Luup code there). You'd be better off selecting a device from the bridge's device light using some switch statement.
I don't actually use vera, so not sure how things work on there. I use your application to call a custom webservice which then fires out MQTT commands, so for me it'd be simple to identify the correct source device and then turn on the appropriate lights.
I could call them lounge/kitchen/office/bedroom/gym lights, but it's much easier to just walk into a room and say "Alexa, lights!". (And for some reason Alexa doesn't recognise me saying "kitchen")
Is this something you're considering adding? If not, I'll throw one of our developers some beers and see if they can modify it for me (Haven't touched C# for too many years)
Hi, This is a great application you have going here, however, would it be possible to include say the mac address or ip address of the source echo? This would provide a simple way to control lights in my kitchen when the kitchen echo is used, lounge, bedroom etc. Thanks