<?php
$states = wpgetapi_endpoint( 'home_assistant', 'states' );
echo $states["entity_id"];
echo $states["state"];
{“errors”:{“http_request_failed”:[“cURL error 28: Connection timed out after 10001 milliseconds”]},”error_data”:[]}
<?php
$states = wpgetapi_endpoint( 'home_assistant', 'states' );
echo $states["entity_id"];
echo $states["state"];
{“errors”:{“http_request_failed”:[“cURL error 28: Connection timed out after 10001 milliseconds”]},”error_data”:[]}