Connect two HA with Rest Sensor

Need help setting up rest sensor to get value from second HA instance.
This does not seem to get value

binary_sensor:
  - platform: rest
    resource: http://192.168.10.88:8123/api/states/binary_sensor.garagedoor
    device_class: "opening"

Is the second instance password protected?

See this thread

If you are doing more than a couple instances, the MQTT statestream is great and easy to setup.

No password

I’ve used statestream and eventstream in past but feel direct connection may be best and wanted to try.

Under some circumstance, HA may disconnect from mqtt. Instead of working around this direct API would may be better. It is rare but still a fail point

The response comes back in json format, so you probably need to have a value_template to extract the state value.