Dingtian relay

Hi there

I’ve purchased a dingtian 4 channel relay which I’ve integrated using mqtt.

I now want HA assistant to trigger the relay when my door bell rings.

I’ve created the automation but the relay is a entity. But the automation will only trigger a device.

How do I turn an entity into a device? Or can the automation be adjusted to action an entity, not a device?

I’m sure I am being dumb but can’t see a fix to this simple problem. #beingdumb

Thanks

JT

You want a state trigger instead of a device trigger.

You should also stop using device triggers.