diff --git a/atom.xml b/atom.xml index 881e7855dd..9eab942395 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@
?api_password=YOUR_PASSWORD
to any url to log in aut
-Retrieve about the discovery feature.
+Updates or creates the current state of an entity.
+ +Expects a JSON object that has at least a state attribute:
{ - "base_url": "http://192.168.1.2:8123", - "location_name": "My home", - "requires_api_password": true, - "version": "0.19.0" -} -
Sample curl
command:
$ curl -X GET -H "x-ha-access: YOUR_PASSWORD" \ - http://localhost:8123/api/discovery_info - -#### <a class='title-link' name='post-apistatesltentity_id' href='#post-apistatesltentity_id'></a> POST /api/states/<entity_id> -Updates or creates the current state of an entity. - -Expects a JSON object that has at least a state attribute: - -```json -{ - "state": "below_horizon", - "attributes": { - "next_rising": "07:04:15 29-10-2013", - "next_setting": "18:00:31 29-10-2013" + "state": "below_horizon", + "attributes": { + "next_rising": "07:04:15 29-10-2013", + "next_setting": "18:00:31 29-10-2013" } }