Alarmo - Unifi Protect smart notifications as a sensor?

Hi all,

New HA user here!

Looking to use Alarmo as a home alarm setup and integrate my Unifi cameras as sensors. What I’d really like to do is have a trigger for ‘person detected’. The problem is it appears Alarmo only supports binary sensors, and the Unifi smart detections are states:

platform: state
entity_id: sensor.house_front_detected_object
to: person

Is there anyway to hack a solution so a person detection can be used as a sensor in Alarmo?

Thanks

Thanks to nielsfaber, the following code can be used to convert the detected object state into a binary sensor for use in Alarmo:

template:
  - binary_sensor:
      - name: Unify motion detected 
        device_class: motion
        state: >
          {{ is_state("sensor.house_front_detected_object", "person") }}

This can be placed in configuration.yaml

Thanks

I can confirm this works a treat! I hope this helps someone add unsupported sensors to Alarmo.

1 Like

This is just what I was looking for - thanks!

I managed to expose the ‘person detection’ sensors from Unifi to Alarmo as motion sensors via customize in configuration.yaml:

homeassistant:
  customize:
    binary_sensor.dining_room_person_detected:
      device_class: motion
    binary_sensor.living_room_person_detected:
      device_class: motion