Trigger a socket when threshold is reached

Hello to all.
My plan: I want to trigger a socket when a threshold is reached.

Idea:
Socket 1: ON > Switch 80%: ON > Socket 1: Watt current > If >=114 W > Socket 1: OFF
Socket 1: ON > Switch 80%: OFF > Socket 1: Watt current > If < 1 W > Socket 1: OFF

  1. in HA I can read the current watts
  2. in Node-Red the Watt is not updated

Where do I have my thinking error?

Thank you. Sven