@@ -196,8 +196,8 @@ Returns an array of state changes in the past. Each object contains further deta
196
196
"unit_of_measurement" : " \u00b0 C"
197
197
},
198
198
"entity_id" : " sensor.weather_temperature" ,
199
- "last_changed" : " 23:30:00 05 -02-2016 " ,
200
- "last_updated" : " 23:30:00 05 -02-2016 " ,
199
+ "last_changed" : " 2016 -02-06T22:15:00+00:00 " ,
200
+ "last_updated" : " 2016 -02-06T22:15:00+00:00 " ",
201
201
"state" : " -3.9"
202
202
},
203
203
{
@@ -206,8 +206,8 @@ Returns an array of state changes in the past. Each object contains further deta
206
206
"unit_of_measurement" : " \u00b0 C"
207
207
},
208
208
"entity_id" : " sensor.weather_temperature" ,
209
- "last_changed" : " 07:03:30 06 -02-2016 " ,
210
- "last_updated" : " 07:03:30 06 -02-2016 " ,
209
+ "last_changed" : " 2016 -02-06T22:15:00+00:00 " ",
210
+ "last_updated" : " 2016 -02-06T22:15:00+00:00 " ",
211
211
"state" : " -1.9"
212
212
},
213
213
]
@@ -230,18 +230,15 @@ Returns an array of state objects. Each state has the following attributes: enti
230
230
``` json
231
231
[
232
232
{
233
- "attributes" : {
234
- "next_rising" : " 07:04:15 29-10-2013" ,
235
- "next_setting" : " 18:00:31 29-10-2013"
236
- },
233
+ "attributes" : {},
237
234
"entity_id" : " sun.sun" ,
238
- "last_changed" : " 23:24:33 28-10-2013 " ,
235
+ "last_changed" : " 2016-05-30T21:43:32.418320+00:00 " ,
239
236
"state" : " below_horizon"
240
237
},
241
238
{
242
239
"attributes" : {},
243
240
"entity_id" : " process.Dropbox" ,
244
- "last_changed" : " 23:24:33 28-10-2013 " ,
241
+ "last_changed" : " 22016-05-30T21:43:32.418320+00:00 " ,
245
242
"state" : " on"
246
243
}
247
244
]
@@ -258,13 +255,17 @@ Returns a state object for specified entity_id. Returns 404 if not found.
258
255
259
256
``` json
260
257
{
261
- "attributes" : {
262
- "next_rising" : " 07:04:15 29-10-2013" ,
263
- "next_setting" : " 18:00:31 29-10-2013"
264
- },
265
- "entity_id" : " sun.sun" ,
266
- "last_changed" : " 23:24:33 28-10-2013" ,
267
- "state" : " below_horizon"
258
+ "attributes" :{
259
+ "azimuth" :336.34 ,
260
+ "elevation" :-17.67 ,
261
+ "friendly_name" :" Sun" ,
262
+ "next_rising" :" 2016-05-31T03:39:14+00:00" ,
263
+ "next_setting" :" 2016-05-31T19:16:42+00:00"
264
+ },
265
+ "entity_id" :" sun.sun" ,
266
+ "last_changed" :" 2016-05-30T21:43:29.204838+00:00" ,
267
+ "last_updated" :" 2016-05-30T21:50:30.529465+00:00" ,
268
+ "state" :" below_horizon"
268
269
}
269
270
```
270
271
@@ -310,8 +311,8 @@ Expects a JSON object that has at least a state attribute:
310
311
{
311
312
"state" : " below_horizon" ,
312
313
"attributes" : {
313
- "next_rising" : " 07:04:15 29-10-2013 " ,
314
- "next_setting" : " 18: 00:31 29-10-2013 "
314
+ "next_rising" :" 2016-05-31T03:39:14+00:00 " ,
315
+ "next_setting" :" 2016-05-31T19:16:42+ 00:00 "
315
316
}
316
317
}
317
318
```
@@ -321,11 +322,12 @@ Return code is 200 if the entity existed, 201 if the state of a new entity was s
321
322
``` json
322
323
{
323
324
"attributes" : {
324
- "next_rising" : " 07:04:15 29-10-2013 " ,
325
- "next_setting" : " 18: 00:31 29-10-2013 "
325
+ "next_rising" :" 2016-05-31T03:39:14+00:00 " ,
326
+ "next_setting" :" 2016-05-31T19:16:42+ 00:00 "
326
327
},
327
- "entity_id" : " weather.sun" ,
328
- "last_changed" : " 23:24:33 28-10-2013" ,
328
+ "entity_id" : " sun.sun" ,
329
+ "last_changed" : " 2016-05-30T21:43:29.204838+00:00" ,
330
+ "last_updated" : " 2016-05-30T21:47:30.533530+00:00"
329
331
"state" : " below_horizon"
330
332
}
331
333
```
@@ -345,7 +347,7 @@ You can pass an optional JSON object to be used as `event_data`.
345
347
346
348
``` json
347
349
{
348
- " next_rising" : " 18: 00:31 29-10-2013 "
350
+ next_rising":"2016-05-31T03:39:14+ 00:00",
349
351
}
350
352
```
351
353
@@ -373,18 +375,15 @@ Returns a list of states that have changed while the service was being executed.
373
375
``` json
374
376
[
375
377
{
376
- "attributes" : {
377
- "next_rising" : " 07:04:15 29-10-2013" ,
378
- "next_setting" : " 18:00:31 29-10-2013"
379
- },
378
+ "attributes" : {},
380
379
"entity_id" : " sun.sun" ,
381
- "last_changed" : " 23:24:33 28-10-2013 " ,
380
+ "last_changed" : " 2016-05-30T21:43:32.418320+00:00 " ,
382
381
"state" : " below_horizon"
383
382
},
384
383
{
385
384
"attributes" : {},
386
385
"entity_id" : " process.Dropbox" ,
387
- "last_changed" : " 23:24:33 28-10-2013 " ,
386
+ "last_changed" : " 22016-05-30T21:43:32.418320+00:00 " ,
388
387
"state" : " on"
389
388
}
390
389
]
0 commit comments