node-red-contrib-presence-faker icon indicating copy to clipboard operation
node-red-contrib-presence-faker copied to clipboard

Feature Request: New input - force sending ON- or OFF-message (payload/topic)

Open hvorragend opened this issue 2 years ago • 2 comments

Hi,

it would be great if we could force the pf-node to send to ON- or OFF-message (with payload and topic).

If I disable the pf-node, I cannot always use the last-block settings. For me it is neccessary to have to choice if I want to keep the lights on or off.

I cannot wire the node before to the nodes after presence-faker, because inside each pf-node I have configured the device (payload and topic).

image

What do you think? Would that be an interesting feature?

hvorragend avatar Jun 30 '22 12:06 hvorragend

Hi @hvorragend, Thanks for the suggestion. How would you concretely envision this to work?

csuermann avatar Jul 02 '22 12:07 csuermann

I'm not really a NodeRed pro and I need your opinion.

How about the following inputs?

  • msg.topic = sendOnPayload
  • msg.payload = true

~~Or is it easier to allow passing an individual topic through your pf-node?~~

~~So you don't have to do anything a I can put a switch node after your pf-node.~~

I ask about it because I have a lot of of-nodes and then only one service node with variables.

24CA7E99-3869-4810-AAA7-CD3D76C777F0

hvorragend avatar Jul 03 '22 14:07 hvorragend