node-red-contrib-home-assistant-websocket icon indicating copy to clipboard operation
node-red-contrib-home-assistant-websocket copied to clipboard

Trigger Node Custom Output Comparison Values Backwards (< and >)

Open DeadEnded opened this issue 3 years ago • 0 comments

Describe the bug

I was creating a new automation using the Trigger node, and a custom output seemed to be backwards. I have a custom output with a greater than in it, but after publishing - it shows less, and executes using than. To test, I switch it to less than, and it used greater than - so it seems somewhere in the code this is getting reversed.

To Reproduce

Create a trigger node. Assign an entity. Add a custom output with either <, <=, >, or >= (all four are effected). Click Done and check the third output of the trigger - the comparison will be the opposite of what you set.

Expected behavior

The comparison (greater / less) should not be reversed.

Screenshots

Example showing the reverse.

image

image

Example Flow

No response

This package's version (not the Home Assistant add-on verison)

0.42.4

Is Node-RED running in Docker?

Yes

Node-RED version

v2.2.0

Node.js version

14.18.2

Additional context

I have tried to find the code error causing this, but so far haven't found it (I'm a novice). If I can find it before it's fixed I will submit a PR.

Thanks! DeadEnd

DeadEnded avatar Feb 14 '22 18:02 DeadEnded