NorthernMan54 / homebridge-alexa

Expose your homebridge controlled devices to Amazon Alexa.
https://www.homebridge.ca
442 stars 77 forks source link

"Window/Shutters" vs "Window Coverings/Blinds" #534

Open ideaweb opened 2 years ago

ideaweb commented 2 years ago

Any chance to implement "Shutters"? Seems to be a sub-set with less functionality than blinds.

https://github.com/arachnetech/homebridge-mqttthing/blob/master/docs/Accessories.md#window

Fails:

{
    "accessory": "mqttthing",
    "url": "mqtt://127.0.0.1",
    "username": "admin",
    "password": "******",
    "mqttOptions": {
        "keepalive": 30
    },
    "type": "window",
    "name": "Fenster",
    "onValue": "0",
    "offValue": "100",
    "topics": {
        "getOn": "stat/shutter-office-2-2/LEVEL",
        "setOn": "cmnd/shutter-office-2-2/LEVEL",
        "getCurrentPosition": "stat/shutter-office-2-2/LEVEL",
        "getTargetPosition": "stat/shutter-office-2-2/LEVEL",
        "setTargetPosition": "cmnd/shutter-office-2-2/LEVEL",
        "getPositionState": "cmnd/shutter-office-2-2/STATE"
    }
},

Works:

{
    "accessory": "mqttthing",
    "url": "mqtt://127.0.0.1",
    "username": "admin",
    "password": "******",
    "mqttOptions": {
        "keepalive": 30
    },
    "type": "windowCovering",
    "name": "Fenster Test",
    "onValue": "0",
    "offValue": "100",
    "topics": {
        "getOn": "stat/shutter-office-2-2/LEVEL",
        "setOn": "cmnd/shutter-office-2-2/LEVEL",
        "getCurrentPosition": "stat/shutter-office-2-2/LEVEL",
        "getTargetPosition": "stat/shutter-office-2-2/LEVEL",
        "setTargetPosition": "cmnd/shutter-office-2-2/LEVEL",
        "getPositionState": "cmnd/shutter-office-2-2/STATE"
    }
}

If Alexa does not support it, any chance to send them as blinds? I really not care what type in Alexa app is used if they still work.

I could rename it in Homebridge but in real e.g. on my iPhone i like that they are shown as shutters and not blinds. Everything is working so far, but 14 shutters blocks me to enable subscription. ;-)

Thx for nice work...

ideaweb commented 2 years ago

I am wrong, seems to work, i just used wrong Alexa command and i was confused of type "Other" in Alexa app, or is the functionality limited if "Other" is shown and not "Window (Blinds)"?

Btw. why i cannot tell Alexa just "Open" or "Close"? Does i have to always use something like " 50%"?

NorthernMan54 commented 2 years ago

Did you see this in the README .

https://github.com/NorthernMan54/homebridge-alexa/blob/master/README.md#garage-door-blinds-and-window-coverings

As blinds are not supported in my country, I just wrote a routine with the wording I wanted.