celsworth / lxp-bridge

A bridge to MQTT/InfluxDB/Postgres for communications with LuxPower inverters
MIT License
9 stars 14 forks source link

Move time register parsing out of time_register_ops #259

Closed celsworth closed 5 months ago

celsworth commented 5 months ago

Move time register parsing into new parser and out of TimeRegisterOps

This should make it easier to generate start/end JSON payloads for registers that require it, on any relevant incoming packets.

Small improvement to how we generate and send the message after setting the registers (re-read it back from the inverter).

Also fix retain bit for hold publishes.