You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -420,7 +420,7 @@ Some of the things you can do:
420
420
421
421
Your javascript code will receive:
422
422
* `x`: a state or a value of the attribute if you defined one (it can be a `string`, `null` or a `number` depending on the entity type you've assigned)
423
-
* `hass`: the full `hass` object (`hass.states['other.entity']` to get the state object of another entity for eg.)
423
+
* `hass`: the full `hass` object (e.g. use `hass.states['other.entity'].state` to get the state object of another entity)
424
424
* `entity`: the full state object of the entity from the history entry currently being transformed
425
425
426
426
And should return a `number`, a `float` or `null`.
@@ -460,7 +460,7 @@ Inside your javascript code, you'll have access to those variables:
460
460
* `entity`: the entity object
461
461
* `start` (Date object): the start Date object of the graph currently displayed
462
462
* `end` (Date object): the end Date object of the graph currently displayed
463
-
* `hass`: the complete `hass` object
463
+
* `hass`: the complete `hass` object (e.g. use `hass.states['other.entity'].state` to get the state object of another entity)
464
464
* `moment`: the [Moment.JS](https://momentjs.com/) object to help you manipulate time and dates
0 commit comments