refactor/mqtt-data-serialization #23
Reference in New Issue
Block a user
Delete Branch "refactor/mqtt-data-serialization"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR changes the structure of most states send to mqtt. Previous iterations had some issues in terms of guaranteeing that relevant datapoints did not move across the structure depending on state. This MR introduces more consistent json structures.
@@ -640,3 +640,3 @@let deep_sleep_duration_minutes: u32 =// if battery soc is unknown assume battery has enough changeif matches!(battery_state, BatteryState::Info(data) if data.state_of_charge < 10) {if matches!(battery_state, BatteryState::Info(data) if data.soc_pct.is_some_and(|soc| soc < 10.)) {TODO: check against config, if a battery is to be expected? Eg. with usb power module instead of solar?