# RTU Receiver — consumer role of cp:padi.test.hvac.rtu ("CP to get RTU info").
# The "consuming engine" end (EEM is the motivating consumer): display-only —
# every property is provider-written and propagated, so all binds are readable
# here and this widget writes nothing (no dead binds, no writes).
# Swap profile to padi.hvac.rtu when the final CP is published.
widget: rtu-receiver
title: RTU Receiver
description: The consuming-engine end of the RTU profile - displays the temperatures, setpoint, stage states, fan state and sample timestamp arriving from a rooftop unit. Display-only.
icon: "📈"
color: "#3ecf8e"

capabilities:
  - profile: padi.test.hvac.rtu
    role: consumer

view:
  - type: label
    text: temperatures
  - type: value
    bind: supplyAirTemp
    caption: supply / discharge air temp
  - type: value
    bind: returnAirTemp
    caption: return / space air temp
  - type: value
    bind: tempSetpoint
    caption: active setpoint
  - type: value
    bind: tempUnit
    caption: unit
  - type: split
  - type: label
    text: stages
  - type: lamp
    bind: stage1Cool
    on: "1"
    caption: cool stage 1 (compressor)
  - type: lamp
    bind: stage2Cool
    on: "1"
    caption: cool stage 2
  - type: lamp
    bind: stage3Cool
    on: "1"
    caption: cool stage 3
  - type: lamp
    bind: stage1Heat
    on: "1"
    caption: heat stage 1
  - type: lamp
    bind: stage2Heat
    on: "1"
    caption: heat stage 2
  - type: lamp
    bind: stage3Heat
    on: "1"
    caption: heat stage 3
  - type: lamp
    bind: fanState
    on: "1"
    caption: fan running
  - type: split
  - type: label
    text: sample
  - type: value
    bind: ts
    caption: timestamp (UTC)
