One more question - 'target:'

As I try and conglomerate a few automations in to something reproducible and sharable as blueprints, I came across a situation where I’d copied a bit of code to see how it worked and it worked fine in one of my test blueprints, but failed in another.

The point of failure was with the target: key, where in the blueprint where it failed the error message was that it got ‘none’ for entity_id. Of course the entity_id was passed in exactly the same way as the other blueprint that worked fine. I ‘fixed it’ by swapping out…

target:
  entity_id:

… with just…

entity_id:

… in the one that wasn’t working.

I’ve just realised that the only difference (I think!) in the action section between the two was the one that was failing used light.turn_on whereas the other one used homeassistant.turn_on

Can I just check that the target: key only works with the latter? Or have I made another mistake somewhere that I’m yet to discover?

Thanks in advance.

1 Like