Open loserat opened 6 years ago
You should be able to read whether the idp0000 datapoint is 0 or 1. I don't have a motion sensor but I think it switches to 1 for a short time (as long as it detects motion). You should be able to catch every single event (very short motions) with web sockets.
When you connect via Websocket you get the following data when the motion sensor is triggered:
{
"result": {
"ABB123456789": {
"serialNumber": "ABB123456789",
"deviceId": "2040",
"typeName": "Bewegungsmelder/Schaltaktor 1-fach",
"channels": {
"ch0000": {
"datapoints": {
"idp0000": "1"
}
}
}
},
},
"type": "update"
}
And the following update if no more motion is detected after the configured timeframe ("Autonomous Switch Off Time Duration" / "Nachlaufzeit")
{
"result": {
"ABB123456789": {
"serialNumber": "ABB123456789",
"deviceId": "2040",
"typeName": "Bewegungsmelder/Schaltaktor 1-fach",
"channels": {
"ch0000": {
"datapoints": {
"idp0000": "0"
}
}
}
}
},
"type": "update"
}
Can you tell me how I can read a motion detector?