Sunset automation don't work

Sunset is called next_setting in the attributes.

You can add an offset to the automation trigger. See Sun trigger with info about An optional time offset.
This can be done in the GUI:
afbeelding