Skip to content

Commit

Permalink
Fix oder of magnitude reported for current in HA plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
DennisOSRM committed Jan 21, 2024
1 parent 7fac318 commit 5f7b7c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hms2mqtt/src/home_assistant.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ impl HMSStateResponse {
json[format!("pv_{}_vol", port.pv_port)] =
format!("{:.2}", port.pv_vol as f32 * 0.1).into();
json[format!("pv_{}_cur", port.pv_port)] =
format!("{:.2}", port.pv_cur as f32 * 0.1).into();
format!("{:.2}", port.pv_cur as f32 * 0.01).into();
json[format!("pv_{}_power", port.pv_port)] =
format!("{:.2}", port.pv_power as f32 * 0.1).into();
json[format!("pv_{}_energy_total", port.pv_port)] = port.pv_energy_total.into();
Expand Down

0 comments on commit 5f7b7c5

Please sign in to comment.