Commit b84a6f3b8defe48e6b630f79c6f0833c41b4816f

Authored by Alain Klotz
1 parent 403d32ff
Exists in dev

Final update of the output_data section of the YML config file. Verified with the schema.

Showing 1 changed file with 325 additions and 22 deletions   Show diff stats
privatedev/config/tnc/device_Raspberry_TAROT_sn002.yml
... ... @@ -46,23 +46,223 @@ DEVICE:
46 46 key: model
47 47 value: Raspberry
48 48  
49   - output_data:
50   -
  49 + output_data:
  50 +
  51 + # ======================
  52 + # from the Guitalens PLC
  53 + # ----------------------
  54 + # data/key = /entities/devices/$device_name/$name#value
  55 + # ======================
  56 +
  57 + # --------
  58 + # PLC
  59 + # --------
  60 +
51 61 - data:
52   - key: PLC/RG11/RainSate # link with Json keys
53   - category: meteo # general category of the sensor
54   - external: True # internal/external
55   - monitoring_name: Rain # Monitoring unique value
56   - quality: 0.95 # float 0 to 1
  62 + key: /entities#date
  63 + category: electricity
  64 + external: True
  65 + monitoring_name: None
  66 + quality: 1.0
57 67 time_sampling: 300
  68 +
  69 + label: PLC date
  70 + value_type: str
  71 + unit: ISO
  72 + description: Date of data delivered
58 73  
59   - label: Rain
60   - value_type: bool
61   - unit: "1=Raining"
62   - description: From RG11 sensor
  74 + # --------
  75 + # PLC/Came
  76 + # --------
  77 +
  78 + - data:
  79 + key: /entities/devices/Came/Error_code#value
  80 + category: electricity
  81 + external: True
  82 + monitoring_name: None
  83 + quality: 1.0
  84 + time_sampling: 300
63 85  
  86 + label: PLC error code
  87 + value_type: int
  88 + unit: "0=OK 1=PowerPB 2=SwitchPB"
  89 + description: Error code from Came
  90 +
64 91 - data:
65   - key: PLC/CV7/OutsideTemperature
  92 + key: /entities/devices/Came/Power_input
  93 + category: electricity
  94 + external: True
  95 + monitoring_name: None
  96 + quality: 1.0
  97 + time_sampling: 300
  98 +
  99 + label: PLC power code
  100 + value_type: int
  101 + unit: "0=0Volt 1=24Volts"
  102 + description: Power code from Came
  103 +
  104 + - data:
  105 + key: /entities/devices/Came/Mode_came
  106 + category: config
  107 + external: False
  108 + monitoring_name: None
  109 + quality: 1.0
  110 + time_sampling: 300
  111 +
  112 + label: PLC mode code
  113 + value_type: int
  114 + unit: "0=Manual 1=Auto"
  115 + description: Mode code from Came. The state is changed by a physical button.
  116 +
  117 + - data:
  118 + key: /entities/devices/Came/Roof_state
  119 + category: BuildingCover
  120 + external: False
  121 + monitoring_name: BuildingCover
  122 + quality: 1.0
  123 + time_sampling: 300
  124 +
  125 + label: PLC roof code
  126 + value_type: int
  127 + unit: "0=Closed 1=Opened 2=Intermediate"
  128 + description: Roof code from Came. The roof is managed by the PLC itself.
  129 +
  130 + - data:
  131 + key: /entities/devices/Came/Meteo_conditions
  132 + category: meteo
  133 + external: False
  134 + monitoring_name: None
  135 + quality: 1.0
  136 + time_sampling: 300
  137 +
  138 + label: PLC meteo code
  139 + value_type: int
  140 + unit: "0=OK +1=Clouds +2=Rain +4=Wind +8=CriticalError"
  141 + description: Meteo code from Came. The state is managed by the PLC itself.
  142 +
  143 + - data:
  144 + key: /entities/devices/Came/Delay_to_open
  145 + category: meteo
  146 + external: False
  147 + monitoring_name: None
  148 + quality: 1.0
  149 + time_sampling: 300
  150 +
  151 + label: PLC meteo delay
  152 + value_type: int
  153 + unit: s
  154 + description: Current delay to open since the meteo became OK
  155 +
  156 + - data:
  157 + key: /entities/devices/Came/Security_delay_to_open
  158 + category: config
  159 + external: False
  160 + monitoring_name: None
  161 + quality: 1.0
  162 + time_sampling: 300
  163 +
  164 + label: PLC roof delay
  165 + value_type: int
  166 + unit: s
  167 + description: Limit delay to open since the meteo becomes OK
  168 +
  169 + - data:
  170 + key: /entities/devices/Came/SkyTemperatureCor_lim
  171 + category: config
  172 + external: False
  173 + monitoring_name: None
  174 + quality: 1.0
  175 + time_sampling: 300
  176 +
  177 + label: PLC sky temperature limit
  178 + value_type: float
  179 + unit: s
  180 + description: Limit of the corrected temperature of the sky to close roof
  181 +
  182 + - data:
  183 + key: /entities/devices/Came/Wind_speed_lim
  184 + category: config
  185 + external: False
  186 + monitoring_name: None
  187 + quality: 1.0
  188 + time_sampling: 300
  189 +
  190 + label: PLC wind speed limit
  191 + value_type: float
  192 + unit: m/s
  193 + description: Limit of wind speed to close the roof
  194 +
  195 + - data:
  196 + key: /entities/devices/Came/Sun_elevation
  197 + category: meteo
  198 + external: True
  199 + monitoring_name: None
  200 + quality: 1.0
  201 + time_sampling: 300
  202 +
  203 + label: PLC wind speed limit
  204 + value_type: float
  205 + unit: m/s
  206 + description: Local elevation of the Sun
  207 +
  208 + # --------
  209 + # PLC/CV7
  210 + # --------
  211 +
  212 + - data:
  213 + key: /entities/devices/CV7/Error_code
  214 + category: electricity
  215 + external: True
  216 + monitoring_name: None
  217 + quality: 1.0
  218 + time_sampling: 300
  219 +
  220 + label: CV7 error code
  221 + value_type: int
  222 + unit: "0=OK 1=SerialPB 2=FramePB"
  223 + description: Error code from CV7 (anemometer)
  224 +
  225 + - data:
  226 + key: /entities/devices/CV7/Power_input
  227 + category: electricity
  228 + external: True
  229 + monitoring_name: None
  230 + quality: 1.0
  231 + time_sampling: 300
  232 +
  233 + label: CV7 power code
  234 + value_type: int
  235 + unit: "0=0Volt 1=12Volts"
  236 + description: "Power of CV7 anemometer from the MiFe board"
  237 +
  238 + - data:
  239 + key: /entities/devices/CV7/Wind_direction
  240 + category: meteo
  241 + external: True
  242 + monitoring_name: WindDir
  243 + quality: 0.9
  244 + time_sampling: 300
  245 +
  246 + label: Wind direction
  247 + value_type: float
  248 + unit: deg (0=North 90=East)
  249 + description: From CV7 ultrasonic anemometer sensor
  250 +
  251 + - data:
  252 + key: /entities/devices/CV7/Wind_speed
  253 + category: meteo
  254 + external: True
  255 + monitoring_name: WindSpeed
  256 + quality: 0.9
  257 + time_sampling: 300
  258 +
  259 + label: Wind speed
  260 + value_type: float
  261 + unit: m/s
  262 + description: From CV7 ultrasonic anemometer sensor
  263 +
  264 + - data:
  265 + key: /entities/devices/CV7/OutsideTemperature
66 266 category: meteo
67 267 external: True
68 268 monitoring_name: TempExt
... ... @@ -72,30 +272,133 @@ DEVICE:
72 272 label: Ext. Temp.
73 273 value_type: float
74 274 unit: degC
75   - description: From CV7 sensor
  275 + description: From CV7 anemometer sensor
  276 +
  277 + # ---------
  278 + # PLC/DHT22
  279 + # ---------
  280 +
  281 + - data:
  282 + key: /entities/devices/DHT22/Error_code
  283 + category: electricity
  284 + external: True
  285 + monitoring_name: None
  286 + quality: 1.0
  287 + time_sampling: 300
  288 +
  289 + label: DHT22 error code
  290 + value_type: int
  291 + unit: "0=OK 1=CheksumPB 2=LengthPB 3=NodataPB"
  292 + description: Error code from DHT22 (thermometer)
76 293  
77 294 - data:
78   - key: PLC/DHT22/Temperature
  295 + key: /entities/devices/DHT22/Temperature
79 296 category: meteo
80 297 external: True
81   - monitoring_name: TempExt
82   - quality: 0.6
  298 + monitoring_name: Temperature_outside
  299 + quality: 0.5
83 300 time_sampling: 300
84 301  
85   - label: Temperature PLC box
  302 + label: Ext. Temp.
86 303 value_type: float
87 304 unit: degC
88   - description: From DHT22 sensor
  305 + description: Temperature inside PLC box
  306 +
  307 + - data:
  308 + key: /entities/devices/DHT22/Humidity
  309 + category: meteo
  310 + external: True
  311 + monitoring_name: Humidity_outside
  312 + quality: 0.5
  313 + time_sampling: 300
  314 +
  315 + label: Ext. Humidity
  316 + value_type: float
  317 + unit: percent
  318 + description: Humidity inside PLC box
  319 +
  320 + # ---------
  321 + # PLC/RG11
  322 + # ---------
  323 +
  324 + - data:
  325 + key: /entities/devices/RG11/Error_code
  326 + category: electricity
  327 + external: True
  328 + monitoring_name: None
  329 + quality: 1.0
  330 + time_sampling: 300
  331 +
  332 + label: RG11 error code
  333 + value_type: int
  334 + unit: "0=OK +1=PowerPB +2=NopowerPB +4=AllonePB"
  335 + description: Error code from RG11 (rain sensor)
  336 +
  337 + - data:
  338 + key: /entities/devices/RG11/RainSate # link with Json keys
  339 + category: meteo # general category of the sensor
  340 + external: True # internal/external
  341 + monitoring_name: Rain_boolean # Monitoring unique value
  342 + quality: 0.95 # float 0 to 1
  343 + time_sampling: 300
  344 +
  345 + label: GR11 rain
  346 + value_type: int
  347 + unit: "0=Dry 1=Rain 2=Unknown"
  348 + description: From RG11 sensor
  349 +
  350 + # ------------
  351 + # PLC/MLX90614
  352 + # ------------
89 353  
90 354 - data:
91   - key: PLC/Came/Power_input
  355 + key: /entities/devices/MLX90614/Error_code
92 356 category: electricity
93 357 external: True
94 358 monitoring_name: None
95 359 quality: 1.0
96 360 time_sampling: 300
97 361  
98   - label: Input power supply
  362 + label: MLX error code
  363 + value_type: int
  364 + unit: "0=OK 1=DataPB"
  365 + description: Error code from MLX90614 (infrared thermometer)
  366 +
  367 + - data:
  368 + key: /entities/devices/MLX90614/SkyTemperature
  369 + category: meteo
  370 + external: True
  371 + monitoring_name: None
  372 + quality: 0.9
  373 + time_sampling: 300
  374 +
  375 + label: Sky Temp.
  376 + value_type: float
  377 + unit: degC
  378 + description: Temperature of the sky
  379 +
  380 + - data:
  381 + key: /entities/devices/MLX90614/CanTemperature
  382 + category: meteo
  383 + external: True
  384 + monitoring_name: None
  385 + quality: 0.9
  386 + time_sampling: 300
  387 +
  388 + label: MLX Temp.
99 389 value_type: float
100   - unit: Volts
101   - description: Voltage of the input from Came
  390 + unit: degC
  391 + description: Temperature of the TO can
  392 +
  393 + - data:
  394 + key: /entities/devices/MLX90614/SkyTemperatureCor
  395 + category: meteo
  396 + external: True
  397 + monitoring_name: Temperature_sky
  398 + quality: 0.9
  399 + time_sampling: 300
  400 +
  401 + label: Sky Temp. corrected
  402 + value_type: float
  403 + unit: degC
  404 + description: Corrected temperature of the sky
... ...