fyi, with the new z2m 2.0.0, the action sensor for triggering automations is now depreciated. Cannot figure out how to get it to sense a state change anymore while in detached mode.
Where would be a good place to post the lost of this sensor for developers? fixing it is unfortunately outside of my wheel house.