device_Raspberry_TAROT_sn002.yml 16 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472
# Schema file to check the syntax of this config file
schema: schema_device-2.0.yml

# Here is the description of the configuration of an isolated device
DEVICE:

    inventory_label: SEC-RSP-011
    manufacturer: "Eymar"
    model: "TAROT meteo station"
    description: "Universal meteo station for TAROT based on Raspberry 4"
    sn: SN002
    power:
        voltage: 220
        intensity: 1
        socket: "CEE 7/7 2P+T"
        
    connector:
        input: 220V
        output: "data frame"
        
    hostname: ""
    virtual_machine: False
    os: Linux
    os_version: Raspbian
    network_interfaces: 
        - B8:27:EB:8B:99:AA # RJ45
        - b8:27:eb:de:cc:AB # Wifi
    protocol:
        transport: TCP
        langage: Json
        read: True
        write: False
                    
    CAPABILITIES:

        - CAPABILITY:

            # ======================
            # from the Guitalens PLC
            # ----------------------
            # data/key = /entities/devices/$device_name/$name#value
            # ======================
            
            # --------
            # PLC
            # --------
            component: PLC

            attributes:
            
                - attribute:
                    key: manufacturer
                    value: "A. Klotz"
                    
                - attribute:
                    key: model
                    value: Raspberry

            output_data: 

                - data:
                    key: /entities#date
                    category: electricity
                    external: True
                    monitoring_name: None
                    quality: 1.0
                    time_sampling: 300
                    
                    label: Last measures
                    value_type: str
                    unit: ISO
                    description: Date of data delivered

                - data:
                    key: /entities/devices/Came/Mode_came
                    category: config
                    external: False
                    monitoring_name: None
                    quality: 1.0
                    time_sampling: 300
                    
                    label: PLC mode code
                    value_type: int
                    unit: "0=Manual 1=Auto"
                    description: Mode code from Came. The state is changed by a physical button.

                - data:
                    key: /entities/devices/Came/Meteo_conditions
                    category: meteo
                    external: False
                    monitoring_name: None
                    quality: 1.0
                    time_sampling: 300
                    
                    label: PLC meteo code
                    value_type: int
                    unit: "0=OK +1=Clouds +2=Rain +4=Wind +8=CriticalError"
                    description: Meteo code from Came. The state is managed by the PLC itself.

                - data:
                    key: /entities/devices/Came/Delay_to_open
                    category: meteo
                    external: False
                    monitoring_name: None
                    quality: 1.0
                    time_sampling: 300
                    
                    label: PLC meteo delay
                    value_type: int
                    unit: s
                    description: Current delay to open since the meteo became OK

                - data:
                    key: /entities/devices/Came/Security_delay_to_open
                    category: config
                    external: False
                    monitoring_name: None
                    quality: 1.0
                    time_sampling: 300
                    
                    label: PLC roof delay
                    value_type: int
                    unit: s
                    description: Limit delay to open since the meteo becomes OK

                - data:
                    key: /entities/devices/Came/SkyTemperatureCor_lim
                    category: config
                    external: False
                    monitoring_name: None
                    quality: 1.0
                    time_sampling: 300
                    
                    label: PLC sky temperature limit
                    value_type: float
                    unit: s
                    description: Limit of the corrected temperature of the sky to close roof

                - data:
                    key: /entities/devices/Came/Wind_speed_lim
                    category: config
                    external: False
                    monitoring_name: None
                    quality: 1.0
                    time_sampling: 300
                    
                    label: PLC wind speed limit
                    value_type: float
                    unit: m/s
                    description: Limit of wind speed to close the roof

                - data:
                    key: /entities/devices/Came/Sun_elevation
                    category: meteo
                    external: True
                    monitoring_name: None
                    quality: 1.0
                    time_sampling: 300
                    
                    label: PLC wind speed limit
                    value_type: float
                    unit: m/s
                    description: Local elevation of the Sun

        - CAPABILITY:
            # --------
            # PLC/Came
            # --------
            component: RoofController

            attributes:
            
                - attribute:
                    key: manufacturer
                    value: Came
                    
                - attribute:
                    key: model
                    value: BX246

            output_data: 

                - data:
                    key: /entities/devices/Came/Error_code#value
                    category: electricity
                    external: True
                    monitoring_name: Error_code
                    quality: 1.0
                    time_sampling: 300
                    
                    label: PLC error code
                    value_type: int
                    unit: "0=OK 1=PowerPB 2=SwitchPB"
                    description: Error code from Came

                - data:
                    key: /entities/devices/Came/Power_input
                    category: electricity
                    external: True
                    monitoring_name: Power_input
                    quality: 1.0
                    time_sampling: 300
                    
                    label: PLC power code
                    value_type: int
                    unit: "0=0Volt 1=24Volts"
                    description: Power code from Came


                - data:
                    key: /entities/devices/Came/Roof_state
                    category: BuildingCover
                    external: False
                    monitoring_name: BuildingCover
                    quality: 1.0
                    time_sampling: 300
                    
                    label: PLC roof code
                    value_type: int
                    unit: "0=Closed 1=Opened 2=Intermediate"
                    description: Roof code from Came. The roof is managed by the PLC itself.


        - CAPABILITY:
            # --------
            # PLC/CV7
            # --------
            component: WeatherStation

            attributes:
            
                - attribute:
                    key: manufacturer
                    value: LCJ Capteurs                    
                - attribute:
                    key: model
                    value: CV7

            output_data: 

                - data:
                    key: /entities/devices/CV7/Error_code
                    category: electricity
                    external: True
                    monitoring_name: None
                    quality: 1.0
                    time_sampling: 300
                    
                    label: Error code
                    value_type: int
                    unit: "0=OK 1=SerialPB 2=FramePB"
                    description: Error code from CV7 (anemometer)

                - data:
                    key: /entities/devices/CV7/Power_input
                    category: electricity
                    external: True
                    monitoring_name: None
                    quality: 1.0
                    time_sampling: 300
                    
                    label: Power code
                    value_type: int
                    unit: "0=0Volt 1=12Volts"
                    description: "Power of CV7 anemometer from the MiFe board"

                - data:
                    key: /entities/devices/CV7/Wind_direction
                    category: meteo
                    external: True
                    monitoring_name: Wind_direction
                    quality: 0.9
                    time_sampling: 300
                    
                    label: Wind direction
                    value_type: float
                    unit: deg (0=North 90=East)
                    description: From CV7 ultrasonic anemometer sensor

                - data:
                    key: /entities/devices/CV7/Wind_speed
                    category: meteo
                    external: True
                    monitoring_name: Wind_speed
                    quality: 0.9
                    time_sampling: 300
                    
                    label: Wind speed
                    value_type: float
                    unit: m/s
                    description: From CV7 ultrasonic anemometer sensor

                - data:
                    key: /entities/devices/CV7/OutsideTemperature
                    category: meteo
                    external: True
                    monitoring_name: Temperature_outside
                    quality: 0.5
                    time_sampling: 300
                    
                    label: Ext. Temp.
                    value_type: float
                    unit: degC
                    description: From CV7 anemometer sensor

        - CAPABILITY:
            # ---------
            # PLC/DHT22
            # ---------
            component: WeatherStation

            attributes:
            
                - attribute:
                    key: manufacturer
                    value: Adafruit Industries
                    
                - attribute:
                    key: model
                    value: DHT22

            output_data:
                - data:
                    key: /entities/devices/DHT22/Error_code
                    category: electricity
                    external: True
                    monitoring_name: None
                    quality: 1.0
                    time_sampling: 300
                    
                    label: Error code
                    value_type: int
                    unit: "0=OK 1=CheksumPB 2=LengthPB 3=NodataPB"
                    description: Error code from DHT22 (thermometer)

                - data:
                    key: /entities/devices/DHT22/Temperature
                    category: meteo
                    external: True
                    monitoring_name: Temperature_outside
                    quality: 0.6
                    time_sampling: 300
                    
                    label: Ext. Temp.
                    value_type: float
                    unit: degC
                    description: Temperature inside PLC box

                - data:
                    key: /entities/devices/DHT22/Humidity
                    category: meteo
                    external: True
                    monitoring_name: Humidity_outside
                    quality: 0.5
                    time_sampling: 300
                    
                    label: Ext. Humidity
                    value_type: float
                    unit: percent
                    description: Humidity inside PLC box

        - CAPABILITY:
            # ---------
            # PLC/RG11
            # ---------
            component: WeatherStation

            attributes:
            
                - attribute:
                    key: manufacturer
                    value: Hydreon Corporation
                    
                - attribute:
                    key: model
                    value: RG11

            output_data:
                - data:
                    key: /entities/devices/RG11/Error_code
                    category: electricity
                    external: True
                    monitoring_name: None
                    quality: 1.0
                    time_sampling: 300
                    
                    label: Error code
                    value_type: int
                    unit: "0=OK +1=PowerPB +2=NopowerPB +4=AllonePB"
                    description: Error code from RG11 (rain sensor)

                - data:
                    key: /entities/devices/RG11/RainSate # link with Json keys
                    category: meteo # general category of the sensor
                    external: True  # internal/external
                    monitoring_name: Rain_boolean # Monitoring unique value
                    quality: 0.95 # float 0 to 1
                    time_sampling: 300

                    label: GR11 rain
                    value_type: int
                    unit: "0=Dry 1=Rain 2=Unknown"
                    description: From RG11 sensor
                    
        - CAPABILITY:
            # ------------
            # PLC/MLX90614
            # ------------
            component: WeatherStation

            attributes:
            
                - attribute:
                    key: manufacturer
                    value: Melexis
                    
                - attribute:
                    key: model
                    value: MLX90614

            output_data:
                - data:
                    key: /entities/devices/MLX90614/Error_code
                    category: electricity
                    external: True
                    monitoring_name: None
                    quality: 1.0
                    time_sampling: 300
                    
                    label: Error code
                    value_type: int
                    unit: "0=OK 1=DataPB"
                    description: Error code from MLX90614 (infrared thermometer)

                - data:
                    key: /entities/devices/MLX90614/SkyTemperature
                    category: meteo
                    external: True
                    monitoring_name: None
                    quality: 0.9
                    time_sampling: 300
                    
                    label: Sky Temp.
                    value_type: float
                    unit: degC
                    description: Temperature of the sky

                - data:
                    key: /entities/devices/MLX90614/CanTemperature
                    category: meteo
                    external: True
                    monitoring_name: None
                    quality: 0.9
                    time_sampling: 300
                    
                    label: Can temp.
                    value_type: float
                    unit: degC
                    description: Temperature of the TO can

                - data:
                    key: /entities/devices/MLX90614/SkyTemperatureCor
                    category: meteo
                    external: True
                    monitoring_name: Temperature_sky
                    quality: 0.9
                    time_sampling: 300
                    
                    label: Sky Temp. corrected
                    value_type: float
                    unit: degC
                    description: Corrected temperature of the sky