Add support for SCS KS air-conditioning Devices (#12360)

* Added Device: SCS KS Air-Cons

* Changed SCS-KS-Series to SCS-KS, Added Interfaces, Added new tests
This commit is contained in:
Torch
2021-02-02 16:16:44 +01:00
committed by GitHub
parent d201c4ff9d
commit edab7e54aa
5 changed files with 2430 additions and 0 deletions

View File

@@ -0,0 +1,222 @@
mib: SCS-ks-MIB
modules:
sensors:
temperature:
data:
-
oid: exhaust-air-temperature.0
value: exhaust-air-temperature
num_oid: '.1.3.6.1.4.1.9839.1.2.15.{{ $index }}'
descr: 'Exhaust air temperature'
divisor: 10
-
oid: supply-air-temperature.0
value: supply-air-temperature
num_oid: '.1.3.6.1.4.1.9839.1.2.16.{{ $index }}'
descr: ' Supply air temperature'
divisor: 10
-
oid: outside-air-temperature.0
value: outside-air-temperature
num_oid: '.1.3.6.1.4.1.9839.1.2.17.{{ $index }}'
descr: 'Outside air temperature'
divisor: 10
-
oid: room-temperature.0
value: room-temperature
num_oid: '.1.3.6.1.4.1.9839.1.2.18.{{ $index }}'
descr: 'Room temperature'
divisor: 10
humidity:
data:
-
oid: room-humidity.0
value: room-humidity
num_oid: '.1.3.6.1.4.1.9839.1.2.19.{{ $index }}'
descr: ' Room humidity'
divisor: 10
state:
data:
-
oid: status-evaporator-fan.0
value: status-evaporator-fan
num_oid: '.1.3.6.1.4.1.9839.1.2.1.{{ $index }}'
descr: 'Evaporator Fan alarm'
group: Alarm
states:
- { value: -1, generic: 3, graph: 0, descr: 'null' }
- { value: 0, generic: 0, graph: 0, descr: OK }
- { value: 1, generic: 2, graph: 0, descr: Error }
-
oid: status-condenser-fan.0
value: status-condenser-fan
num_oid: '.1.3.6.1.4.1.9839.1.2.2.{{ $index }}'
descr: 'Condenser Fan alarm'
group: Alarm
states:
- { value: -1, generic: 3, graph: 0, descr: 'null' }
- { value: 0, generic: 0, graph: 0, descr: OK }
- { value: 1, generic: 2, graph: 0, descr: Error }
-
oid: status-compressor.0
value: status-compressor
num_oid: '.1.3.6.1.4.1.9839.1.2.3.{{ $index }}'
descr: 'Compressor alarm'
group: Alarm
states:
- { value: -1, generic: 3, graph: 0, descr: 'null' }
- { value: 0, generic: 0, graph: 0, descr: OK }
- { value: 1, generic: 2, graph: 0, descr: Error }
-
oid: status-heater-thermal-protection.0
value: status-heater-thermal-protection
num_oid: '.1.3.6.1.4.1.9839.1.2.4.{{ $index }}'
descr: 'Heater thermal protection alarm'
group: Alarm
states:
- { value: -1, generic: 3, graph: 0, descr: 'null' }
- { value: 0, generic: 0, graph: 0, descr: OK }
- { value: 1, generic: 2, graph: 0, descr: Error }
-
oid: status-exhaust-air-sensor.0
value: status-exhaust-air-sensor
num_oid: '.1.3.6.1.4.1.9839.1.2.5.{{ $index }}'
descr: 'Exhaust air sensor alarm'
group: Alarm
states:
- { value: -1, generic: 3, graph: 0, descr: 'null' }
- { value: 0, generic: 0, graph: 0, descr: OK }
- { value: 1, generic: 2, graph: 0, descr: Error }
-
oid: status-supply-air-sensor.0
value: status-supply-air-sensor
num_oid: '.1.3.6.1.4.1.9839.1.2.6.{{ $index }}'
descr: 'Supply air sensor alarm'
group: Alarm
states:
- { value: -1, generic: 3, graph: 0, descr: 'null' }
- { value: 0, generic: 0, graph: 0, descr: OK }
- { value: 1, generic: 2, graph: 0, descr: Error }
-
oid: status-outside-sensor.0
value: status-outside-sensor
num_oid: '.1.3.6.1.4.1.9839.1.2.7.{{ $index }}'
descr: 'Outside temperature sensor alarm'
group: Alarm
states:
- { value: -1, generic: 3, graph: 0, descr: 'null' }
- { value: 0, generic: 0, graph: 0, descr: OK }
- { value: 1, generic: 2, graph: 0, descr: Error }
-
oid: status-room-temperature-sensor.0
value: status-room-temperature-sensor
num_oid: '.1.3.6.1.4.1.9839.1.2.8.{{ $index }}'
descr: 'Temperature room sensor alarm'
group: Alarm
states:
- { value: -1, generic: 3, graph: 0, descr: 'null' }
- { value: 0, generic: 0, graph: 0, descr: OK }
- { value: 1, generic: 2, graph: 0, descr: Error }
-
oid: status-room-humidity-sensor.0
value: status-room-humidity-sensor
num_oid: '.1.3.6.1.4.1.9839.1.2.9.{{ $index }}'
descr: 'Humidity room sensor alarm'
group: Alarm
states:
- { value: -1, generic: 3, graph: 0, descr: 'null' }
- { value: 0, generic: 0, graph: 0, descr: OK }
- { value: 1, generic: 2, graph: 0, descr: Error }
-
oid: status-min-exhaust-air-temperature.0
value: status-min-exhaust-air-temperature
num_oid: '.1.3.6.1.4.1.9839.1.2.10.{{ $index }}'
descr: 'Minimum exhaust air temperature alarm'
group: Alarm
states:
- { value: -1, generic: 3, graph: 0, descr: 'null' }
- { value: 0, generic: 0, graph: 0, descr: OK }
- { value: 1, generic: 2, graph: 0, descr: Error }
-
oid: status-max-exhaust-air-temperature.0
value: status-max-exhaust-air-temperature
num_oid: '.1.3.6.1.4.1.9839.1.2.11.{{ $index }}'
descr: 'Maximum exhaust air temperature alarm'
group: Alarm
states:
- { value: -1, generic: 3, graph: 0, descr: 'null' }
- { value: 0, generic: 0, graph: 0, descr: OK }
- { value: 1, generic: 2, graph: 0, descr: Error }
-
oid: status-min-supply-air-temperature.0
value: status-min-supply-air-temperature
num_oid: '.1.3.6.1.4.1.9839.1.2.12.{{ $index }}'
descr: 'Minimum supply air temperature alarm'
group: Alarm
states:
- { value: -1, generic: 3, graph: 0, descr: 'null' }
- { value: 0, generic: 0, graph: 0, descr: OK }
- { value: 1, generic: 2, graph: 0, descr: Error }
-
oid: status-water-sensor.0
value: status-water-sensor
num_oid: '.1.3.6.1.4.1.9839.1.2.13.{{ $index }}'
descr: 'Water sensor alarm'
group: Alarm
states:
- { value: -1, generic: 3, graph: 0, descr: 'null' }
- { value: 0, generic: 0, graph: 0, descr: OK }
- { value: 1, generic: 2, graph: 0, descr: Error }
-
oid: status-filter-monitoring.0
value: status-filter-monitoring
num_oid: '.1.3.6.1.4.1.9839.1.2.14.{{ $index }}'
descr: 'Filter monitoring alarm'
group: Alarm
states:
- { value: -1, generic: 3, graph: 0, descr: 'null' }
- { value: 0, generic: 0, graph: 0, descr: OK }
- { value: 1, generic: 2, graph: 0, descr: Error }
-
oid: status-operational-status.0
value: status-operational-status
num_oid: '.1.3.6.1.4.1.9839.1.2.20.{{ $index }}'
descr: 'Operational status'
group: Status
states:
- { value: -1, generic: 3, graph: 0, descr: 'null' }
- { value: 0, generic: 2, graph: 0, descr: Shut Down }
- { value: 1, generic: 0, graph: 0, descr: Running }
-
oid: status-collective-fault.0
value: status-collective-fault
num_oid: '.1.3.6.1.4.1.9839.1.2.21.{{ $index }}'
descr: ' Collective fault alarm'
group: Alarm
states:
- { value: -1, generic: 3, graph: 0, descr: 'null' }
- { value: 0, generic: 0, graph: 0, descr: OK }
- { value: 1, generic: 2, graph: 0, descr: Error }

View File

@@ -0,0 +1,42 @@
os: scs-ks
text: 'SCS KS'
type: environment
icon: carel
mib_dir: carel
over:
- { graph: device_humidity, text: 'Humidity' }
- { graph: device_temperature, text: 'Temperature' }
discovery:
-
sysDescr:
- 'CAREL cpCO controller'
sysObjectID:
- .1.3.6.1.4.1.9839
poller_modules:
entity-physical: true
hr-mib: true
ipSystemStats: true
netstats: true
ospf: false
ucd-mib: true
ports: true
stp: false
discovery_modules:
ports-stack: true
entity-physical: true
processors: true
mempools: true
cisco-vrf-lite: false
ipv4-addresses: true
ipv6-addresses: true
storage: false
hr-device: true
discovery-protocols: true
arp-table: true
bgp-peers: false
ucd-diskio: false
fdb-table: true
stp: false
vlans: true
ports: true

248
mibs/carel/SCS-ks-MIB Normal file
View File

@@ -0,0 +1,248 @@
--
-- SCS-ks.MIB
-- MIB generated by https://github.com/Torch09
-- Thursday, 05 November 2020
--
SCS-ks-MIB DEFINITIONS ::= BEGIN
IMPORTS
OBJECT-GROUP
FROM SNMPv2-CONF
sysContact, sysName, sysLocation
FROM SNMPv2-MIB
enterprises, MODULE-IDENTITY, OBJECT-TYPE, NOTIFICATION-TYPE, Integer32
FROM SNMPv2-SMI
DisplayString
FROM RFC1213-MIB
enterprises, IpAddress, Counter, Gauge
FROM RFC1155-SMI
ifIndex, ifEntry
FROM IF-MIB;
scs-ks MODULE-IDENTITY
LAST-UPDATED "202011051805Z"
ORGANIZATION "None"
CONTACT-INFO
"
None
GH: https://github.com/Torch09
Mail: torch09gh@gmail.com
"
DESCRIPTION
"This is the unofficial MIB module for the SCS KS."
REVISION "202011051805Z"
DESCRIPTION "scs ks MIB"
::= { systm 1 }
--
-- Node definitions
--
-- 1.3.6.1.4.1.9839
carel OBJECT IDENTIFIER ::= { enterprises 9839 }
-- 1.3.6.1.4.1.9839.1
systm OBJECT IDENTIFIER ::= { carel 1 }
-- 1.3.6.1.4.1.9839.1.2
scs OBJECT IDENTIFIER ::= { systm 2 }
-- SCS VARIABLE
-- 1.3.6.1.4.1.9839.1.2.1
status-evaporator-fan OBJECT-TYPE
SYNTAX Integer32 (0..1)
UNITS "N/A"
MAX-ACCESS read-only
STATUS current
DESCRIPTION "Evaporator Fan alarm 0=OK;1=Error"
::= { scs 1 }
-- 1.3.6.1.4.1.9839.1.2.2
status-condenser-fan OBJECT-TYPE
SYNTAX Integer32 (0..1)
UNITS "N/A"
MAX-ACCESS read-only
STATUS current
DESCRIPTION "Condenser Fan alarm 0=OK;1=Error"
::= { scs 2 }
-- 1.3.6.1.4.1.9839.1.2.3
status-compressor OBJECT-TYPE
SYNTAX Integer32 (0..1)
UNITS "N/A"
MAX-ACCESS read-only
STATUS current
DESCRIPTION "Compressor alarm 0=OK;1=Error"
::= { scs 3 }
-- 1.3.6.1.4.1.9839.1.2.4
status-heater-thermal-protection OBJECT-TYPE
SYNTAX Integer32 (0..1)
UNITS "N/A"
MAX-ACCESS read-only
STATUS current
DESCRIPTION "Heater thermal protection alarm 0=OK;1=Error"
::= { scs 4 }
-- 1.3.6.1.4.1.9839.1.2.5
status-exhaust-air-sensor OBJECT-TYPE
SYNTAX Integer32 (0..1)
UNITS "N/A"
MAX-ACCESS read-only
STATUS current
DESCRIPTION "Exhaust air sensor alarm 0=OK;1=Error"
::= { scs 5 }
-- 1.3.6.1.4.1.9839.1.2.6
status-supply-air-sensor OBJECT-TYPE
SYNTAX Integer32 (0..1)
UNITS "N/A"
MAX-ACCESS read-only
STATUS current
DESCRIPTION "Supply air sensor alarm 0=OK;1=Error"
::= { scs 6 }
-- 1.3.6.1.4.1.9839.1.2.7
status-outside-sensor OBJECT-TYPE
SYNTAX Integer32 (0..1)
UNITS "N/A"
MAX-ACCESS read-only
STATUS current
DESCRIPTION "Outside temperature sensor alarm 0=OK;1=Error"
::= { scs 7 }
-- 1.3.6.1.4.1.9839.1.2.8
status-room-temperature-sensor OBJECT-TYPE
SYNTAX Integer32 (0..1)
UNITS "N/A"
MAX-ACCESS read-only
STATUS current
DESCRIPTION "Temperature room sensor alarm 0=OK;1=Error"
::= { scs 8 }
-- 1.3.6.1.4.1.9839.1.2.9
status-room-humidity-sensor OBJECT-TYPE
SYNTAX Integer32 (0..1)
UNITS "N/A"
MAX-ACCESS read-only
STATUS current
DESCRIPTION "Humidity room sensor alarm 0=OK;1=Error"
::= { scs 9 }
-- 1.3.6.1.4.1.9839.1.2.10
status-min-exhaust-air-temperature OBJECT-TYPE
SYNTAX Integer32 (0..1)
UNITS "N/A"
MAX-ACCESS read-only
STATUS current
DESCRIPTION "Minimum exhaust air temperature alarm 0=OK;1=Error"
::= { scs 10 }
-- 1.3.6.1.4.1.9839.1.2.11
status-max-exhaust-air-temperature OBJECT-TYPE
SYNTAX Integer32 (0..1)
UNITS "N/A"
MAX-ACCESS read-only
STATUS current
DESCRIPTION "Maximum exhaust air temperature alarm 0=OK;1=Error"
::= { scs 11 }
-- 1.3.6.1.4.1.9839.1.2.12
status-min-supply-air-temperature OBJECT-TYPE
SYNTAX Integer32 (0..1)
UNITS "N/A"
MAX-ACCESS read-only
STATUS current
DESCRIPTION "Minimum supply air temperature alarm 0=OK;1=Error"
::= { scs 12 }
-- 1.3.6.1.4.1.9839.1.2.13
status-water-sensor OBJECT-TYPE
SYNTAX Integer32 (0..1)
UNITS "N/A"
MAX-ACCESS read-only
STATUS current
DESCRIPTION "Water sensor alarm 0=OK;1=Error"
::= { scs 13 }
-- 1.3.6.1.4.1.9839.1.2.14
status-filter-monitoring OBJECT-TYPE
SYNTAX Integer32 (0..1)
UNITS "N/A"
MAX-ACCESS read-only
STATUS current
DESCRIPTION "Filter monitoring alarm 0=OK;1=Error"
::= { scs 14 }
-- 1.3.6.1.4.1.9839.1.2.15
exhaust-air-temperature OBJECT-TYPE
SYNTAX Integer32 (-999..999)
UNITS "N/A"
MAX-ACCESS read-only
STATUS current
DESCRIPTION "Exhaust air temperature 235 = 23.5 degree Celsius"
::= { scs 15 }
-- 1.3.6.1.4.1.9839.1.2.16
supply-air-temperature OBJECT-TYPE
SYNTAX Integer32 (-999..999)
UNITS "N/A"
MAX-ACCESS read-only
STATUS current
DESCRIPTION "Supply air temperature 235 = 23.5 degree Celsius"
::= { scs 16 }
-- 1.3.6.1.4.1.9839.1.2.17
outside-air-temperature OBJECT-TYPE
SYNTAX Integer32 (-999..999)
UNITS "N/A"
MAX-ACCESS read-only
STATUS current
DESCRIPTION "Outside air temperature 235 = 23.5 degree Celsius"
::= { scs 17 }
-- 1.3.6.1.4.1.9839.1.2.18
room-temperature OBJECT-TYPE
SYNTAX Integer32 (-999..999)
UNITS "N/A"
MAX-ACCESS read-only
STATUS current
DESCRIPTION "Room temperature 235 = 23.5 degree Celsius"
::= { scs 18 }
-- 1.3.6.1.4.1.9839.1.2.19
room-humidity OBJECT-TYPE
SYNTAX Integer32 (-999..999)
UNITS "N/A"
MAX-ACCESS read-only
STATUS current
DESCRIPTION "Room humidity 235 = 23.5 %"
::= { scs 19 }
-- 1.3.6.1.4.1.9839.1.2.20
status-operational-status OBJECT-TYPE
SYNTAX Integer32 (0..1)
UNITS "N/A"
MAX-ACCESS read-only
STATUS current
DESCRIPTION "Operational status 0=Off;1=Running"
::= { scs 20 }
-- 1.3.6.1.4.1.9839.1.2.21
status-collective-fault OBJECT-TYPE
SYNTAX Integer32 (0..1)
UNITS "N/A"
MAX-ACCESS read-only
STATUS current
DESCRIPTION "Collective fault alarm 0=Error;1=Ok"
::= { scs 21 }
END
--
-- SCS-ks.MIB
--

1848
tests/data/scs-ks.json Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,70 @@
1.3.6.1.2.1.1.1.0|4|CAREL cpCO controller
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.9839
1.3.6.1.2.1.1.3.0|67|394778740
1.3.6.1.2.1.1.4.0|4|<private>
1.3.6.1.2.1.1.5.0|4|<private>
1.3.6.1.2.1.1.6.0|4|<private>
1.3.6.1.2.1.2.2.1.1.1|2|0
1.3.6.1.2.1.2.2.1.1.2|2|1
1.3.6.1.2.1.2.2.1.2.1|4|ETH
1.3.6.1.2.1.2.2.1.2.2|4|USB
1.3.6.1.2.1.2.2.1.3.1|2|6
1.3.6.1.2.1.2.2.1.3.2|2|6
1.3.6.1.2.1.2.2.1.4.1|2|1500
1.3.6.1.2.1.2.2.1.4.2|2|1500
1.3.6.1.2.1.2.2.1.5.1|66|100000000
1.3.6.1.2.1.2.2.1.5.2|66|0
1.3.6.1.2.1.2.2.1.6.1|4x|<private>
1.3.6.1.2.1.2.2.1.6.2|4x|000000000000
1.3.6.1.2.1.2.2.1.7.1|2|1
1.3.6.1.2.1.2.2.1.7.2|2|1
1.3.6.1.2.1.2.2.1.8.1|2|1
1.3.6.1.2.1.2.2.1.8.2|2|2
1.3.6.1.2.1.2.2.1.9.1|67|120517535
1.3.6.1.2.1.2.2.1.9.2|67|0
1.3.6.1.2.1.2.2.1.10.1|65|509368580
1.3.6.1.2.1.2.2.1.10.2|65|0
1.3.6.1.2.1.2.2.1.11.1|65|85065021
1.3.6.1.2.1.2.2.1.11.2|65|0
1.3.6.1.2.1.2.2.1.12.1|65|349
1.3.6.1.2.1.2.2.1.12.2|65|0
1.3.6.1.2.1.2.2.1.13.1|65|0
1.3.6.1.2.1.2.2.1.13.2|65|0
1.3.6.1.2.1.2.2.1.14.1|65|0
1.3.6.1.2.1.2.2.1.14.2|65|0
1.3.6.1.2.1.2.2.1.15.1|65|6877290
1.3.6.1.2.1.2.2.1.15.2|65|0
1.3.6.1.2.1.2.2.1.16.1|65|2749288297
1.3.6.1.2.1.2.2.1.16.2|65|0
1.3.6.1.2.1.2.2.1.17.1|65|67907408
1.3.6.1.2.1.2.2.1.17.2|65|0
1.3.6.1.2.1.2.2.1.18.1|65|578617
1.3.6.1.2.1.2.2.1.18.2|65|0
1.3.6.1.2.1.2.2.1.19.1|65|0
1.3.6.1.2.1.2.2.1.19.2|65|0
1.3.6.1.2.1.2.2.1.20.1|65|0
1.3.6.1.2.1.2.2.1.20.2|65|0
1.3.6.1.2.1.2.2.1.21.1|66|0
1.3.6.1.2.1.2.2.1.21.2|66|0
1.3.6.1.2.1.2.2.1.22.1|6|0.0
1.3.6.1.2.1.2.2.1.22.2|6|0.0
1.3.6.1.4.1.9839.1.2.1.0|2|0
1.3.6.1.4.1.9839.1.2.2.0|2|0
1.3.6.1.4.1.9839.1.2.3.0|2|0
1.3.6.1.4.1.9839.1.2.4.0|2|0
1.3.6.1.4.1.9839.1.2.5.0|2|0
1.3.6.1.4.1.9839.1.2.6.0|2|0
1.3.6.1.4.1.9839.1.2.7.0|2|0
1.3.6.1.4.1.9839.1.2.8.0|2|0
1.3.6.1.4.1.9839.1.2.9.0|2|0
1.3.6.1.4.1.9839.1.2.10.0|2|0
1.3.6.1.4.1.9839.1.2.11.0|2|0
1.3.6.1.4.1.9839.1.2.12.0|2|0
1.3.6.1.4.1.9839.1.2.13.0|2|0
1.3.6.1.4.1.9839.1.2.14.0|2|0
1.3.6.1.4.1.9839.1.2.15.0|2|212
1.3.6.1.4.1.9839.1.2.16.0|2|209
1.3.6.1.4.1.9839.1.2.17.0|2|87
1.3.6.1.4.1.9839.1.2.18.0|2|196
1.3.6.1.4.1.9839.1.2.19.0|2|286
1.3.6.1.4.1.9839.1.2.20.0|2|1