#Can anyone help me fix this automation?

1 messages · Page 1 of 1 (latest)

timber zodiac
#

Hi!
I'm doing an automation basically with this flow:

Step 1 – Check Grid Load

  • Is grid power draw > 800 W?
    • No → Keep sewer plug ON
      • Loop back to Step 1 (check every 1 min)
    • Yes → Proceed to Step 2

Step 2 – Pause Sewer Plug

  • Sewer plug = PAUSED
  • Start timer = 5 minutes
  • Proceed to Step 3

Step 3 – Re-check After 5 Minutes

  • Is grid power draw < 800 W?
    • Yes → Resume sewer plug = ON
      • Return to Step 1
    • No → Increment Retry Counter +1
      • If Retry Counter < 6 → Wait 5 minutes and repeat Step 3
      • If Retry Counter = 6 → Proceed to Step 4

Step 4 – Final Decision

  • If after 6 retries grid load still > 850 W → Sewer plug = OFF
  • Send alert: "Sewer plug stopped due to sustained high load"

Step 5 – Reset Condition

  • Sewer plug can restart if:
    1. Manual reset performed OR
    2. Grid load stayed < 750 W for 5 consecutive minutes
#

And I got this error:
Message malformed: extra keys not allowed @ data['actions'][0]['choose'][0]['sequence'][3]['choose'][1]['default']

limpid anvil
#

you need to remove the leading "-" from before default:

#

everywhere you have it

#

You also have it indented too much. It's part of the choose: block

timber zodiac