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

[Netatmo] Siren channel on Netatmo Presence Outdoor Camera with Siren not working #16707

Closed
multimartin opened this issue Apr 30, 2024 · 3 comments
Assignees
Labels
bug An unexpected problem or unintended behavior of an add-on

Comments

@multimartin
Copy link

multimartin commented Apr 30, 2024

Happy to announce that will the latest update to the Netatmo binding (latest 4.2.0 snapshot), my Netatmo Presence Outdoor Camera with Siren is working fine (again).

Except for one thing: the Siren channel is still not working in the binding.

The channel is an ON/OFF type - which initalizes to "null". When switching ON, the log produce the following:

2024-04-30 09:07:21.534 [DEBUG] [mo.internal.handler.ApiBridgeHandler] - executeUri POST https://api.netatmo.com/api/setstate 2024-04-30 09:07:21.684 [WARN ] [andler.capability.SecurityCapability] - Error changing siren status 'SOUND' : Rest call failed: statusCode=INVALID_ARGUMENT, message=property /home/modules/0: should NOT have additional properties ['siren_status']

When switching OFF, the log produce the following:
2024-04-30 09:07:59.025 [DEBUG] [mo.internal.handler.ApiBridgeHandler] - executeUri POST https://api.netatmo.com/api/setstate 2024-04-30 09:07:59.119 [WARN ] [andler.capability.SecurityCapability] - Error changing siren status 'NO_SOUND' : Rest call failed: statusCode=INVALID_ARGUMENT, message=property /home/modules/0: should NOT have additional properties ['siren_status']

When I originally requested the channel to be added, we discussed it in this bug report: https://github.com/openhab/openhab-addons/issues/14466#issue-1592328235

I can still switch the siren using CURL - and in the Netatmo App - so the siren as such is working. Just not in the binding.

I am happy to test any bug-fixes - but cannot suggest changes to the code myself ;-)

I am running openHAB 4.2.0.M2 with the latest snapshot of the binding in the add-on folder. My Openhab is run in Ubuntu 22.04.4 LTS.

@multimartin multimartin added the bug An unexpected problem or unintended behavior of an add-on label Apr 30, 2024
@clinique clinique self-assigned this May 2, 2024
@jguse
Copy link

jguse commented May 31, 2024

When I do a simple REST POST, I get the same result:

Endpoint: https://api.netatmo.com/api/setstate

{
    "home": {
        "id": "XXXXXX",
        "modules": [
            {
                "id": "XXXXXX,
                "siren_status": "SOUND"
            }
        ]
    }
}

Response:

{
    "error": {
        "code": 21,
        "message": "property /home/modules/0: should NOT have additional properties ['siren_status']"
    }
}

So seems that this is a problem on updated netatmo API.

UPDATE

Response from netatmo support:

Unfortunately we don't allow this possibility for 3rd party apps. The only manageable action with a /setstate call is the state of the floodlight (on/off/auto)

form your own opinion...

@clinique
Copy link
Contributor

@multimartin : you'll maybe not like the way this one has been closed but it is the way it is.

@lolodomo
Copy link
Contributor

Closed by #17397

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of an add-on
Projects
None yet
Development

No branches or pull requests

4 participants