HTTP Switch

Hello, need your help.

I want to switch a HTTP device via HA and show the state.

Using the browser I can turn it on and off as follows.

Switch on:
http://192.168.111.187/1

Turn off:
http://192.168.111.187/0

Status:
http://192.168.111.187/getState

As a response, the browser will display as follows:

{“state”: 1, “timer”: 0, “resttimer”: 0, “fw”: “1.0.27”}

How can I integrate it in HA?

Thank you