Hello everybody,
I hope somebody might be able to help me.
I have been working with Openhab 2 for half a year now and right now im trying to find an easier way to talk to Alexa about her Tasks. For example I am telling her to turn item test on.
Switch Test "Test" ["Lighting"]
And then i got this in my rules file.
rule "RolladenHoch"
when
Item Test received command ON
then
RolladeEGRechts.sendCommand ("0")
RolladeEGMitte.sendCommand ("0")
RolladeEGLinks.sendCommand ("0")
end
rule "RolladenRunter"
when
Item Test received command OFF
then
RolladeEGRechts.sendCommand ("100")
RolladeEGMitte.sendCommand ("100")
RolladeEGLinks.sendCommand ("100")
end
So this is working just fine, but it feels unnatural to tell Alexa to turn something on so that the shutter go up or down.
I wanna exchange the On and Off command with like close/open.
I have researched a couple of times now but it seems like the only way to use mappings is in the sitemap file.
I thought maybe i need to change the Endpoint of the Item to something where i can put my own commands, but i did it and it did not seem to work.
And again i am not talking about mappings in a sitemap!
Is there any other way for me to change the command i am telling Alexa to do just the same thing?
Maybe the answer lays just before me and i am too blind to see it.
Thanks and have a nice day!