Hey @Josch what plastic box did you use? I’ve noticed the parts need to be quite skinny to allow the cover to close.
I took a similar approach to you but I used a breakout board that could take 12V to simplify it further.
I documented it at New AC tested: Rinnai RINV25RC · Issue #117 · GrKoR/esphome_aux_ac_component · GitHub