Removing ticket state on entity removal

Am trying to work out how to remove a ticket state on entity removal.
I have an automation command to post charges to a room which I need to only enable when a room entity is selected.
Have a state to enable the command by setting ticket state Entity=Room when Entity type Rooms is updated to entity name is not null.
However cant seem to implement the reverse.
Any suggestions.
This is what I have at the minute which isnt working;

New Entity Name probably becomes * when entities removed. It will be better to test it with show message action.

3 Likes