I am trying to create a sensor that will combine both presence and sleep status into a single entity. I believe a template sensor is probably the best way but I am not sure where to begin.
Currently, I am using presence sensors and I also have a input Boolean with Sleep/Awake options (a toggle would be better but its been in place for years, no easy to change). I would like to combine these into a sperate sensor that would show the following: