Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't control Awning #79

Open
Honigbrot opened this issue Feb 26, 2023 · 4 comments
Open

Can't control Awning #79

Honigbrot opened this issue Feb 26, 2023 · 4 comments
Labels
enhancement New feature or request

Comments

@Honigbrot
Copy link

Honigbrot commented Feb 26, 2023

Thanks to the latest update my shutters work perfectly.
I tried to also control my Awning (Somfy RTS, same multi-channel remote as my shutters) via homebridge. It works flawlessly in the TaHoma app. However the homebridge plugin produces the following error message when trying to open / close via homebridge:

[26.2.2023, 16:37:03] [My Connexoon Hub] Failed to exec command {
  errorCode: 'UNSUPPORTED_OPERATION',
  error: 'No such command : open on device ogp://2105-5099-3932/9365770 (ogp:Awning)'
}
[26.2.2023, 16:37:03] [My Connexoon Hub] StatusCodeError: 400 - {"errorCode":"UNSUPPORTED_OPERATION","error":"No such command : open on device ogp://2105-5099-3932/9365770 (ogp:Awning)"}
    at new StatusCodeError (/usr/local/lib/node_modules/homebridge-connexoon/node_modules/request-promise-core/lib/errors.js:32:15)
    at Request.plumbing.callback (/usr/local/lib/node_modules/homebridge-connexoon/node_modules/request-promise-core/lib/plumbing.js:104:33)
    at Request.RP$callback [as _callback] (/usr/local/lib/node_modules/homebridge-connexoon/node_modules/request-promise-core/lib/plumbing.js:46:31)
    at Request.self.callback (/usr/local/lib/node_modules/homebridge-connexoon/node_modules/request/request.js:185:22)
    at Request.emit (node:events:390:28)
    at Request.<anonymous> (/usr/local/lib/node_modules/homebridge-connexoon/node_modules/request/request.js:1154:10)
    at Request.emit (node:events:390:28)
    at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/homebridge-connexoon/node_modules/request/request.js:1076:12)
    at Object.onceWrapper (node:events:509:28)
    at IncomingMessage.emit (node:events:402:35) {
  statusCode: 400,
  error: {
    errorCode: 'UNSUPPORTED_OPERATION',
    error: 'No such command : open on device ogp://2105-5099-3932/9365770 (ogp:Awning)'
  },
  options: {
    auth: {
      bearer: 'NmI4MGM3YzY4YzFmNjMyNzY1MzMwOGVhMjlhY2I1NTNjNTQzZjlkNzdhOGMxYWVjNmRhYWY3M2I2YzFhZjNkNQ'
    },
    url: 'https://ha101-1.overkiz.com/enduser-mobile-web/enduserAPI/exec/apply',
    json: true,
    body: Execution { label: 'Markise - Open - HomeKit', actions: [Array] },
    method: 'POST',
    callback: [Function: RP$callback],
    transform: undefined,
    simple: true,
    resolveWithFullResponse: false,
    transform2xxOnly: false
  },
@yenoiwesa
Copy link
Owner

Okay so the problem is that your Awning is an OGP device, which is a slightly different protocol. It does not support the open command on your Awning, which is the method the plugin sends.

After looking at other plugins, it seems that Awnings expect deploy and undeploy commands to be sent instead of open and close.

I currently do not support this obviously but also this would require some effort to implement unfortunately.

I have will mark this ticket as enhancement and try to implement it one day if I have time.

@yenoiwesa yenoiwesa added the enhancement New feature or request label Mar 18, 2023
@Honigbrot
Copy link
Author

Wouldn't the optional parameter "command" solve that? Or is there a fundamentally different approach because of the difference in device type?

@Honigbrot
Copy link
Author

Honigbrot commented Nov 26, 2023

Confirmed it. Just setting the commands in the config works for my OGP Awning:

 "devices": {
                "Markise": {
                    "commands": [
                        "deploy",
                        "undeploy"
                    ]
                }
            }

@jvhooijdonk
Copy link

Confirmed it. Just setting the commands in the config works for my OGP Awning:

 "devices": {
                "Markise": {
                    "commands": [
                        "deploy",
                        "undeploy"
                    ]
                }
            }

Have the same issue but this din't solve my problem unfortunately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants