openhab / openhab-addons

Add-ons for openHAB
https://www.openhab.org/
Eclipse Public License 2.0
1.88k stars 3.59k forks source link

[boschshc] Support for Bosch Security Cameras #12666

Closed david-pace closed 2 years ago

david-pace commented 2 years ago

Hi, I noticed that the Bosch security cameras (360° indoor camera and Eyes outdoor camera) are not supported by the Bosch Smart Home binding yet.

According to https://apidocs.bosch-smarthome.com/local/, both cameras offer only one service (PrivacyMode), which can be enabled or disabled. Not much, but better than nothing ;)

GET /devices/{deviceId}/services/PrivacyMode/state Retrieve the state of the PrivacyMode service.
PUT /devices/{deviceId}/services/PrivacyMode/state Executes the privacyModeState on the device.

Is someone already working on this? Otherwise I would consider contributing.

david-pace commented 2 years ago

According to the bridge handler there are more services available, but not yet documented at https://apidocs.bosch-smarthome.com/local/:

Does anyone know if there are more recent API docs available? Otherwise I could try to derive the API experimentally.

david-pace commented 2 years ago

The CameraNotification service seems to work well. It controls whether notifications are sent via the Bosch Smart Camera App when movement is detected. Valid states are ENABLED and DISABLED.

The CameraLight service does not seem to work properly. Valid states are ON and OFF. However, I can't get it work consistently and one of my two cameras returns HTTP 204 (No Content) when requesting the state.

I am working on a pull request that implements the PrivacyMode and CameraNotification services.