Automation is not working

Hi,

I’ve created a simple automation that is looking for a state, and then firing an action.
The state is looking for a input_select setting which is visible in the logbook but the automation will not trigger.
The automation is enabled.

How can I troubleshoot this? (Why it’s not doing anything…)

Cheers,
Leon

You’re going to have to post some code for us to look at here if you want some help.

Will this do?

- id: '1552686231508'
  alias: cam1 to bak
  trigger:
  - entity_id: input_select.cam1_preset
    platform: state
    to: ' Bak'
  condition: []
  action:
  - alias: ''
    data: {}
    service: shell_command.set_cam1_to_bak

The idea is to move a camera to a preset when the input_select is set.

Is there really a leading space in ' Bak' or is that a typo?

It might help us if you share the configuration of input_select.cam1_preset.

Hi 123, that was the fix (no type). Thanks…
I missed that one totally.