[Released] Rule 4.0

@bravenel

There's a bug with using lock-codes in RM4. The same automation created using RM3 works.

The relevant discussion is linked to below - I thought it was more likely you would see it here: