HDMI CEC from a different Pi

Right now I am running my HA server on a VM on one of my VMware hosts. It runs perfectly fine. However, I am trying to do HDMI CEC but the Pi that the HDMI is connected is obviously not on the same device as my HA server. How would i go about setting this up?

I use a command line switch and api calls from HA1 to HA2
below was CEC connected projector

also you may try Eventstream and Statestream but I find this a bit cluttered and unintentional (added entities into main HA that where not always persistent or necessary)

- platform: command_line
  switches:
    projector_jvc:
      command_on: '/usr/bin/curl -X POST -H "Authorization: Bearer my_token" -H "Content-Type: application/json" http://192.60.27.15:8123/api/services/hdmi_cec/power_on'
      command_off: '/usr/bin/curl -X POST -H "Authorization: Bearer my_token" -H "Content-Type: application/json" http://192.60.27.15:8123/api/services/hdmi_cec/standby'
      command_state: '/usr/bin/curl -X GET -H "Authorization: Bearer my_token" -H "Content-Type: application/json" http://192.60.27.15:8123/api/states/media_player.hdmi_0'
      value_template: '{{ value_json.state == "on" }}'
      friendly_name: Projector