Add support for SPT Dark Knight heat pump water heater (#5783)
Adds support for the SPT Dark Knight, an Australian R290 heat pump water
heater. Config is in daily use on my own WH315A-RE.
Product id: gbna0cgw5i7lhjup, protocol 3.4
DPs: 1 bool (power), 2 int (setpoint), 3 int (tank temp), 4 str (mode),
9 bitfield (fault)
DP4 values confirmed by switching modes on the unit's own control panel
and
reading diagnostics after each change:
WATER = heat pump only -> heat_pump
COOL = heat pump + element -> high_demand
eh = element only -> electric
DP2 range 38-75C, confirmed on the unit's control panel. The manual's
35-70C figure is the outlet water temp spec, not the setpoint range.
DP9 read 0 throughout, so I have mapped only the problem flag and
fault_code.
The manual documents P01-P08, E01-E04, E08 and PA, but I could not
verify the
bit positions without triggering a real fault. I did not copy the bit
map from
ems_waterheater, as that table covers six P-codes where this unit has
eight.
The 265L variants (WH265A-RE/-CE) and the commercial -C models are
likely the
same controller but I cannot confirm - happy to add product ids if other
owners report them.
yamllint passes.
---------
Co-authored-by: Jason Rumney <make-all@users.noreply.github.com>