The method I would use is like this:

  1. Input: HotTub
  2. Subtract: Grid (results in negative number if Grid is bigger)
  3. Allow negative (so positive numbers become zero)
  4. Add: Grid (results in the minimum of the two outputs)
  5. Log to feed

When Grid is the larger value, the Subtract and Adds cancel out leaving just the HotTub.
When Grid is smaller, then “Allow negative” throws away the HotTub value leaving just the Grid.

Edit: local hosted emoncms have “min by input” and “max by input”:

Limits the current value by the last value from an input as selected from the input list. The result is passed back for further processing by the next processor in the processing list.