fan-control: estimate + expose fan power (fan_watts_est)
The iDRAC reports only total DCMI watts + RPM (no per-fan power), so add a cube-law fan-power estimate: fan_W ~= 0.0205*(RPM/1000)^3, calibrated to the 2026-06-05 sweep (fits within ~3W; ~2W floor -> ~99W full). The daemon reads live RPM each loop and pushes pve_fan_control_fan_rpm + _fan_watts_est. Surfaced in HA as sensor.r730_fan_power_est + a "Fan Power (est)" card on the dashboard-it Server view, next to total power. 46 bash tests green; verified live (9120rpm -> ~15W est). [ci skip] Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
324f2dc3bf
commit
51456a96f6
4 changed files with 41 additions and 7 deletions
|
|
@ -52,6 +52,13 @@ eq "resolve quiet=quiet curve" 73 "$(fc_resolve quiet 78 0 cool -1 3)"
|
|||
eq "resolve auto+empty=cool" 51 "$(fc_resolve auto 60 0 cool -1 3)"
|
||||
eq "resolve auto+present=quiet" 31 "$(fc_resolve auto 70 0 quiet -1 3)"
|
||||
|
||||
# --- fc_fan_watts: estimated fan power from RPM (cube-law, calibrated to the sweep) ---
|
||||
eq "fan_watts 0" 0 "$(fc_fan_watts 0)"
|
||||
eq "fan_watts 4800" 2 "$(fc_fan_watts 4800)"
|
||||
eq "fan_watts 9360" 16 "$(fc_fan_watts 9360)"
|
||||
eq "fan_watts 12720" 42 "$(fc_fan_watts 12720)"
|
||||
eq "fan_watts 16920" 99 "$(fc_fan_watts 16920)"
|
||||
|
||||
# --- presence ---
|
||||
now=1000000
|
||||
eq "presence open -> quiet" quiet "$(fc_presence_mode Отворена 0 $now 900 Отворена)"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue