I have automation in home assistant that keeps failing. I can run it manually and works fine . Anyways sick of it and moving script to node red. I just dont know how to call amcrest.go_topreset and pass value. Below is my current automation in HA. Thanks for the help.
- id: ‘1553648451741’
alias: Camera Normal
trigger:- entity_id: device_tracker.someone
from: home
platform: state
to: not_home
condition: []
action: - data:
entity_id: switch.camera
service: switch.turn_on - delay: 00:01:00
- data:
entity_id: all
preset: ‘1’
service: amcrest.goto_preset
- entity_id: device_tracker.someone