Entity thats state can be controlled via web service

Hi, is it possible to have an entity in Home Assistant thats state can be controlled via a web service interface. The reason for this is I have several interconnected smoke alarms that I have hooked up to my Raspberry Pi ( thats also running Home Assistant ) via a relay board. What I would like to do is get the program that is monitoring the smoke alarm signal to change a state of an entity in Home Assistant if it should trigger by calling a web service.

Thanks

Maybe the webhook trigger?

Yea mate that sounds like it will work. I can run an automation that will update the status of an entity.

Thanks for your reply

Steve