tagyoureit / nodejs-poolController

An application to control pool equipment from various manufacturers.
GNU Affero General Public License v3.0
326 stars 96 forks source link

[BUG] Mqtt circuits toggleState when trigged will flap the circuit #1014

Open blackax1 opened 3 months ago

blackax1 commented 3 months ago

nodejs-poolController Version/commit

8.0.1

nodejs-poolController-dashPanel Version/commit

8.0.0

relayEquipmentManager Version/commit

NA

Node Version

Docker

Platform

Docker

RS485 Adapter

No response

Are you using Docker?

OCP

No response

Pump(s)

Intelliflo VS

Chlorinator(s)

No response

What steps will reproduce the bug?

Send a MQTT message to toggle the state of a circuit

nixie-singlebody/state/circuits/toggleState {"id": 2}

What happens?

The circuit will flap on then off

`[8/15/2024, 9:07:02 PM] info: NCP: Setting Circuit Slow Speed to true

[8/15/2024, 9:07:02 PM] info: NCP: Setting Circuit Slow Speed to false

[8/15/2024, 9:07:02 PM] info: Pump 50 is closing

[8/15/2024, 9:07:02 PM] info: Pump 50 is closing `

What should have happened?

It should toggle the state

Additional information

I'm really just trying to control the RPM of my pump but I'm unable to find a granular control of the RPM outside of the web interface. But the only thing that I can find that would do anything close to what I want is haveing pre-made setpoints for RPM with different circuit

tagyoureit commented 2 months ago

The pumps are designed to run based on the speeds assigned to the pump circuits. They aren't designed to be run by changing the speed directly.