p1_parser v0.2.2 P1.Value

A Value with an Unit

  iex> P1.parse!("1-0:32.7.0(220.1*V)")
    [
      %P1.Channel{channel: 0, medium: :electricity},
      %P1.Tags{tags: [{voltage:, :active}, {:phase, l1}]},
      [%P1.Value{unit: "V", value: 220.1}]
    ]