Skip to content

Bosch Smart Home Local API for Light Control II funktioniert nicht wie spezifiziert #109

@angryc

Description

@angryc

Hallo,
ich nutze die Bosch Smart Home API erfolgreich, um meine Markise zu steuern und die Temperatur von einem Wandthermostat auszulesen.
Aber das mit dem Licht funktioniert nicht. Weder im Python Code noch mit Postman.

Meine Anfrage:

url = "https://192.168.178.29:8444/smarthome/devices/hdm:ZigBee:70ac08fffef0842e#3/services/PowerSwitch/sta..."
payload = {}
headers = {
'Content-Type': 'application/json',
'api-version': '3.2'
}
response = requests.request("GET", url, headers=headers, data=payload)

Ich bekomme diese Antwort:

{
"@type": "device",
"rootDeviceId": "64-da-a0-40-5d-52",
"id": "hdm:ZigBee:70ac08fffef0842e",
"deviceServiceIds": [
"CommunicationQuality",
"PowerMeter",
"ElectricalFaults",
"SwitchConfiguration"
],
"manufacturer": "BOSCH",
"deviceModel": "MICROMODULE_LIGHT_CONTROL",
"serial": "70AC08FFFEF0842E",
"profile": "GENERIC",
"name": "LightMM_70ac08fffef0842e",
"status": "AVAILABLE",
"childDeviceIds": [
"hdm:ZigBee:70ac08fffef0842e#3",
"hdm:ZigBee:70ac08fffef0842e#2"
],
"supportedProfiles": []
}

Laut Spezifikation sollte sowas kommen:
{ "@type": "powerSwitchState", "switchState": "OFF", "automaticPowerOffTime": 0
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions