Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gps todo lighting #1331

Draft
wants to merge 15 commits into
base: master
Choose a base branch
from
181 changes: 101 additions & 80 deletions ontology/yaml/resources/LIGHTING/entity_types/ABSTRACT.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,38 @@
# See the License for the specific language governing permissions and
# limitations under the License.

### ABSTRACT TYPES
### ABSTRACT TYPES ###

SS:
guid: "71ad241a-b4d5-413a-b86a-6102117feb8e"
description: "Basic combination of run command and status (start/stop); indicates the light is active or inactive."
is_abstract: true
implements:
- /SS
- /SS # inherits from GLOBAL namespace

DC:
guid: "f00c5ccb-1549-4620-9a2f-ba13a73a5aaf"
description: "Brightness dimming control."
SRC:
guid: "2483cfe4-4196-42a4-b18f-f67f258a0220"
description: "Basic run scheduling."
is_abstract: true
opt_uses:
- brightness_percentage_sensor
uses:
- brightness_percentage_command
- schedule_run_command

RC:
guid: "4bd721fa-c80b-469f-ba59-4e201464b527"
description: "Relay or switch to switch a socket or power supply for lumiaires or other devices."
is_abstract: true
uses:
- switch_command

# TODO: understand the difference between this and RC (combine functionality, if possible)
LSC:
guid: "e0fa76a9-1bd3-4844-914e-ed66eef7fcfb"
description: "Lighting switch control."
is_abstract: true
uses:
- lighting_switch_status

### Zone monitoring types ###

MS:
guid: "d5244d01-e5e9-4592-8c76-bf3a7e196a28"
Expand All @@ -37,6 +52,7 @@ MS:
uses:
- motion_status

# TODO: rename to ZOM (zone occupancy monitoring)
OS:
guid: "42e7e1d7-2da6-4be6-9d21-2d3e93e5af1c"
is_abstract: true
Expand All @@ -51,52 +67,81 @@ ROS:
uses:
- room_occupancy_status

SC:
guid: "84c2b591-fbd8-47e1-982b-45bef8211bdb"
### Illuminance types ###

IM:
guid: "13d6cfcb-8aa0-487e-a8b3-9f0f02ad63c6"
description: "Individual illuminance sensor monitoring, not used for control"
is_abstract: true
description: "Scene control for a device or group of devices."
uses:
- scene_index_command
- illuminance_sensor

BM:
guid: "b2da7457-74d3-4ec3-95a5-6f272e67a48d"
description: " Battery power status monitoring."
# TODO: delete this type (duplicate of IM)
IS:
guid: "5c46b19e-f238-4299-baac-4bd6db5c1cc7"
is_abstract: true
description: "Illuminance sensing."
uses:
- battery_charge_status
- illuminance_sensor

IM:
guid: "13d6cfcb-8aa0-487e-a8b3-9f0f02ad63c6"
description: "Individual illuminance sensor monitoring, not used for control"
# TODO: rename to IC (illuminance control) to match precedent
LC:
guid: "fa06c1cc-0240-4e55-8956-300ec6f3e095"
description: "Luminance control."
is_abstract: true
uses:
- illuminance_setpoint
- illuminance_sensor

### Dimmer and brightness types ###

# TODO: justify use of this (modeling similar behavior as DC)
DPC:
guid: "af54bb0b-795c-4b3e-bb74-b3a77d61eae2"
description: " Dimmer control."
is_abstract: true
uses:
- dimmer_percentage_command

DC:
guid: "f00c5ccb-1549-4620-9a2f-ba13a73a5aaf"
description: "Brightness dimming control."
is_abstract: true
opt_uses:
- brightness_percentage_sensor
uses:
- brightness_percentage_command

# TODO: jutify this type, very similar control to DC (combine with DC, if possible)
DM:
guid: "0e3ab3d7-a378-4c72-91ca-32a1290c6d84"
description: "Brightness dimming monitoring."
is_abstract: true
opt_uses:
- dimmer_run_status # TODO: justify this field name, similar meaning as lighting_switch_status
- power_sensor # TODO: remove from this type, implement PWM on the canonical instead
uses:
- brightness_percentage_sensor

### Scene types ###

SC:
guid: "84c2b591-fbd8-47e1-982b-45bef8211bdb"
is_abstract: true
description: "Scene control for a device or group of devices."
uses:
- scene_index_command

SCZ:
guid: "e61e393c-370e-4917-bdb4-2554e0d47f0b"
is_abstract: true
description: "Scene control for a device and zone."
opt_uses:
- scene_command
- scene_command # TODO: justify the need for this (because zone_scene_command is also implemented)
- scene_index_command
uses:
- zone_scene_command

IS:
guid: "5c46b19e-f238-4299-baac-4bd6db5c1cc7"
is_abstract: true
description: "Illuminance sensing."
uses:
- illuminance_sensor

#Abstract types for CH ZRH EURD
VADC:
guid: "dd477164-19aa-4b48-ad31-115c086cfc1e"
description: "Variable dimmer control for standard luminaires."
Expand All @@ -109,7 +154,7 @@ VADC:

VADCRGB:
guid: "338fb60b-963b-4489-bf94-6796bb19d367"
description: "Variable dimmer control for RGB luminaires."
description: "Variable dimmer control for red-green-blue (RGB) luminaires."
is_abstract: true
uses:
- scene_dimmer_percentage_command
Expand All @@ -120,41 +165,43 @@ VADCRGB:
- green_scene_dimmer_percentage_command
- blue_scene_dimmer_percentage_command

RC:
guid: "4bd721fa-c80b-469f-ba59-4e201464b527"
description: "Relay or switch to switch a socket or power supply for lumiaires or other devices"
is_abstract: true
uses:
- switch_command
### Power and energy types ###

LSC:
guid: "e0fa76a9-1bd3-4844-914e-ed66eef7fcfb"
description: "Lighting switch control."
BM:
guid: "b2da7457-74d3-4ec3-95a5-6f272e67a48d"
description: " Battery power status monitoring."
is_abstract: true
uses:
- lighting_switch_status

LC:
guid: "fa06c1cc-0240-4e55-8956-300ec6f3e095"
description: "Luminance control."
- battery_charge_status

# TODO: deprecate and inherit from METERS (or promote PWM to global and inherit from there)
# TODO: combine with ENM
PWM:
guid: "fc70bbb6-5000-4f83-9e79-862f60ececfe"
description: "Basic power monitoring "
is_abstract: true
uses:
- illuminance_setpoint
- illuminance_sensor
- power_sensor

SRC:
guid: "2483cfe4-4196-42a4-b18f-f67f258a0220"
description: "Basic run scheduling "
# TODO: deprecate and combine with PWM
ENM:
guid: "2f548e52-a2b3-492c-acd8-747f0ce4f8a9"
description: "Basic energy monitoring "
is_abstract: true
uses:
- schedule_run_command
- energy_accumulator

PWM:
guid: "fc70bbb6-5000-4f83-9e79-862f60ececfe"
description: "Basic power monitoring "
# TODO: deprecate and replace with new, targeted abstract types
OM:
guid: "54221319-0bab-4aa9-aea0-d667419bee11"
description: "Operation monitoring for lighting fixtures"
is_abstract: true
uses:
- power_sensor
- energy_accumulator # TODO: covered by PWM
- run_time_accumulator # TODO: add as opt_uses to SS
- luminaire_alarm # TODO: understand this alarm's purpose (does it indicate failure? If so, add failed_alarm to general type)

### Lighting color types ###

CCIEM:
guid: "d2755279-6ccd-4d9e-838a-371ab23c022d"
Expand All @@ -172,37 +219,11 @@ CHSLM:
- lighting_color_hsl_saturation_percentage_sensor
- lighting_color_hsl_hue_angle_sensor

OM:
guid: "54221319-0bab-4aa9-aea0-d667419bee11"
description: "Operation monitoring for lighting fixtures"
is_abstract: true
uses:
- energy_accumulator
- run_time_accumulator
- luminaire_alarm

DM:
guid: "0e3ab3d7-a378-4c72-91ca-32a1290c6d84"
description: "Brightness dimming monitoring."
is_abstract: true
opt_uses:
- dimmer_run_status
- power_sensor
uses:
- brightness_percentage_sensor

ENM:
guid: "2f548e52-a2b3-492c-acd8-747f0ce4f8a9"
description: "Basic energy monitoring "
is_abstract: true
uses:
- energy_accumulator

CTC:
guid: "30ed8ab4-8df7-493f-a3fc-b4da7f28c8fe"
is_abstract: true
description: "Scene control for a device and zone."
opt_uses:
- lighting_color_temperature_sensor
- lighting_color_temperature_sensor # TODO: promote to uses
uses:
- lighting_color_temperature_setpoint
49 changes: 25 additions & 24 deletions ontology/yaml/resources/LIGHTING/entity_types/GENERALTYPES.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,26 @@
# See the License for the specific language governing permissions and
# limitations under the License.

LT:
guid: "01154366-4062-43ff-b7eb-ffbe7216ea84"
description: "Luminaire, lighting fixture. The thing that produces light."
is_abstract: true
implements:
- EQUIPMENT

LTGW:
guid: "30a5aaf1-a30d-41db-8ace-643ce84b170e"
description: "Lighting gateway."
ELT:
guid: "fb78a0b6-b1aa-4779-bde3-8ed76ea6b6ed"
description: "Lights intended to provide illumination and/or direction during an emergency."
is_abstract: true
implements:
- EQUIPMENT

# TODO: justify the difference between LCM and LGRP
LCM:
guid: "8cdb21a1-2835-43ea-879c-1ca29105ec44"
description: "Lighting control module, used for controlling one or more luminaires (LT)."
is_abstract: true
implements:
- EQUIPMENT

LGRP:
guid: "7b2723ef-361a-40ff-8399-4a907a52c357"
is_abstract: true
description: "A group containing one or more luminaires."

LKP:
guid: "be286551-98a9-46be-82f0-9c83266cee22"
description: "Lighting keypad."
Expand All @@ -41,28 +40,30 @@ LKP:
- EQUIPMENT
- USER_INTERFACE

LTB: # TODO: inherit from common device when a concrete example emerges.
guid: "f1dcdb9b-6aab-4551-9f44-0385c95d0274"
description: "Battery that serves lighting devices. "
LS:
guid: "768b8a60-ae3f-445e-8169-3b001513e752"
is_abstract: true
description: "Lighting system specific sensor."
implements:
- EQUIPMENT
- SENSOR

LGRP:
guid: "7b2723ef-361a-40ff-8399-4a907a52c357"
LT:
guid: "01154366-4062-43ff-b7eb-ffbe7216ea84"
description: "Luminaire, lighting fixture. The thing that produces light."
is_abstract: true
description: "A group containing one or more luminaires."
implements:
- EQUIPMENT

LS:
guid: "768b8a60-ae3f-445e-8169-3b001513e752"
LTB: # TODO: inherit from common device when a concrete example emerges.
guid: "f1dcdb9b-6aab-4551-9f44-0385c95d0274"
description: "Battery that serves lighting devices."
is_abstract: true
description: "Lighting system specific sensor."
implements:
- SENSOR
- EQUIPMENT

ELT:
guid: "fb78a0b6-b1aa-4779-bde3-8ed76ea6b6ed"
description: "Lights intended to provide illumination and/or direction during an emergency."
LTGW:
guid: "30a5aaf1-a30d-41db-8ace-643ce84b170e"
description: "Lighting gateway."
is_abstract: true
implements:
- EQUIPMENT
Expand Down
3 changes: 3 additions & 0 deletions ontology/yaml/resources/LIGHTING/entity_types/LCM.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.

########################
### Canonical Types ###
########################
# Lighting group controllers.

LCM_SS:
Expand Down
Loading
Loading