node-red-contrib-power-monitor
node-red-contrib-power-monitor copied to clipboard
Stop doesn't stop
Sending a payload of "stop" doesn't stop this immediately if you have "stop after" set to more than one.
The instructions say that stop with override "stop after" and "stop threshold" but it doesn't work for me. I need to send "stop" as many times as stop after is set to before it stops so it is no different to sending a power value of zero.
I am simply sending a payload of text string "stop". Is this correct?
That should work, sending a payload of stop
or STOP
should stop the timer if it was not already in a state of stopped. You need to be running version 1.2, as that is when the feature was added.
The way I use it its to send a stop
message if I have not received any messages for a given amount of time. For example, if the power monitor loses power it wont be able to report any updates, and power-monitor node will count forever.
Setting for the power-monitor node
Settings for the Stop Trigger node
You need to be running version 1.2, as that is when the feature was added.
Ah, that is the issue then. I am running 1.0. (which I only installed a week or so back)
In manage palette in Node red it doesn't show any update available. Do I have to install 1.2 manually?
In manage palette in Node red it doesn't show any update available. Do I have to install 1.2 manually?
I'm not sure whats happening there, perhaps @xoseperez knows? The node red site has the version as 1.0.0 https://flows.nodered.org/node/node-red-contrib-power-monitor
The npm site has the version as 1.2.0 https://www.npmjs.com/package/node-red-contrib-power-monitor
Regardless, you can manually install by downloading the files from this repo and replace the files that are installed for nodered.
I run nodered under docker, and the files are stored under \data\node_modules\node-red-contrib-power-monitor
.
To confirm if the changes are already there you look for the changes that are in this changeset #16.
Hi. I have just updated the version in the NodeRED site. It used to be automatic but they changed it some time ago...