Hello, Thank you for your help
I managed to integrate the blinds with Amazon Alexa following your instructions but now I would like to create an item that will command all the blinds at the same time.
Now I can say:
Alexa! Open the Office Blind!
Alexa! Close the Office Blind!
Alexa! Office Blind command UP!
Alexa! Office Blind command STOP!
Alexa! Office Blind command DOWN!
items:
Group OfficeTest "Office test blind" {alexa="Endpoint.Other"}
String OfficeBlindCommand "Office Blind command" (OfficeTest) {alexa="ModeController.mode" [supportedModes="STOP=STOP,UP=UP, DOWN=DOWN"], autoupdate="false"}
Rollershutter OfficeBlind "Office Blind" (OfficeTest) {alexa="RangeController.rangeValue" [category="INTERIOR_BLIND", friendlyNames="@Setting.Opening", supportedRange="100:0", actionMappings="Close=100,Open=0", stateMappings="Closed=100,Open=0"]}
Group KitchenTest "Kitchen test blind" {alexa="Endpoint.Other"}
String KitchenBlindCommand "Kitchen Blind command" (KitchenTest) {alexa="ModeController.mode" [supportedModes="STOP=STOP,UP=UP, DOWN=DOWN"], autoupdate="false"}
Rollershutter KitchenBlind "Kitchen Blind" (KitchenTest) {alexa="RangeController.rangeValue" [category="INTERIOR_BLIND", friendlyNames="@Setting.Opening", supportedRange="100:0", actionMappings="Close=100,Open=0", stateMappings="Closed=100,Open=0"]}
sitemaps:
Switch item=KitchenBlind mappings=[UP="UP", STOP="X", DOWN="DOWN"]
Switch item=OfficeBlind mappings=[UP="UP", STOP="X", DOWN="DOWN"]
rules:
rule "Office Blind Command"
when
Item OfficeBlindCommand received command STOP or
Item OfficeBlindCommand received command UP or
Item OfficeBlindCommand received command DOWN
then
OfficeBlind.sendCommand(receivedCommand.toString)
end
rule "Kitchen Blind Command"
when
Item KitchenBlindCommand received command STOP or
Item KitchenBlindCommand received command UP or
Item KitchenBlindCommand received command DOWN
then
KitchenBlind.sendCommand(receivedCommand.toString)
end
I created an item and i set a rule using rule engine so:
Group AllTest "All test Blinds" {alexa="Endpoint.Other"}
String AllBlindsCommand "All Blinds command" (AllTest) {alexa="ModeController.mode" [supportedModes="STOP=STOP,UP=UP, DOWN=DOWN"], autoupdate="false"}
Rollershutter AllBlinds "All Blinds" (AllTest) {alexa="RangeController.rangeValue" [category="INTERIOR_BLIND", friendlyNames="@Setting.Opening", supportedRange="100:0", actionMappings="Close=100,Open=0", stateMappings="Closed=100,Open=0"]}
Now i can just say:
Alexa! All Blinds command UP!
Alexa! All Blinds command STOP!
Alexa! All Blinds command DOWN!
It is not working with:
Alexa! Open All Blinds!
Alexa! Close All Blinds!