Digital-Alchemy-TS / hass

Typescript APIs for Home Assistant. Includes rest & websocket bindings
https://docs.digital-alchemy.app
MIT License
5 stars 2 forks source link

History lookups from entity proxies #38

Closed zoe-codez closed 2 months ago

zoe-codez commented 3 months ago

Context

const mySensor = hass.entity.byId("sensor.location");
const history = await mySensor.history(...);
// do logic

Additional details

History lookup apis are already available, this would provide a more convenient path for performing that call that's attached to the entity in the same way the call proxy is