MisterWil / abodepy

A thin Python wrapper for the Abode alarm API
MIT License
49 stars 17 forks source link

Wide Angle Motion Camera (camera) as Motion Sensor (binary_sensor) as well #54

Closed difelice closed 4 years ago

difelice commented 4 years ago

The Wide Angle Motion Camera is only registered as camera for snapshots, but it is also a motion detector but it's not register as binary_sensor. Ideally both entities should be available for different uses.

Thanks.

shred86 commented 4 years ago

Does the motion sensor on the wide angle motion camera show the motion status in the Abode app? For example, when you walk by it, does the status change to "Motion Detected!"? I only have the first gen motion sensor with the camera which doesn't do that (it only works when armed).

If it does show the motion status even when disarmed, we would just need the JSON data of when motion is detected and when motion is no longer detected (I think it's sent ~1 min after no more motion is detected).

difelice commented 4 years ago

It doesn’t seem to return anything different in response. On the web app there’s a way to activate sensor to trigger alarm on Standby mode, I wonder if there is a way to activate just the sensor for presence detection using their API.

Thanks for replying.

shred86 commented 4 years ago

Yeah, it sounds similar to the Iota motion sensor. It doesn't report motion activity to their web UI but you can setup automations in standby. The reason is the CUE automation engine runs locally on the Abode hub itself. Unfortunately, Abode doesn't have an official API so the only thing we can do is use whatever they expose to the web UI. If you're able to get the JSON data, I'd be interested in looking at it but I'm pretty sure it's just like the Iota motion sensor - the motion activity isn't reported, hence the reason it doesn't show up on their web UI.

difelice commented 4 years ago

Unfortunately not even Automations can be create for the Wide Motion Camera, it's not shown in the "Occupancy Sensors" list. This is really disappointing since they advertise it to have same features as the regular Motion Sensor:

image

The JSON doesn't change when someone is in front of the Motion Camera, both look the same:

[
  {
    "id": "RF:005f5930",
    "type_tag": "device_type.ir_camera",
    "type": "Motion Camera",
    "name": "Garage Motion Camera",
    "area": "1",
    "zone": "10",
    "sort_order": "",
    "is_window": "",
    "bypass": "0",
    "schar_24hr": "0",
    "sresp_24hr": "0",
    "sresp_mode_0": "0",
    "sresp_entry_0": "0",
    "sresp_exit_0": "0",
    "group_name": "Garage",
    "group_id": "469780",
    "default_group_id": "1",
    "sort_id": "1",
    "sresp_mode_1": "5",
    "sresp_entry_1": "4",
    "sresp_exit_1": "0",
    "sresp_mode_2": "0",
    "sresp_entry_2": "4",
    "sresp_exit_2": "0",
    "sresp_mode_3": "0",
    "uuid": "0839192a6f2bf63cda3d48d625cd59f1",
    "sresp_entry_3": "0",
    "sresp_exit_3": "0",
    "sresp_mode_4": "0",
    "sresp_entry_4": "0",
    "sresp_exit_4": "0",
    "version": "A03 20180111",
    "origin": "abode",
    "has_subscription": null,
    "onboard": "0",
    "s2_grnt_keys": "",
    "s2_dsk": "",
    "s2_propty": "",
    "s2_keys_valid": "",
    "zwave_secure_protocol": "",
    "control_url": "api/v1/cams/RF:005f5930/capture",
    "deep_link": null,
    "status_color": "#5cb85c",
    "faults": {
      "low_battery": 0,
      "tempered": 0,
      "supervision": 0,
      "out_of_order": 0,
      "no_response": 0,
      "jammed": 0,
      "zwave_fault": 0
    },
    "status": "Online",
    "status_display": "Online",
    "statuses": [],
    "status_ex": "",
    "actions": [
      { "label": "Auto Flash", "value": "a=1&z=10&req=img;" },
      { "label": "Never Flash", "value": "a=1&z=10&req=img_nf;" }
    ],
    "status_icons": [],
    "motion_event": "1",
    "wide_angle": "1",
    "model": "F1",
    "icon": "assets/icons/motioncamera-b.svg"
  },
  {
    "id": "RF:00d86c30",
    "type_tag": "device_type.povs",
    "type": "Occupancy",
    "name": "Living Motion Sensor",
    "area": "1",
    "zone": "2",
    "sort_order": "",
    "is_window": "",
    "bypass": "0",
    "schar_24hr": "0",
    "sresp_24hr": "0",
    "sresp_mode_0": "0",
    "sresp_entry_0": "0",
    "sresp_exit_0": "0",
    "group_name": "Living",
    "group_id": "469641",
    "default_group_id": "1",
    "sort_id": "3",
    "sresp_mode_1": "5",
    "sresp_entry_1": "4",
    "sresp_exit_1": "0",
    "sresp_mode_2": "0",
    "sresp_entry_2": "4",
    "sresp_exit_2": "0",
    "sresp_mode_3": "0",
    "uuid": "778f3d61d6acf5d5afcaddda73688ad5",
    "sresp_entry_3": "0",
    "sresp_exit_3": "0",
    "sresp_mode_4": "0",
    "sresp_entry_4": "0",
    "sresp_exit_4": "0",
    "version": "",
    "origin": "abode",
    "has_subscription": null,
    "onboard": "0",
    "s2_grnt_keys": "",
    "s2_dsk": "",
    "s2_propty": "",
    "s2_keys_valid": "",
    "zwave_secure_protocol": "",
    "control_url": "",
    "deep_link": null,
    "status_color": "#5cb85c",
    "faults": {
      "low_battery": 0,
      "tempered": 0,
      "supervision": 0,
      "out_of_order": 0,
      "no_response": 0,
      "jammed": 0,
      "zwave_fault": 0
    },
    "status": "Online",
    "status_display": "Online",
    "statuses": { "motion": "0" },
    "status_ex": "",
    "actions": [],
    "status_icons": [],
    "sresp_trigger": "0",
    "sresp_restore": "0",
    "occupancy_timer": null,
    "sensitivity": null,
    "model": "L1",
    "is_motion_sensor": true,
    "icon": "assets/icons/occupancy-sensor.svg"
  },
  {
    "id": "RF:005ef930",
    "type_tag": "device_type.ir_camera",
    "type": "Motion Camera",
    "name": "Dining Motion Camera",
    "area": "1",
    "zone": "5",
    "sort_order": "",
    "is_window": "",
    "bypass": "0",
    "schar_24hr": "0",
    "sresp_24hr": "5",
    "sresp_mode_0": "0",
    "sresp_entry_0": "0",
    "sresp_exit_0": "0",
    "group_name": "Kitchen & Dining",
    "group_id": "469672",
    "default_group_id": "1",
    "sort_id": "1",
    "sresp_mode_1": "5",
    "sresp_entry_1": "5",
    "sresp_exit_1": "0",
    "sresp_mode_2": "0",
    "sresp_entry_2": "4",
    "sresp_exit_2": "0",
    "sresp_mode_3": "0",
    "uuid": "81175bdd6cf3777a480e7280de6bbfc1",
    "sresp_entry_3": "0",
    "sresp_exit_3": "0",
    "sresp_mode_4": "0",
    "sresp_entry_4": "0",
    "sresp_exit_4": "0",
    "version": "A03 20180111",
    "origin": "abode",
    "has_subscription": null,
    "onboard": "0",
    "s2_grnt_keys": "",
    "s2_dsk": "",
    "s2_propty": "",
    "s2_keys_valid": "",
    "zwave_secure_protocol": "",
    "control_url": "api/v1/cams/RF:005ef930/capture",
    "deep_link": null,
    "status_color": "#5cb85c",
    "faults": {
      "low_battery": 0,
      "tempered": 0,
      "supervision": 0,
      "out_of_order": 0,
      "no_response": 0,
      "jammed": 0,
      "zwave_fault": 0
    },
    "status": "Online",
    "status_display": "Online",
    "statuses": [],
    "status_ex": "",
    "actions": [
      { "label": "Auto Flash", "value": "a=1&z=5&req=img;" },
      { "label": "Never Flash", "value": "a=1&z=5&req=img_nf;" }
    ],
    "status_icons": [],
    "motion_event": "1",
    "wide_angle": "1",
    "model": "F1",
    "icon": "assets/icons/motioncamera-b.svg"
  }
]

Thanks.

difelice commented 4 years ago

Abode support and this is their response:

Hello We apologize but the motion camera will only detect movement when armed and not while in the standby mode. The abode motion sensor and occupancy sensor will detect movement when system is in standby mode Thanks abode support

That's very unfortunate, and I think website is misleading: image

I hope they can resolve this via firmware/software update.

Thanks.