Skip to content

Releases: kw123/unifi

various adds

01 Apr 21:30
Compare
Choose a tag to compare
    • added new schema for groups
      There can be up to 8 groups of devices, the names of the groups can be set in config
      Each groups counts the number of devices home (up) and away(down/expired)
      They are shown as variables
      Unifi_count_groupname_Home == number of device up
      Unifi_count_groupname_Away = number of devices not up
      Unifi_count_groupname_lastChange = datestamp of last count change
      A device can be added/ removed in each devices edit or in menu/manage groups
      The manage group option allows to add eg all wifi or lan devices to a group
      and you can eg add/remove 10 individual devices on one screen faster than editing 10 devices
      There is a a report on the groups, memebers etc in Print parameters
    • several device model texts had typos
    • various menu cosmetic changes
  1. fixes

    • block / unblock wifi devices had a cosmetic error message
    • the site id name was always default, now can be set in config (not test)

IMPORTTANT FIX

30 Mar 21:40
Compare
Choose a tag to compare

changes in V 7.38.356@ 2021-03-30

  1. IMPORTTANT FIX
    lastRead state was never updated
    also new cameras were not added.
    the bug was added when I added the door bell
    dict["lastRing"]/1000 does not work if value is None (not a doorbell camera)
    and the exception handling excluded anuything with "None" in its text (that the error condition when the plugin restarts)
    so the error message never showed

changed timing of expect scripts

21 Mar 19:13
Compare
Choose a tag to compare
  1. changed expect script for getting dicts from AP, switch UDMpro
    better timing, should result in much fewer restarts
    changed timing of listener starts, so that hey do not run all at the same time
  2. changed log level for listener restarts, now only every 3rd time level is warning 6th is error
    rest is info / debug in plugin.log file

better timing for ap dict

19 Mar 18:26
Compare
Choose a tag to compare
  1. changed expect script for getting dicts from AP, switch UDMpro
    better timing, should result in much fewer restarts
  2. changed log level for restarts, now only every 3 time level is warning 6 is error
    rest is info / debug in plugin.log file

add full support for thumbnails for events

15 Mar 22:45
Compare
Choose a tag to compare

changes in V 7.38.352@ 2021-03-15

  1. fixed some exception handling errors
  2. now handles overlapping events better eg
    doorbell has motion event and then a doorbell rung event before the motion event ends
    smart detected person or vehicle: it will cretae several events for teh same detection.
    they are shown in the vaiables
  3. handling of orphan events in the plugin that do not create and end event.
    those would keep the status at eg motion for ever or until when the next event occures
  4. added some more columns to the camera report

added camera report menu item in Camera

13 Mar 18:07
Compare
Choose a tag to compare
  1. added camera report menu item in Camera ....
  2. fixed camId not found (in exception handling)
    fixed dev states not updated continuously

added camera report menu item in Camera ....

13 Mar 15:38
Compare
Choose a tag to compare
  1. added camera report menu item in Camera ....
  2. fixed camId not found (in exception handling)

added support for doorbell

13 Mar 03:52
Compare
Choose a tag to compare
  1. smaller fixes for procted devices

    • handle expections
    • handle double devices eg user has duplicated device, a devices was unmanaged and managed hence the cam-id changes, ..
    • and more exceptions like these
  2. now supports protect doorbell
    a door press is indicated as :
    eventType = "ring" instead of motion
    rest is the same eg status = "event", eb=vent start end and length are the same as for other events
    ==> as events can come in paralell there can be a motion event starts, the ring event starts and ends before the motion event ends
    then the thumbnails will be updated in short sequence and the ring info will be overwritten
    so the eventType = "ring" will only be visible for a short period of time

added support for unifi protect cameras

12 Mar 04:37
Compare
Choose a tag to compare
  1. added support for unifi protect cameras (this requires mac os 10.14 or higher)
    • get cameras from unifi systems and create indigo devices

    • the plugin will listen to events, create dev states for start time / end time/ time length of event
      get thumbnails jpegs and or heatmap jpegs
      enable / disable / configure thumbnails in camera device edit
      events are also setting variables:
      Unifi_Camera_Event_Date date string of last event; eg "2021-03-11 22:33:26"
      Unifi_Camera_with_Event device name of camera of last event; eg "Camera_Reserve-UVC G3 Flex"
      Unifi_Camera_Event_pathtoThumbnail path to last event thumbnail; eg "/Users/karlwachs/indigo/protect/Camera_Reserve-UVC G3 Flex_snapshot.jpeg"

    • get snap shots through menu or actions at any time, with selectable resolution

    • set parameters of cameras for IR-LED, status-LED, speaker, mic, motion trigger etc in menu and actions

    • added debug option for protect in config

    • the dev/state "smartDetect" is blank or "vehicle" or "person" if the smart detect option is enabled to detect objects for events

==> to enable: set camera to protect in config (just above debug)
and set repeat frequencies ...
all camears connected / adopted by protect will be cretaed in the folder unifi_created.

==> how to use / setup:
1. enable protect in config (bottom, above debug section)
select "protect"
set repeat query for device state checks and event tracking
sel path for thumbnails
2. Then trigger on any change camera xx dev/states["eventStart"] ==> new movement at camera xx
or on variable Unifi_Camera_Event_Date
the path to the thumbnail is in dev/state "eventJpeg" and in variable "Unifi_Camera_Event_pathtoThumbnail"
eg: "/Users/youruserid/Camera_living window G3 Flex_snapshot.jpeg"
the thumbnail are only availabe at the end of teh event (dev/states["eventEnd"] is changed to !=-1)
3. Get snapshots at anytime: setup action with in unifi action "CAMERAS get Snapshot" then execute at your pleasure
or use menu/cameras/snaphot for testing or onetime pictures

  1. added option to switch off queries to infi controller when you have osx13.x and lower and unifi controller v 6.x

added support for protect cameras

11 Mar 04:05
Compare
Choose a tag to compare
  1. added support for unifi protect cameras

    • get cameras from unif systems and create indigo devices
    • the plugin will listen to events, create dev states for start / stop / delta time
      get thumbnails jpegs and or heatmap jpegs
      enable / disable / configure in camera device edit
    • get snap shots through menu or actions
    • set parameters of cameras in menu and actions
    • added debug for protect in config
      ==> to enable: set camera to protect in config (just above debug)
      and set repeat frequencies ...
      all camears connected / adopted by protect will be cretaed in the folder unifi_created.
      ==> to use:
    1. trigger on any change camera xx dev/states["lastEventStart"] ==> new movement at camera xx
    2. by setting the path to teh thumbnail in config thumbnail of the events are copiued there as
      cameraname_snapshot.jpeg
  2. added option to switch off queries to infi controller when you have osx13.x and lower and unifi controller v 6.x