kakopappa / sinric

Amazon Alexa Smart home skill / Google Home Action for ESP8266 / ESP32 / Arduino
https://sinric.com
287 stars 166 forks source link

Support for rolling shutters possible? #31

Open JanB97 opened 6 years ago

JanB97 commented 6 years ago

Hi, I have motorized shutters in my house. They come with a remote which has the ability to move them up, down and to a specified (favourite) position. Is it possible to add support for this case? (Voice command "up", "down" and something for the favourite position?)

kakopappa commented 6 years ago

Hello,

Thank you for your input.

I think that is possible using "SkipChannels". https://developer.amazon.com/docs/device-apis/alexa-channelcontroller.html

Alexa, channel down on device Alexa, channel up on device

Is this the correct way to do this?

I will add a new device type called "Shutters" and update the web interface.

kakopappa commented 6 years ago

Hello I have updated the website with channel controller support.

  1. Create a new device. select window shutters
  2. here is the sample code https://github.com/kakopappa/sinric/blob/master/arduino_examples/window_shutters_example.ino
kakopappa commented 6 years ago

let me know if you need any changes

JanB97 commented 6 years ago

The german translation is not really ideal for this, because it's translated as "next" and "back" but that's not your fault. Other than that, it works really good as the rest of your Project, thanks a lot! ๐Ÿ˜ƒ

kakopappa commented 6 years ago

Lol

On Sat, Feb 24, 2018 at 9:05 PM JanB97 notifications@github.com wrote:

The german translation is not really ideal for this, because it's translated as "next" and "back" but that's not your fault. Other than that, it works really good as the rest of your Project, thanks a lot! ๐Ÿ˜ƒ

โ€” You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/kakopappa/sinric/issues/31#issuecomment-368230582, or mute the thread https://github.com/notifications/unsubscribe-auth/AHIM5urjfRTVJYjrT8eUL5uQq7BUjqO5ks5tYBczgaJpZM4SRmqH .

kawrom commented 6 years ago

Hi, very good job, so far. Is there a possibility to add commands like: โ€žAlexa, set [device name] to [value] %." for window shutters. That would be exactly what I need for my SmartHome project. Btw: window shutter from Sinric.com is not recognized as window shutter on alexa app, but as "custom controll" or "other". So its not possible to change values in the app. thx

kakopappa commented 6 years ago

@kawrom Thank you for your input.

  1. I will add percentagecontroller support to window shutter device type soon; https://developer.amazon.com/docs/device-apis/alexa-percentagecontroller.html

  2. Right now "window shutter" device type sends "OTHER" category to Alexa. That is because I could not find the right device type here: https://developer.amazon.com/docs/device-apis/alexa-discovery.html#display-categories

what do you think the right one to use ?

kakopappa commented 6 years ago

OK I have added Alexa.PercentageController support for "window shutter" device type. However, there is a small issue associated with Alexa.PercentageController.

I send the correct response to Amazon but Alexa says "device not responding" I am not sure why. I think this is their api issue. I see someone else also has the same problem

https://stackoverflow.com/questions/48661954/alexa-increasing-and-decreasing-brightness-of-device

anyways, Please try deleting (forget) the existing device from Alexa and adding it again. if it does not work delete and recreate.

let me know how it goes for you guys

kawrom commented 6 years ago

It seems to work correctly. As you posted: Alexa always says "device not responding" - but the device is receiving the correct JSON-String. I think, I can live with it. Thank you.

kakopappa commented 6 years ago

I am still talking with guys at amazon to get this resolved. I will close this issue when it's fixed.