hahn-th / homematicip-rest-api

A python wrapper for the homematicIP REST API (Access Point Based)
https://hahn-th.github.io/homematicip-rest-api/
GNU General Public License v3.0
215 stars 63 forks source link

Change acoustic signal (signalAcoustic ?) of HmIP-ASIR #492

Open stephanlenhart opened 1 year ago

stephanlenhart commented 1 year ago

Hi!

Is it somehow possible to change the acoustic signal of the HmIP-ASIR? I did not yet manage to do it (I'm accessing it via iobroker). It's about the "signalAcoustic" configuration:

"00000000-0000-0000-0000-000000000041": { "acousticFeedbackEnabled": false, "channels": [ { "channelIndex": 1, "deviceId": "3014F7110000000000000023" } ], "dimLevel": null, "dutyCycle": false, "homeId": "00000000-0000-0000-0000-000000000001", "id": "00000000-0000-0000-0000-000000000041", "label": "SIREN", "lastStatusUpdate": 1687079324706, "lowBat": false, "metaGroupId": null, "on": false, "onTime": 180.0, "signalAcoustic": "FREQUENCY_LOWON_LONGOFF_HIGHON_LONGOFF", "signalOptical": "DISABLE_OPTICAL_SIGNAL", "smokeDetectorAlarmType": null, "type": "ALARM_SWITCHING", "unreach": false },

Thanks! Stephan

hahn-th commented 1 year ago

Are you able to change it via the Homematic App?

stephanlenhart commented 1 year ago

Hi! Yes, in the app it's possible to change it. See attached screenshot (sorry, it's German)

Screenshot_20230618_132938_Homematic IP

hahn-th commented 1 year ago

Das mti dem deutsch passt :) Also ich könnte das einbauen, bräuchte dafür aber deine Hilfe. Du müsstest die Kommunikation zwischen der App und dem HmIP Access Point loggen mit Hilfe eines Proxies. Zum Beispiel: https://www.charlesproxy.com/documentation/getting-started/

Anders kann ich da nix machen, da ich das Gerät nicht habe. Das Ergebnis könntest du auch an das iobroker Team geben, dann könnten die das auch einbauen. Bei Interesse gebe ich dir mehr Infos.

stephanlenhart commented 1 year ago

Hi! Das hört sich gut an :) danke schonmal! Ich werd mir "Charles" heut Abend gleich mal anschauen - noch nie gemacht. Lern ich wieder was dazu :) schätze es geht darum mitzuloggen, welche "Befehle" beim setzen eines signaltons ausgeführt werden?

hahn-th commented 1 year ago

Genau darum gehts. Es muss aber nachverfolgbar sein. Also vielleicht aufschreiben mit Uhrzeit, was du gemacht hast und zwischen den Schritten etwas zeit vergehen lassen.

Hier mal ne Anleitung: https://github.com/iobroker-community-adapters/ioBroker.hmip/issues/287#issuecomment-922088763

Kannst auch mal alle Optionen setzen, die so vorhanden sind. Meine Mailadresse ist homematicip-rest-api@thomas-hahn.org Am besten dann mit deiner anonymisierten config dazu. (https://github.com/hahn-th/homematicip-rest-api#new-devices-and-config-dump)

Apollon77 commented 10 months ago

@hahn-th is there any commit with the relevant method? I can not find any

hahn-th commented 10 months ago

Hi, this should be already done in AlarmSwitchingGroup. homematicip/group.py/AlarmSwitchingGroup

hahn-th commented 10 months ago

Okay ich mach nochmal auf. setSilentAlarm bei Home hat noch gefehlt.

@stephanlenhart hast du die anderen Befehle hier mal durchgetestet?

Die müssten eigentlich funktionieren

stephanlenhart commented 10 months ago

Hallo @hahn-th ,

ja, ich hab soeben die Befehle durchgetestet. Und die 3 funktionieren, wenn man sie über groups>SIREN setzt! :) Über homes>functionHomes>securityAndAlarm gehts nicht, aber das ist eigentlich egal.

LG Stephan