Conversation
f6ccf35 to
e597189
Compare
e597189 to
49550be
Compare
|
Can you remove the console.debug statements and what is the regalmodbus2 identifier for? What it doesFor regalmodbus / regalmodbus2, the indicator no longer uses command === 10 or relay > 0. It uses real motion: rpm > 0 or speed > 0. That matches how the backend documents Regal Modbus for dashPanel (RegalModbusStateMessage.ts ties “running” UI to command === 10 while also updating rpm from status/demand). Does it fix the problem?Yes, for the usual failure mode: command/relay “on” while the drive is not actually moving (or the inverse). Using rpm/speed is the right signal for a VFD-style pump. Risks / edge cases
Fits existing legacy pumps.js style (var, inline logic).The console.debug for pump id === 1 is useful for bring-up but is noisy and arbitrary for production; I’d remove it or gate it (e.g. URL flag / localStorage) before merge. |
|
Thanks for the catch. I don't recall what I was troubleshooting, but it's been removed. |
This pull request updates the logic for determining and displaying the on/off status of pumps in
scripts/pumps.js. The main improvement is a more accurate status indication for different pump types, especially for Modbus-controlled pumps.Pump status logic improvements:
rpmorspeedvalues to determine if the pump is running) and relay-based pumps (usingcommandorrelaystatus). This ensures the UI accurately reflects the actual state of various pump types.