Objects in Home Assistant

Hi!
This is just a question.
Would it be possible to make a generalization of objects as for example inputs coming from the external world and actions from the dashboards coming directly from the user. For example, a button could be an input (binary) and perform different actions on the dashboard and on the system.
This would also be possible for “outputs”.
Thank you !

I don’t think so. If the dashboard switch and the physical switch had the same entity_id they’d do the same thing. If they had different entity_ids, they never would. :grinning_face_with_smiling_eyes: I don’t think HA distinguishes between “real” and “virtual”.

Edit: Buttons are not binary.