Announcement

Collapse
No announcement yet.

[script] Composite Device Status - status multiple devices in one vDevice

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [script] Composite Device Status - status multiple devices in one vDevice

    Composite Device Status

    ' Functionality:
    ' Immediate updates of Virtual Devices with a "Composite View" for chosen device name or type.
    ' ... Example: If one or more Motion Sensor is tripped, the Composite Device shows each room that is tripped. You can change the status text displayed to show any/all info you want.
    '
    ' Status is set in a separate virtual Device for each device category... Lights, Doors, Locks, Windows, Motion, etc. (you must setup each device - see instructions below)
    '
    ' Use Composite Status virtual devices in Events or for visual status/control, example... see exactly which Doors are Unlocked on your phone, wall mounted tablet, etc?
    '
    ' This script can easily be added or modified for ANY device name, location, type, etc. For example, by default, it works with Homeseer's MyQ Garage Door Plugin.
    '
    ' HOW IT WORKS:
    ' Uses the real Device Name to determine if a physical device is to be used in the Composite Device (virtual device)
    ' - script could be easily modified to use Location labels if desired.
    ' Default Names used are: Door, Lock, Window, Motion, Light -- these can be changed below
    '​
    ' REQUIREMENTS:

    ' VIRTUAL DEVICES... 1 for each "category" you want - if you dont want to use some, you dont need to. Just comment out that section in the code below. Default categories are: Lights, Door Locks, Doors, Windows, Motion Sensors, Garage Doors

    ' EVENTS... create a single event that triggers when ANY Device Changes OR one event per device type or any combination. Events must run this script when any of the physical devices "just had its value set or changed."
    ' ... I use separate events per device type. It provides more control and overall less Homeseer processing
    '
    ' Version History
    ' 2023-01-04 : v1.50 - minor bug fixes and code cleanup; added feature to enable/disable removing the word "room" from status text; removed ISY support
    ' 2022-02-11 : v1.48 - changed motion sensors to Include only when Floor = 'Sensor' since all sensors are in that room.
    ' 2021-03-28 : v1.47 - added Blue Iris camera devices
    ' 2020-11-07 : v1.46 - added check to ensure no immediate repeats/duplicates would be in status text
    ' 2020-01-16 : v1.45 - added RGB Lights (RGBW device types from JowiHue plugin)
    ' 2019-29-11 : v1.44 - excluded rooms, 'System', 'Blue-Iris', 'Camera', from Door searches
    ' 2018-10-27 : v1.43 - moved all vDevice writing routines to the end, it was causing unnecessay writes and problems with false triggers of events
    ' 2018-05-31 : v1.42 - added ability to customize display text when 'no devices' match reporting state (open, closed, locked, etc)
    ' 2018-05-26 : v1.41 - fixed bug in Window section
    ' 2018-04-06 : v1.40 - added device for ALL Lights On; has defaults to specify up to 3 Device Types so you dont get non-lights in the list.
    ' 2018-02-03 : v1.35 - added Media Room motion sensors as separate vDevice query
    ' 2017-08-30 : v1.31 - Updated myQ Garage Doors code to fit latest MyQ Plugin update
    ' 2017-08-18 : v1.3 - Fixed bug in Door Lock. Was not reporting proper status in vDevice
    ' 2017-07-30 : v1.2 - Separated out Garage Doors into own vDevice
    ' 2017-07-15 : v1.1 - added ability to Exclude devices based on Location2 (aka Floor).
    ' 2017-07-12 : v1.0 - Name detection for Door Locks, Doors, Windows, Motion​
    Attached Files
    Last edited by Ltek; May 2, 2021, 08:49 AM.
Working...
X